summaryrefslogtreecommitdiff
path: root/noncore/tools/clock/clock.h
Side-by-side diff
Diffstat (limited to 'noncore/tools/clock/clock.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.h17
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;
class QPushButton;
+class QDateTime;
@@ -37,3 +38,3 @@ public:
AnalogClock( QWidget * parent = 0, const char * name = 0 )
- : QFrame( parent, name ), clear(false) {}
+ : QFrame( parent, name ), clear(false) {}
@@ -61,3 +62,5 @@ public:
~Clock();
-
+ QDateTime when;
+ bool bSound;
+ int hour, minute, snoozeTime;
private slots:
@@ -68,2 +71,9 @@ private slots:
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 );
@@ -72,2 +82,3 @@ private:
+ bool alarmBool;
QTimer *t;
@@ -76,3 +87,3 @@ private:
QLabel *ampmLabel;
- QPushButton *set, *reset;
+ QPushButton *set, *reset, *alarmBtn, *snoozeBtn, *alarmOffBtn;
QRadioButton *clockRB, *swatchRB;