korganizer/korgac
alarmdialog.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
00024 #ifndef ALARMDIALOG_H
00025 #define ALARMDIALOG_H
00026
00027 #include <kcal/incidence.h>
00028
00029 #include <kdialog.h>
00030
00031 #include <QTimer>
00032 #include <QDateTime>
00033
00034 using namespace KCal;
00035
00036 class ReminderListItem;
00037 class KOEventViewer;
00038 class KComboBox;
00039 class QTreeWidget;
00040 class QSpinBox;
00041
00042 class AlarmDialog : public KDialog
00043 {
00044 Q_OBJECT
00045 public:
00046 AlarmDialog( QWidget *parent = 0 );
00047 virtual ~AlarmDialog();
00048
00049 void addIncidence( Incidence *incidence, const QDateTime &reminderAt );
00050 void setRemindAt( const QDateTime &dt );
00051 void eventNotification();
00052
00053 public slots:
00054 void slotOk();
00055 void slotUser1();
00056 void slotUser2();
00057 void slotUser3();
00058 void slotSave();
00059 void wakeUp();
00060 void show();
00061 void suspend();
00062 void suspendAll();
00063 void dismissAll();
00064
00065 void accept();
00066
00067 signals:
00068 void reminderCount( int count );
00069
00070 private Q_SLOTS:
00071 void update();
00072
00073 private:
00074 bool startKOrganizer();
00075 void setTimer();
00076 int activeCount();
00077 QList<ReminderListItem *> selectedItems() const;
00078 void updateButtons();
00079 void showDetails();
00080
00081 QTreeWidget *mIncidenceTree;
00082 KOEventViewer *mDetailView;
00083
00084 QSpinBox *mSuspendSpin;
00085 KComboBox *mSuspendUnit;
00086 QTimer mSuspendTimer;
00087 };
00088
00089 #endif