diff options
| author | JF002 <JF002@users.noreply.github.com> | 2021-04-09 20:43:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-09 20:43:39 +0200 |
| commit | 17a37acaa81278cc8c782d84d994d4ca938ef006 (patch) | |
| tree | 3c15890315a420417cd96b82103da80c84ed562d /src/displayapp/screens/ApplicationList.h | |
| parent | 04fc33e2d479161ec261f932b908dffbd73e227f (diff) | |
| parent | 3685095da0d01f137692f80df2c267a8b90da715 (diff) | |
Merge pull request #258 from joaquimorg/BigRewrite
New settings menu and more...
Diffstat (limited to 'src/displayapp/screens/ApplicationList.h')
| -rw-r--r-- | src/displayapp/screens/ApplicationList.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h index 0a0c6388..e334ccde 100644 --- a/src/displayapp/screens/ApplicationList.h +++ b/src/displayapp/screens/ApplicationList.h @@ -4,6 +4,9 @@ #include "Screen.h" #include "ScreenList.h" +#include "components/datetime/DateTimeController.h" +#include "components/settings/Settings.h" +#include "components/battery/BatteryController.h" namespace Pinetime { namespace Applications { @@ -11,21 +14,22 @@ namespace Pinetime { class ApplicationList : public Screen { public: explicit ApplicationList(DisplayApp* app, - Pinetime::Controllers::Settings &settingsController); + Pinetime::Controllers::Settings &settingsController, + Pinetime::Controllers::Battery& batteryController, + Controllers::DateTime& dateTimeController); ~ApplicationList() override; bool Refresh() override; - bool OnButtonPushed() override; bool OnTouchEvent(TouchEvents event) override; private: Controllers::Settings& settingsController; - - bool running = true; + Pinetime::Controllers::Battery& batteryController; + Controllers::DateTime& dateTimeController; ScreenList<2> screens; std::unique_ptr<Screen> CreateScreen1(); std::unique_ptr<Screen> CreateScreen2(); - std::unique_ptr<Screen> CreateScreen3(); + //std::unique_ptr<Screen> CreateScreen3(); }; } } |
