2021-12-23 21:30:14 -05:00
|
|
|
#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 {
|
|
|
|
|
2022-04-02 09:03:20 -04:00
|
|
|
class SettingBluetooth : public Screen {
|
2021-12-23 21:30:14 -05:00
|
|
|
public:
|
2022-04-02 09:03:20 -04:00
|
|
|
SettingBluetooth(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
|
|
|
|
~SettingBluetooth() override;
|
2021-12-23 21:30:14 -05:00
|
|
|
|
2022-04-02 09:03:20 -04:00
|
|
|
void OnBluetoothEnabled(lv_obj_t* object, lv_event_t event);
|
|
|
|
void OnBluetoothDisabled(lv_obj_t* object, lv_event_t event);
|
2021-12-23 21:30:14 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
Controllers::Settings& settingsController;
|
2022-02-20 09:40:49 -05:00
|
|
|
lv_obj_t* cbEnabled;
|
|
|
|
lv_obj_t* cbDisabled;
|
2021-12-23 21:30:14 -05:00
|
|
|
bool priorMode;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|