author | zautrix <zautrix> | 2005-04-08 23:40:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-08 23:40:38 (UTC) |
commit | a74c23d91e80343cd1ccfd1fe712958fad1d5891 (patch) (unidiff) | |
tree | 2dc90dffe822e1425ace17cdbf9e420fa0be6ac7 /kalarmd/alarmdialog.h | |
parent | c4bab697d650c249cdff45b753b9e6df2a817877 (diff) | |
download | kdepimpi-a74c23d91e80343cd1ccfd1fe712958fad1d5891.zip kdepimpi-a74c23d91e80343cd1ccfd1fe712958fad1d5891.tar.gz kdepimpi-a74c23d91e80343cd1ccfd1fe712958fad1d5891.tar.bz2 |
ad fix
-rw-r--r-- | kalarmd/alarmdialog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kalarmd/alarmdialog.h b/kalarmd/alarmdialog.h index 1e4636c..52e681a 100644 --- a/kalarmd/alarmdialog.h +++ b/kalarmd/alarmdialog.h | |||
@@ -21,65 +21,67 @@ | |||
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef ALARMDIALOG_H | 23 | #ifndef ALARMDIALOG_H |
24 | #define ALARMDIALOG_H | 24 | #define ALARMDIALOG_H |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | #include <qdialog.h> | 28 | #include <qdialog.h> |
29 | #include <qdatetime.h> | 29 | #include <qdatetime.h> |
30 | #include <qstring.h> | 30 | #include <qstring.h> |
31 | #include <qcombobox.h> | 31 | #include <qcombobox.h> |
32 | #include <qpushbutton.h> | 32 | #include <qpushbutton.h> |
33 | 33 | ||
34 | #include "sharp_char.h" | 34 | #include "sharp_char.h" |
35 | 35 | ||
36 | 36 | ||
37 | class QSpinBox; | 37 | class QSpinBox; |
38 | class QLabel; | 38 | class QLabel; |
39 | class QString; | 39 | class QString; |
40 | 40 | ||
41 | class AlarmDialog : public QDialog { | 41 | class AlarmDialog : public QDialog { |
42 | Q_OBJECT | 42 | Q_OBJECT |
43 | public: | 43 | public: |
44 | AlarmDialog( QWidget *parent = 0, const char *name = 0 ); | 44 | AlarmDialog( QWidget *parent = 0, const char *name = 0 ); |
45 | virtual ~AlarmDialog(); | 45 | virtual ~AlarmDialog(); |
46 | 46 | ||
47 | bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); | 47 | bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); |
48 | int getSuspendTime( ); | 48 | int getSuspendTime( ); |
49 | void setSuspendTime( int ); | 49 | void setSuspendTime( int ); |
50 | void setServerNotification( bool b ); | 50 | void setServerNotification( bool b ); |
51 | 51 | ||
52 | public slots: | 52 | public slots: |
53 | void forceRepaint(); | ||
53 | void spinBoxChanged( int ); | 54 | void spinBoxChanged( int ); |
54 | void slotOk(); | 55 | void slotOk(); |
55 | void slotSuspend(); | 56 | void slotSuspend(); |
56 | void reject () ; | 57 | void reject () ; |
57 | void silent () ; | 58 | void silent () ; |
58 | void accept(); | 59 | void accept(); |
59 | void suspend(); | 60 | void suspend(); |
60 | void playSound (); | 61 | void playSound (); |
61 | signals: | 62 | signals: |
62 | // void suspendSignal(int duration); | 63 | // void suspendSignal(int duration); |
63 | void addAlarm(const QDateTime &, const QString & ); | 64 | void addAlarm(const QDateTime &, const QString & ); |
64 | 65 | ||
65 | private: | 66 | private: |
67 | QPushButton* okbut; | ||
66 | int alarmCounter; | 68 | int alarmCounter; |
67 | int mPauseCount; | 69 | int mPauseCount; |
68 | int mSuspendCounter; | 70 | int mSuspendCounter; |
69 | int maxAlarmReplay; | 71 | int maxAlarmReplay; |
70 | QTimer* playSoundTimer; | 72 | QTimer* playSoundTimer; |
71 | bool mStopAlarm; | 73 | bool mStopAlarm; |
72 | bool mSilent; | 74 | bool mSilent; |
73 | bool mPlayWav; | 75 | bool mPlayWav; |
74 | bool mServerNotification; | 76 | bool mServerNotification; |
75 | QLabel* mMessage; | 77 | QLabel* mMessage; |
76 | QLabel* mMissedAlarms; | 78 | QLabel* mMissedAlarms; |
77 | QSpinBox *mSuspendSpin; | 79 | QSpinBox *mSuspendSpin; |
78 | QComboBox *mMissedAlarmsCombo; | 80 | QComboBox *mMissedAlarmsCombo; |
79 | QPushButton* mSuspendButton; | 81 | QPushButton* mSuspendButton; |
80 | QString mFileName; | 82 | QString mFileName; |
81 | int fd_led; | 83 | int fd_led; |
82 | sharp_led_status statusLED; | 84 | sharp_led_status statusLED; |
83 | }; | 85 | }; |
84 | 86 | ||
85 | #endif | 87 | #endif |