Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / plasma / applets / systemtray / systemtray.h
blob3a18865e5b66dc91630d0cb6fbd3866916a25fd6
1 /***************************************************************************
2 * systemtray.h *
3 * *
4 * Copyright (C) 2007 Alexander Rodin <rodin.alexander@gmail.com> *
5 * Copyright (C) 2007 Jason Stubbs <jasonbstubbs@gmail.com> *
6 * *
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. *
11 * *
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. *
16 * *
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 ***************************************************************************/
23 #ifndef SYSTEMTRAY_H
24 #define SYSTEMTRAY_H
26 // Own
27 #include "systemtraywidget.h"
29 // Qt
30 #include <QPointer>
32 // Plasma
33 #include <plasma/applet.h>
35 class SystemTray: public Plasma::Applet
37 Q_OBJECT
39 public:
40 explicit SystemTray(QObject *parent, const QVariantList &arguments = QVariantList());
41 ~SystemTray();
43 QSizeF contentSizeHint() const;
44 Qt::Orientations expandingDirections() const;
45 void constraintsUpdated(Plasma::Constraints constraints);
47 private slots:
48 void updateSize();
50 private:
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