From f0e8bb26e94d4fd7c063c2fe5ead76c165cad5a0 Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Tue, 19 Dec 2023 17:53:48 +0100 Subject: Watch face selection with CMake Move displayapp/Apps.h into a header only library (to make the integration easier in InfiniSim. --- src/displayapp/Apps.h.in | 99 ------------------------------------------------ 1 file changed, 99 deletions(-) delete mode 100644 src/displayapp/Apps.h.in (limited to 'src/displayapp/Apps.h.in') 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 -#include - -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 - struct AppTraits {}; - - template - struct WatchFaceTraits {}; - - template - struct TypeList { - static constexpr size_t Count = sizeof...(As); - }; - - using UserAppTypes = TypeList<@USERAPP_TYPES@>; - - template - struct WatchFaceTypeList { - static constexpr size_t Count = sizeof...(Ws); - }; - - using UserAppTypes = TypeList; - - using UserWatchFaceTypes = WatchFaceTypeList; - - static_assert(UserWatchFaceTypes::Count >= 1); - } -} -- cgit v1.2.3-70-g09d2