korganizer
koalarmclient.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef KOALARMCLIENT_H
00027 #define KOALARMCLIENT_H
00028
00029 #include "alarmclientiface.h"
00030
00031 #include <kapplication.h>
00032
00033 #include <qtimer.h>
00034 #include <qdatetime.h>
00035
00036 class AlarmDialog;
00037 class AlarmDockWindow;
00038
00039 namespace KCal {
00040 class Calendar;
00041 class CalendarResources;
00042 class Incidence;
00043 }
00044
00045 class KOAlarmClient : public QObject, virtual public AlarmClientIface, public KSessionManaged
00046 {
00047 Q_OBJECT
00048 public:
00049 KOAlarmClient( QObject *parent = 0, const char *name = 0 );
00050 ~KOAlarmClient();
00051
00052 bool commitData( QSessionManager & );
00053
00054
00055 void quit();
00056 void forceAlarmCheck();
00057 void dumpDebug();
00058 QStringList dumpAlarms();
00059
00060 void debugShowDialog();
00061
00062 public slots:
00063 void slotQuit();
00064
00065 protected slots:
00066 void checkAlarms();
00067
00068 signals:
00069 void reminderCount( int );
00070 void saveAllSignal();
00071
00072 private:
00073 void createReminder( KCal::Calendar *calendar, KCal::Incidence *incidence,
00074 QDateTime dt );
00075 void saveLastCheckTime();
00076
00077 AlarmDockWindow *mDocker;
00078 KCal::CalendarResources *mCalendar;
00079
00080 QDateTime mLastChecked;
00081 QTimer mCheckTimer;
00082
00083 AlarmDialog *mDialog;
00084 };
00085
00086 #endif
|