alarmdockwindow.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ALARMDOCKWINDOW_H
00025 #define ALARMDOCKWINDOW_H
00026
00027
00028 #include <ksystemtray.h>
00029 #include <kpopupmenu.h>
00030
00031 #include "koalarmclient.h"
00032
00033 class AlarmDockWindow : public KSystemTray
00034 {
00035 Q_OBJECT
00036 public:
00037 AlarmDockWindow(KOAlarmClient *, QWidget *parent = 0L, const char *name = 0L);
00038 virtual ~AlarmDockWindow();
00039
00040 bool alarmsOn() { return contextMenu()->isItemChecked(mAlarmsEnabledId); }
00041 bool autostartGuiOn() { return contextMenu()->isItemChecked(mAutostartGuiId); }
00042
00043 void setGuiAutostart(bool on);
00044
00045 protected:
00046 void mousePressEvent(QMouseEvent*);
00047 void closeEvent(QCloseEvent*);
00048
00049 public slots:
00050 void toggleAlarmsEnabled();
00051 void toggleGuiAutostart() { setGuiAutostart(!autostartGuiOn()); }
00052
00053 protected slots:
00054 void configureAlarmDaemon();
00055
00056 protected:
00057 QPixmap mPixmapEnabled, mPixmapDisabled;
00058 int mAlarmsEnabledId;
00059 int mAutostartGuiId;
00060
00061 private:
00062
00063 void handleEvent(const QString& calendarURL, const QString& eventID);
00064
00065 KOAlarmClient *mAlarmGui;
00066 };
00067
00068 #endif
This file is part of the documentation for kdelibs Version 3.1.4.