aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/Apps.h.in
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-12-19 17:53:48 +0100
committerJF <JF002@users.noreply.github.com>2023-12-23 21:29:13 +0100
commitf0e8bb26e94d4fd7c063c2fe5ead76c165cad5a0 (patch)
tree39c1867399f78f3f3d6e9546546338cc7399f50f /src/displayapp/Apps.h.in
parent1ad78400727871a4b8dbfe90ef52c7be998c1518 (diff)
Watch face selection with CMake
Move displayapp/Apps.h into a header only library (to make the integration easier in InfiniSim.
Diffstat (limited to 'src/displayapp/Apps.h.in')
-rw-r--r--src/displayapp/Apps.h.in99
1 files changed, 0 insertions, 99 deletions
diff --git a/src/displayapp/Apps.h.in b/src/displayapp/Apps.h.in
deleted file mode 100644
index 23ad12a3..00000000
--- a/src/displayapp/Apps.h.in
+++ /dev/null
@@ -1,99 +0,0 @@
-#pragma once
-#include <cstddef>
-#include <cstdint>
-
-namespace Pinetime {
- namespace Applications {
- enum class Apps : uint8_t {
- None,
- Launcher,
- Clock,
- SysInfo,
- FirmwareUpdate,
- FirmwareValidation,
- NotificationsPreview,
- Notifications,
- Timer,
- Alarm,
- FlashLight,
- BatteryInfo,
- Music,
- Paint,
- Paddle,
- Twos,
- HeartRate,
- Navigation,
- StopWatch,
- Metronome,
- Motion,
- Steps,
- PassKey,
- QuickSettings,
- Settings,
- SettingWatchFace,
- SettingTimeFormat,
- SettingDisplay,
- SettingWakeUp,
- SettingSteps,
- SettingSetDateTime,
- SettingChimes,
- SettingShakeThreshold,
- SettingBluetooth,
- Error,
- Weather
- };
-
- enum class WatchFace : uint8_t {
- Digital,
- Analog,
- PineTimeStyle,
- Terminal,
- Infineat,
- CasioStyleG7710,
- };
-
- template <Apps>
- struct AppTraits {};
-
- template <WatchFace>
- struct WatchFaceTraits {};
-
- template <Apps... As>
- struct TypeList {
- static constexpr size_t Count = sizeof...(As);
- };
-
- using UserAppTypes = TypeList<@USERAPP_TYPES@>;
-
- template <WatchFace... Ws>
- struct WatchFaceTypeList {
- static constexpr size_t Count = sizeof...(Ws);
- };
-
- using UserAppTypes = TypeList<Apps::StopWatch,
- Apps::Alarm,
- Apps::Timer,
- Apps::Steps,
- Apps::HeartRate,
- Apps::Music,
- Apps::Paint,
- Apps::Paddle,
- Apps::Twos,
- Apps::Metronome,
- Apps::Navigation
- /*
- Apps::Weather,
- Apps::Motion
- */
- >;
-
- using UserWatchFaceTypes = WatchFaceTypeList<WatchFace::Digital,
- WatchFace::Analog,
- WatchFace::PineTimeStyle,
- WatchFace::Terminal,
- WatchFace::Infineat,
- WatchFace::CasioStyleG7710>;
-
- static_assert(UserWatchFaceTypes::Count >= 1);
- }
-}