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 | 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 @@ -29,4 +29,5 @@ class QTimer; class QRadioButton; class QPushButton; +class QDateTime; class AnalogClock : public QFrame @@ -36,5 +37,5 @@ class AnalogClock : public QFrame public: AnalogClock( QWidget * parent = 0, const char * name = 0 ) - : QFrame( parent, name ), clear(false) {} + : QFrame( parent, name ), clear(false) {} QSizePolicy sizePolicy() const; @@ -60,5 +61,7 @@ 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(); @@ -67,13 +70,21 @@ private slots: 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; |