ref: 55427d83b87960903cd6213ac9c73e694ee547bd
src/displayapp/screens/Notifications.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
#pragma once #include <functional> #include <vector> #include "Screen.h" #include "ScreenList.h" namespace Pinetime { namespace Applications { namespace Screens { class Notifications : public Screen { public: explicit Notifications(DisplayApp* app); ~Notifications() override; bool Refresh() override; bool OnButtonPushed() override; bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override; private: ScreenList<3> screens; bool running = true; std::unique_ptr<Screen> CreateScreen1(); std::unique_ptr<Screen> CreateScreen2(); std::unique_ptr<Screen> CreateScreen3(); class NotificationItem : public Screen { public: NotificationItem(DisplayApp* app, const char* title, const char* msg, uint8_t notifNr, uint8_t notifNb); NotificationItem(DisplayApp* app, const char* title1, const char* msg1, const char* title2, const char* msg2, uint8_t notifNr, uint8_t notifNb); ~NotificationItem() override; bool Refresh() override {return false;} private: uint8_t notifNr = 0; uint8_t notifNb = 0; char pageText[4]; }; }; } } } |