summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingBluetooth.h
diff options
context:
space:
mode:
authormabuch <marcel.buechler@gmail.com>2022-04-18 14:35:31 +0200
committermabuch <marcel.buechler@gmail.com>2022-04-18 14:35:31 +0200
commit82a4f9aa68c3f8d5f3cfa6de87de078fe680d944 (patch)
treecc83c0af796a029f9464003cda043f373b716749 /src/displayapp/screens/settings/SettingBluetooth.h
parentea14c580ca6296cb93facf526d65a2db0e3ff1b0 (diff)
parent2607c3d79947e900ce4c5ded296f649677511a34 (diff)
resolved merge conflict after renaming PineTimeStyle to WatchFacePineTimeStyle
Diffstat (limited to 'src/displayapp/screens/settings/SettingBluetooth.h')
-rw-r--r--src/displayapp/screens/settings/SettingBluetooth.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/displayapp/screens/settings/SettingBluetooth.h b/src/displayapp/screens/settings/SettingBluetooth.h
new file mode 100644
index 00000000..12bb459a
--- /dev/null
+++ b/src/displayapp/screens/settings/SettingBluetooth.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <array>
+#include <cstdint>
+#include <lvgl/lvgl.h>
+
+#include "components/settings/Settings.h"
+#include "displayapp/screens/Screen.h"
+
+namespace Pinetime {
+
+ namespace Applications {
+ namespace Screens {
+
+ class SettingBluetooth : public Screen {
+ public:
+ SettingBluetooth(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
+ ~SettingBluetooth() override;
+
+ void OnBluetoothEnabled(lv_obj_t* object, lv_event_t event);
+ void OnBluetoothDisabled(lv_obj_t* object, lv_event_t event);
+
+ private:
+ Controllers::Settings& settingsController;
+ lv_obj_t* cbEnabled;
+ lv_obj_t* cbDisabled;
+ bool priorMode;
+ };
+ }
+ }
+}