-rw-r--r-- | kalarmd/alarmdialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kalarmd/alarmdialog.h b/kalarmd/alarmdialog.h index 3155f18..896cf60 100644 --- a/kalarmd/alarmdialog.h +++ b/kalarmd/alarmdialog.h | |||
@@ -15,32 +15,34 @@ | |||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
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> | ||
32 | #include <qpushbutton.h> | ||
31 | 33 | ||
32 | #include "sharp_char.h" | 34 | #include "sharp_char.h" |
33 | 35 | ||
34 | 36 | ||
35 | class QSpinBox; | 37 | class QSpinBox; |
36 | class QLabel; | 38 | class QLabel; |
37 | class QString; | 39 | class QString; |
38 | 40 | ||
39 | class AlarmDialog : public QDialog { | 41 | class AlarmDialog : public QDialog { |
40 | Q_OBJECT | 42 | Q_OBJECT |
41 | public: | 43 | public: |
42 | AlarmDialog( QWidget *parent = 0, const char *name = 0 ); | 44 | AlarmDialog( QWidget *parent = 0, const char *name = 0 ); |
43 | virtual ~AlarmDialog(); | 45 | virtual ~AlarmDialog(); |
44 | 46 | ||
45 | bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); | 47 | bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); |
46 | int getSuspendTime( ); | 48 | int getSuspendTime( ); |
@@ -59,22 +61,24 @@ class AlarmDialog : public QDialog { | |||
59 | // void suspendSignal(int duration); | 61 | // void suspendSignal(int duration); |
60 | void addAlarm(const QDateTime &, const QString & ); | 62 | void addAlarm(const QDateTime &, const QString & ); |
61 | 63 | ||
62 | private: | 64 | private: |
63 | int alarmCounter; | 65 | int alarmCounter; |
64 | int mPauseCount; | 66 | int mPauseCount; |
65 | int mSuspendCounter; | 67 | int mSuspendCounter; |
66 | int maxAlarmReplay; | 68 | int maxAlarmReplay; |
67 | QTimer* playSoundTimer; | 69 | QTimer* playSoundTimer; |
68 | bool mStopAlarm; | 70 | bool mStopAlarm; |
69 | bool mSilent; | 71 | bool mSilent; |
70 | bool mPlayWav; | 72 | bool mPlayWav; |
71 | bool mServerNotification; | 73 | bool mServerNotification; |
72 | QLabel* mMessage; | 74 | QLabel* mMessage; |
73 | QLabel* mMissedAlarms; | 75 | QLabel* mMissedAlarms; |
74 | QSpinBox *mSuspendSpin; | 76 | QSpinBox *mSuspendSpin; |
77 | QComboBox *mMissedAlarmsCombo; | ||
78 | QPushButton* mSuspendButton; | ||
75 | QString mFileName; | 79 | QString mFileName; |
76 | int fd_led; | 80 | int fd_led; |
77 | sharp_led_status statusLED; | 81 | sharp_led_status statusLED; |
78 | }; | 82 | }; |
79 | 83 | ||
80 | #endif | 84 | #endif |