diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-12 00:07:52 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-12 00:07:52 (GMT) |
| commit | 1ff0a48bbb66f8099c1451fa02983655003def8e (patch) | |
| tree | 41ef22fcc41cf41d699c8a7e221b3979f0dc1d03 /src/displayapp/screens/settings/SettingBluetooth.h | |
| parent | 1db07ae196b02bb7e656161555980ffc93203ba4 (diff) | |
| parent | 187ea0f06d93c7f7df5779cb321a28ad040234ee (diff) | |
Merging 1.9.0 into analog24
Diffstat (limited to 'src/displayapp/screens/settings/SettingBluetooth.h')
| -rw-r--r-- | src/displayapp/screens/settings/SettingBluetooth.h | 31 |
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 0000000..12bb459 --- /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; + }; + } + } +} |
