diff options
Diffstat (limited to 'src/displayapp/Apps.h')
| -rw-r--r-- | src/displayapp/Apps.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/displayapp/Apps.h b/src/displayapp/Apps.h index f253bc03..d96e6ea7 100644 --- a/src/displayapp/Apps.h +++ b/src/displayapp/Apps.h @@ -1,5 +1,5 @@ #pragma once - +#include <cstddef> namespace Pinetime { namespace Applications { enum class Apps { @@ -37,7 +37,32 @@ namespace Pinetime { SettingChimes, SettingShakeThreshold, SettingBluetooth, - Error + Error, + Weather + }; + template <Apps> + struct AppTraits {}; + + template<Apps ...As> + struct TypeList { + static constexpr size_t Count = sizeof...(As); }; + + using UserAppTypes = TypeList<Apps::Alarm, + Apps::HeartRate, + Apps::Paint, + Apps::Metronome, + Apps::Music, + Apps::Navigation, + Apps::Paddle, + Apps::Steps, + Apps::StopWatch, + Apps::Timer, + Apps::Twos + /* + Apps::Weather, + Apps::Motion + */ + >; } } |
