aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/Screens/ApplicationList.h
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2020-10-02 21:46:41 +0300
committerAvamander <avamander@gmail.com>2020-10-02 21:46:41 +0300
commite3fb2f0b8974f3e9a124d27f4b568e754ccfb782 (patch)
treebc43f58bca6920bfb5a78f3cf26d0ec5e8c0d5a0 /src/displayapp/Screens/ApplicationList.h
parent30c261028e27dab0e30aec19b9c21c37cc74e92b (diff)
Renamed DisplayApp/ to displayapp/
Diffstat (limited to 'src/displayapp/Screens/ApplicationList.h')
-rw-r--r--src/displayapp/Screens/ApplicationList.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/displayapp/Screens/ApplicationList.h b/src/displayapp/Screens/ApplicationList.h
new file mode 100644
index 00000000..a1e6811b
--- /dev/null
+++ b/src/displayapp/Screens/ApplicationList.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <vector>
+#include <Components/Ble/NimbleController.h>
+#include "Screen.h"
+#include "Label.h"
+#include "ScreenList.h"
+#include "Gauge.h"
+#include "Meter.h"
+#include <functional>
+
+namespace Pinetime {
+ namespace Applications {
+ namespace Screens {
+ class ApplicationList : public Screen {
+ public:
+ explicit ApplicationList(DisplayApp* app);
+ ~ApplicationList() override;
+ bool Refresh() override;
+ bool OnButtonPushed() override;
+ bool OnTouchEvent(TouchEvents event) override;
+ private:
+ bool running = true;
+
+ ScreenList<2> screens;
+ std::unique_ptr<Screen> CreateScreen1();
+ std::unique_ptr<Screen> CreateScreen2();
+ std::unique_ptr<Screen> CreateScreen3();
+ };
+ }
+ }
+} \ No newline at end of file