author | llornkcor <llornkcor> | 2002-03-15 04:29:42 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-15 04:29:42 (UTC) |
commit | a0d6c8fdac4e8644c31d1b2e2a321131be4b57c2 (patch) (unidiff) | |
tree | 319d9a01475596ccefa9765cc324485a4ce7e5aa /noncore/tools/clock/clock.h | |
parent | 320291b5006c75e3e42ba1cbbac9639a54309553 (diff) | |
download | opie-a0d6c8fdac4e8644c31d1b2e2a321131be4b57c2.zip opie-a0d6c8fdac4e8644c31d1b2e2a321131be4b57c2.tar.gz opie-a0d6c8fdac4e8644c31d1b2e2a321131be4b57c2.tar.bz2 |
added simple 24 hr alarm features
-rw-r--r-- | noncore/tools/clock/clock.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h index 6dbebf7..9b756b5 100644 --- a/noncore/tools/clock/clock.h +++ b/noncore/tools/clock/clock.h | |||
@@ -30,2 +30,3 @@ class QRadioButton; | |||
30 | class QPushButton; | 30 | class QPushButton; |
31 | class QDateTime; | ||
31 | 32 | ||
@@ -37,3 +38,3 @@ public: | |||
37 | AnalogClock( QWidget * parent = 0, const char * name = 0 ) | 38 | AnalogClock( QWidget * parent = 0, const char * name = 0 ) |
38 | : QFrame( parent, name ), clear(false) {} | 39 | : QFrame( parent, name ), clear(false) {} |
39 | 40 | ||
@@ -61,3 +62,5 @@ public: | |||
61 | ~Clock(); | 62 | ~Clock(); |
62 | 63 | QDateTime when; | |
64 | bool bSound; | ||
65 | int hour, minute, snoozeTime; | ||
63 | private slots: | 66 | private slots: |
@@ -68,2 +71,9 @@ private slots: | |||
68 | void changeClock( bool ); | 71 | void changeClock( bool ); |
72 | void slotSetAlarm(); | ||
73 | void slotSnooze(); | ||
74 | void slotToggleAlarm(); | ||
75 | void alarmOn(); | ||
76 | void alarmOff(); | ||
77 | void appMessage(const QCString& msg, const QByteArray& data); | ||
78 | void timerEvent( QTimerEvent *e ); | ||
69 | 79 | ||
@@ -72,2 +82,3 @@ private: | |||
72 | 82 | ||
83 | bool alarmBool; | ||
73 | QTimer *t; | 84 | QTimer *t; |
@@ -76,3 +87,3 @@ private: | |||
76 | QLabel *ampmLabel; | 87 | QLabel *ampmLabel; |
77 | QPushButton *set, *reset; | 88 | QPushButton *set, *reset, *alarmBtn, *snoozeBtn, *alarmOffBtn; |
78 | QRadioButton *clockRB, *swatchRB; | 89 | QRadioButton *clockRB, *swatchRB; |