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 {
|
|
|
|
|
|
|
|
class SettingAirplaneMode : public Screen {
|
|
|
|
public:
|
|
|
|
SettingAirplaneMode(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
|
|
|
|
~SettingAirplaneMode() override;
|
|
|
|
|
2022-02-20 09:40:49 -05:00
|
|
|
void OnAirplaneModeEnabled(lv_obj_t* object, lv_event_t event);
|
|
|
|
void OnAirplaneModeDisabled(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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|