author | llornkcor <llornkcor> | 2002-03-15 04:29:42 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-15 04:29:42 (UTC) |
commit | a0d6c8fdac4e8644c31d1b2e2a321131be4b57c2 (patch) (side-by-side diff) | |
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 | 15 |
1 files changed, 13 insertions, 2 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 @@ -28,6 +28,7 @@ class QLabel; class QTimer; class QRadioButton; class QPushButton; +class QDateTime; class AnalogClock : public QFrame { @@ -59,22 +60,32 @@ class Clock : public QVBox public: Clock( QWidget * parent = 0, const char * name = 0, WFlags f=0 ); ~Clock(); - + QDateTime when; + bool bSound; + int hour, minute, snoozeTime; private slots: void slotSet(); void slotReset(); void modeSelect(int); void updateClock(); void changeClock( bool ); + void slotSetAlarm(); + void slotSnooze(); + void slotToggleAlarm(); + void alarmOn(); + void alarmOff(); + void appMessage(const QCString& msg, const QByteArray& data); + void timerEvent( QTimerEvent *e ); private: void clearClock(); + bool alarmBool; QTimer *t; QLCDNumber *lcd; QLabel *date; QLabel *ampmLabel; - QPushButton *set, *reset; + QPushButton *set, *reset, *alarmBtn, *snoozeBtn, *alarmOffBtn; QRadioButton *clockRB, *swatchRB; AnalogClock *aclock; QTime swatch_start; |