diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-08-25 12:48:09 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-08-25 12:48:09 +0300 |
| commit | ee3bad44c72329d61a2cb0c4064c22512451372d (patch) | |
| tree | 421e95752a4580b30dc097f4c5b72d7e2c7493fe /include | |
| parent | 7e9c5726e02a65023d9563f49e833525bf8f4bae (diff) | |
Implement clock pausing
Implement clock setting w/o starting or stopping
Both of these should make it possible for the server to start/stop/pause/resume the clock with perfect synchronization to the true time.
Diffstat (limited to 'include')
| -rw-r--r-- | include/aoclocklabel.h | 2 | ||||
| -rw-r--r-- | include/courtroom.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/aoclocklabel.h b/include/aoclocklabel.h index 806ed182..b948330c 100644 --- a/include/aoclocklabel.h +++ b/include/aoclocklabel.h @@ -14,8 +14,8 @@ public: AOClockLabel(QWidget *parent); void start(); void start(int msecs); + void set(int msecs, bool update_text=false); void pause(); - void resume(); void stop(); protected: diff --git a/include/courtroom.h b/include/courtroom.h index 93461726..15324a0e 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -251,8 +251,11 @@ public: void check_connection_received(); + void start_clock(); void start_clock(qint64 msecs); + void set_clock(qint64 msecs); + void stop_clock(); qint64 get_ping() { return ping_timer.elapsed(); } |
