diff options
Diffstat (limited to 'src/components/timer/TimerController.h')
| -rw-r--r-- | src/components/timer/TimerController.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h index e44d3d9..8542987 100644 --- a/src/components/timer/TimerController.h +++ b/src/components/timer/TimerController.h @@ -11,20 +11,22 @@ namespace Pinetime { class SystemTask; } namespace Controllers { - + class TimerController { public: TimerController() = default; - + void Init(); - void StartTimer(uint32_t duration); - void StopTimer(); - - uint32_t GetTimeRemaining(); - - bool IsRunning(); + void StopAlerting(); + int32_t GetSecondsRemaining(); + bool IsOvertime() { + return overtime; + } + bool IsRunning() { + return timerRunning; + } void OnTimerEnd(); @@ -35,6 +37,7 @@ namespace Pinetime { TimerHandle_t timerAppTimer; TickType_t endTicks; bool timerRunning = false; + bool overtime = false; }; } }
\ No newline at end of file |
