summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/ApplicationList.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-04-21 18:19:57 (GMT)
committerGitea <gitea@fake.local>2021-04-21 18:19:57 (GMT)
commita80e782f267cd2424d22da23d809c0c6a8ff8761 (patch)
treeca2bdb100ea98d361296a61352679f63a507f955 /src/displayapp/screens/ApplicationList.h
parent24d3eea4fba05d774ace794eb8c9b21b8f2aa8c6 (diff)
parentfefb429fb4bf1020553900d9e514d3baa9040325 (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/displayapp/screens/ApplicationList.h')
-rw-r--r--src/displayapp/screens/ApplicationList.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h
index 0a0c638..e334ccd 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();
};
}
}