-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 @@ -25,12 +25,13 @@ class QLCDNumber; class QLabel; class QTimer; class QRadioButton; class QPushButton; +class QDateTime; class AnalogClock : public QFrame { Q_OBJECT public: @@ -56,28 +57,38 @@ class Clock : public QVBox { Q_OBJECT 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; int swatch_totalms; bool swatch_running; bool ampm; |