1 /***************************************************************************
4 * Copyright (C) 2007 Alexander Rodin <rodin.alexander@gmail.com> *
5 * Copyright (C) 2007 Jason Stubbs <jasonbstubbs@gmail.com> *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
21 ***************************************************************************/
27 #include "systemtraywidget.h"
33 #include <plasma/applet.h>
35 class SystemTray
: public Plasma::Applet
40 explicit SystemTray(QObject
*parent
, const QVariantList
&arguments
= QVariantList());
43 QSizeF
contentSizeHint() const;
44 Qt::Orientations
expandingDirections() const;
45 void constraintsUpdated(Plasma::Constraints constraints
);
51 void updateWidgetOrientation();
52 void updateWidgetGeometry();
54 // The parent widget might delete this so we guard it
55 QPointer
<SystemTrayWidget
> m_systemTrayWidget
;
58 K_EXPORT_PLASMA_APPLET(systemtray
, SystemTray
)
60 #endif // SYSTEMTRAY_H