summaryrefslogtreecommitdiff
path: root/noncore/tools/clock/clock.h
authorllornkcor <llornkcor>2003-03-04 16:50:17 (UTC)
committer llornkcor <llornkcor>2003-03-04 16:50:17 (UTC)
commitbb765b9cd286d85eb8fa1d18199dfb7a29d57fc5 (patch) (side-by-side diff)
tree80d69eef2975d1fb27a758aea7629d34c678a270 /noncore/tools/clock/clock.h
parent628a783e5d7ec07b5c073c94a77b614439d937ba (diff)
downloadopie-bb765b9cd286d85eb8fa1d18199dfb7a29d57fc5.zip
opie-bb765b9cd286d85eb8fa1d18199dfb7a29d57fc5.tar.gz
opie-bb765b9cd286d85eb8fa1d18199dfb7a29d57fc5.tar.bz2
added 3 qcop calls. timerStart(), timerStop() and timerReset()
Diffstat (limited to 'noncore/tools/clock/clock.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h
index 23cc143..9b00e28 100644
--- a/noncore/tools/clock/clock.h
+++ b/noncore/tools/clock/clock.h
@@ -46,12 +46,14 @@ protected:
void drawContents( QPainter *p );
private:
- QPoint rotate( QPoint center, QPoint p, int angle );
- void drawPointers ( QPainter *, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 = 0 );
QTime currTime;
QTime prevTime;
bool clear;
+
+ QPoint rotate( QPoint center, QPoint p, int angle );
+ void drawPointers ( QPainter *, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 = 0 );
+
};
class Clock : public QVBox
@@ -78,9 +80,12 @@ private slots:
void appMessage(const QCString& msg, const QByteArray& data);
void timerEvent( QTimerEvent *e );
void slotAdjustTime();
+
+ void slotStartTimer();
+ void slotStopTimer();
+ void slotResetTimer();
+ void setSwatchMode( int );
private:
- void clearClock();
- void clearTimer();
bool alarmBool;
QTimer *t;
QLCDNumber *lcd;
@@ -93,6 +98,8 @@ private:
int swatch_totalms;
bool swatch_running;
bool ampm;
+ void clearClock();
+ void clearTimer();
};
#endif