diff options
| author | JF <jf@codingfield.com> | 2020-03-25 20:23:40 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-03-25 20:23:40 (GMT) |
| commit | 68240704c7a60534342cfc0157564f11cf82d9d8 (patch) | |
| tree | 8472af61a5fa8a99ce5549f2de73b47f73cf41b6 /src/DisplayApp/DisplayApp.h | |
| parent | 7e9a7e4d5fa0f55b43180600d499f1d0ce6aded1 (diff) | |
Add support for BLE notification (ANS client).
Work In Progress!!!
Diffstat (limited to 'src/DisplayApp/DisplayApp.h')
| -rw-r--r-- | src/DisplayApp/DisplayApp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DisplayApp/DisplayApp.h b/src/DisplayApp/DisplayApp.h index 04c82fe..ad81733 100644 --- a/src/DisplayApp/DisplayApp.h +++ b/src/DisplayApp/DisplayApp.h @@ -16,6 +16,7 @@ #include <date/date.h> #include <DisplayApp/Screens/Clock.h> #include <drivers/Watchdog.h> +#include <DisplayApp/Screens/Modal.h> #include "TouchEvents.h" @@ -27,7 +28,9 @@ namespace Pinetime { class DisplayApp { public: enum class States {Idle, Running}; - enum class Messages : uint8_t {GoToSleep, GoToRunning, UpdateDateTime, UpdateBleConnection, UpdateBatteryLevel, TouchEvent, SwitchScreen,ButtonPushed}; + enum class Messages : uint8_t {GoToSleep, GoToRunning, UpdateDateTime, UpdateBleConnection, UpdateBatteryLevel, TouchEvent, SwitchScreen,ButtonPushed, + NewNotification + }; enum class FullRefreshDirections { None, Up, Down }; @@ -78,6 +81,8 @@ namespace Pinetime { Apps nextApp = Apps::None; bool onClockApp = false; // TODO find a better way to know that we should handle gestures and button differently for the Clock app. Controllers::BrightnessController brightnessController; + std::unique_ptr<Screens::Modal> modal; + }; } } |
