Applets
systemtray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SYSTEMTRAY_H
00024 #define SYSTEMTRAY_H
00025
00026
00027 #include "systemtraywidget.h"
00028
00029
00030 #include <QPointer>
00031
00032
00033 #include <plasma/applet.h>
00034
00035 class QTimer;
00036
00037 namespace Plasma
00038 {
00039 class PanelSvg;
00040 }
00041
00042 class SystemTray: public Plasma::Applet
00043 {
00044 Q_OBJECT
00045
00046 public:
00047 explicit SystemTray(QObject *parent, const QVariantList &arguments = QVariantList());
00048 ~SystemTray();
00049
00050 void constraintsEvent(Plasma::Constraints constraints);
00051 void paintInterface(QPainter *painter,
00052 const QStyleOptionGraphicsItem *option,
00053 const QRect &contentsRect);
00054
00055 private slots:
00056 void updateWidgetGeometry();
00057 void startupDelayer();
00058
00059 private:
00060 void updateWidgetOrientation();
00061
00062 static const int STARTUP_TIMER_DELAY = 1500;
00063
00064 Plasma::PanelSvg *m_background;
00065 QTimer *m_startUpDelayShowTimer;
00066 bool m_showOwnBackground;
00067
00068
00069 QPointer<SystemTrayWidget> m_systemTrayWidget;
00070 };
00071
00072 K_EXPORT_PLASMA_APPLET(systemtray, SystemTray)
00073
00074 #endif // SYSTEMTRAY_H