diff options
| author | JF <jf@codingfield.com> | 2020-04-05 16:59:15 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-04-05 16:59:15 (GMT) |
| commit | 6e1bd118c5ecc53016548072501591b329500870 (patch) | |
| tree | 8447f6b7bbff0f423e9cf5d15ed709c630bed25e /src/DisplayApp/DisplayApp.h | |
| parent | 7e9a7e4d5fa0f55b43180600d499f1d0ce6aded1 (diff) | |
| parent | d5c2a58914fdeac4ef69382269b81d529e6d7c90 (diff) | |
Merge branch 'ble-notifications' of JF/PineTime into develop
Diffstat (limited to 'src/DisplayApp/DisplayApp.h')
| -rw-r--r-- | src/DisplayApp/DisplayApp.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/DisplayApp/DisplayApp.h b/src/DisplayApp/DisplayApp.h index 04c82fe..09f0d1c 100644 --- a/src/DisplayApp/DisplayApp.h +++ b/src/DisplayApp/DisplayApp.h @@ -16,6 +16,8 @@ #include <date/date.h> #include <DisplayApp/Screens/Clock.h> #include <drivers/Watchdog.h> +#include <DisplayApp/Screens/Modal.h> +#include <Components/Ble/NotificationManager.h> #include "TouchEvents.h" @@ -27,18 +29,17 @@ 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 }; - DisplayApp(Pinetime::Drivers::St7789& lcd, - Pinetime::Components::LittleVgl& lvgl, - Pinetime::Drivers::Cst816S&, - Controllers::Battery &batteryController, - Controllers::Ble &bleController, - Controllers::DateTime& dateTimeController, - Pinetime::Drivers::WatchdogView& watchdog, - Pinetime::System::SystemTask& systemTask); + DisplayApp(Drivers::St7789 &lcd, Components::LittleVgl &lvgl, Drivers::Cst816S &, + Controllers::Battery &batteryController, Controllers::Ble &bleController, + Controllers::DateTime &dateTimeController, Drivers::WatchdogView &watchdog, + System::SystemTask &systemTask, + Pinetime::Controllers::NotificationManager& notificationManager); void Start(); void PushMessage(Messages msg); @@ -78,6 +79,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; + Pinetime::Controllers::NotificationManager& notificationManager; }; } } |
