aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings/Settings.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2022-10-02 21:05:15 +0200
committerJF <JF002@users.noreply.github.com>2022-10-11 21:16:33 +0200
commitcf8b422899f198ae713b5a2a35e2ea737521b053 (patch)
tree1caa9fe156d30935483b375a24dbbf3b8e1b87ec /src/components/settings/Settings.h
parent6dd67eb5a2159089484c12dece8345642b4812f3 (diff)
Checkbox list now receives a function pointer to call when the setting has changed. This allow to remove the dependency between CheckBoxList (UI component) with SettingController.
Diffstat (limited to 'src/components/settings/Settings.h')
-rw-r--r--src/components/settings/Settings.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 9661a199..93f861f3 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -52,6 +52,11 @@ namespace Pinetime {
Settings(Pinetime::Controllers::FS& fs);
+ Settings(const Settings&) = delete;
+ Settings& operator=(const Settings&) = delete;
+ Settings(Settings&&) = delete;
+ Settings& operator=(Settings&&) = delete;
+
void Init();
void SaveSettings();
@@ -135,14 +140,6 @@ namespace Pinetime {
appMenu = menu;
};
- void SetWatchfacesMenu(uint8_t menu) {
- watchFacesMenu = menu;
- };
-
- uint8_t GetWatchfacesMenu() const {
- return watchFacesMenu;
- };
-
uint8_t GetAppMenu() const {
return appMenu;
};