diff options
author | JF002 <JF002@users.noreply.github.com> | 2021-03-20 11:27:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 11:27:16 +0100 |
commit | 9e9bb2085e70a9c8b8c2e74f6027f5392e366158 (patch) | |
tree | 0549cf49f95f6142af862063f46750ea994a8941 /src/components/settings/Settings.h | |
parent | ada942535718d48eec37cca4f50d678e7201dc67 (diff) | |
parent | 282e34dca14ddc799b9511643e50a4f9023003ed (diff) |
Merge pull request #217 from joaquimorg/MultiFaceClock
Multi face support, analog clock, 12/24 config
Diffstat (limited to 'src/components/settings/Settings.h')
-rw-r--r-- | src/components/settings/Settings.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h new file mode 100644 index 00000000..fa67f35e --- /dev/null +++ b/src/components/settings/Settings.h @@ -0,0 +1,30 @@ +#pragma once +#include <cstdint> + +namespace Pinetime { + namespace Controllers { + class Settings { + public: + enum class ClockType {H24, H12}; + + void Init(); + + void SetClockFace( uint8_t face ) { clockFace = face; }; + uint8_t GetClockFace() { return clockFace; }; + + void SetAppMenu( uint8_t menu ) { appMenu = menu; }; + uint8_t GetAppMenu() { return appMenu; }; + + void SetClockType( ClockType clocktype ) { clockType = clocktype; }; + ClockType GetClockType() { return clockType; }; + + + private: + uint8_t clockFace = 0; + uint8_t appMenu = 0; + + ClockType clockType = ClockType::H24; + + }; + } +}
\ No newline at end of file |