diff options
author | petter <39340152+petterhs@users.noreply.github.com> | 2021-01-25 16:47:52 +0100 |
---|---|---|
committer | jlukanc <27705324+jlukanc1@users.noreply.github.com> | 2021-01-25 12:45:04 -0500 |
commit | 3dd88339f39089232c40f043a478b9ba47cb1dad (patch) | |
tree | 6f43eaac7fb7fc70a1932d1722d99492f6160938 /src/displayapp/screens/Notifications.h | |
parent | f27e63290639ca257e88298b60429d72271c4954 (diff) |
create motorcontroller in main and pass by reference
Diffstat (limited to 'src/displayapp/screens/Notifications.h')
-rw-r--r-- | src/displayapp/screens/Notifications.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/displayapp/screens/Notifications.h b/src/displayapp/screens/Notifications.h index 345ad15a..85d13545 100644 --- a/src/displayapp/screens/Notifications.h +++ b/src/displayapp/screens/Notifications.h @@ -13,7 +13,10 @@ namespace Pinetime { class Notifications : public Screen { public: enum class Modes {Normal, Preview}; - explicit Notifications(DisplayApp* app, Pinetime::Controllers::NotificationManager& notificationManager, Modes mode); + explicit Notifications(DisplayApp* app, + Pinetime::Controllers::NotificationManager& notificationManager, + Pinetime::Controllers::MotorController& motorController, + Modes mode); ~Notifications() override; bool Refresh() override; @@ -46,7 +49,7 @@ namespace Pinetime { const char* text; }; Pinetime::Controllers::NotificationManager& notificationManager; - Pinetime::Controllers::MotorController motorController; + Pinetime::Controllers::MotorController& motorController; Modes mode = Modes::Normal; std::unique_ptr<NotificationItem> currentItem; Controllers::NotificationManager::Notification::Id currentId; |