aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Timer.h
diff options
context:
space:
mode:
authorhubmartin <hub.martin@gmail.com>2021-09-16 22:04:31 +0200
committerhubmartin <hub.martin@gmail.com>2021-09-16 22:04:31 +0200
commit27366bdfdf05a5fd3128ad8eabedbeba720ca885 (patch)
tree94bf7fe9e60c7c88d269e207acb197915eb98660 /src/displayapp/screens/Timer.h
parentdb50131ed49f2fdb639799ca12839862340f8396 (diff)
parent3eb73774a39e255cd4b5de76441a59f1525a989c (diff)
Merge branch 'develop' into wake-time
Diffstat (limited to 'src/displayapp/screens/Timer.h')
-rw-r--r--src/displayapp/screens/Timer.h35
1 files changed, 16 insertions, 19 deletions
diff --git a/src/displayapp/screens/Timer.h b/src/displayapp/screens/Timer.h
index 0d66f2d4..d0fc8ed1 100644
--- a/src/displayapp/screens/Timer.h
+++ b/src/displayapp/screens/Timer.h
@@ -8,35 +8,32 @@
#include "components/timer/TimerController.h"
namespace Pinetime::Applications::Screens {
-
-
+
class Timer : public Screen {
public:
-
- enum class Modes {
- Normal, Done
- };
-
+ enum class Modes { Normal, Done };
+
Timer(DisplayApp* app, Controllers::TimerController& timerController);
-
+
~Timer() override;
-
- bool Refresh() override;
-
+
+ void Refresh() override;
+
void setDone();
-
+
void OnButtonEvent(lv_obj_t* obj, lv_event_t event);
-
+
private:
-
bool running;
uint8_t secondsToSet = 0;
uint8_t minutesToSet = 0;
Controllers::TimerController& timerController;
-
+
void createButtons();
-
- lv_obj_t* time, * msecTime, * btnPlayPause, * txtPlayPause, * btnMinutesUp, * btnMinutesDown, * btnSecondsUp, * btnSecondsDown, * txtMUp,
- * txtMDown, * txtSUp, * txtSDown;
+
+ lv_obj_t *time, *msecTime, *btnPlayPause, *txtPlayPause, *btnMinutesUp, *btnMinutesDown, *btnSecondsUp, *btnSecondsDown, *txtMUp,
+ *txtMDown, *txtSUp, *txtSDown;
+
+ lv_task_t* taskRefresh;
};
-} \ No newline at end of file
+}