diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-09 13:54:08 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-09 13:54:08 (GMT) |
| commit | eb95a56f8d0cf6efc2071a1cc1be6b57c253ff9e (patch) | |
| tree | 41ef22fcc41cf41d699c8a7e221b3979f0dc1d03 /src/displayapp/screens/settings/SettingBluetooth.h | |
| parent | 1db07ae196b02bb7e656161555980ffc93203ba4 (diff) | |
| parent | b498e1d633522eed975d78b04508834b7a79befe (diff) | |
Merge branch 'develop' of https://github.com/InfiniTimeOrg/InfiniTime into develop
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; + }; + } + } +} |
