diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2022-04-02 16:03:20 +0300 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2022-04-02 16:16:47 +0200 |
commit | 78365548f70d9a6ef9a040d8e0039e640e386dc3 (patch) | |
tree | 06464442b965cb0a15e3e841c8df870066717892 /src/displayapp/screens/settings/SettingBluetooth.h | |
parent | 8f436e1d74ffdd497c68dc2f34f6a67e430a1932 (diff) |
Replace airplane mode with a bluetooth toggle
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 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; + }; + } + } +} |