1
0
Fork 0
InfiniTime/src/displayapp/screens/settings/SettingChimes.h

39 lines
1 KiB
C
Raw Normal View History

2021-11-07 10:50:33 +00:00
#pragma once
#include <cstdint>
#include <lvgl/lvgl.h>
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
2022-04-27 13:11:02 +03:00
#include <array>
2021-11-07 10:50:33 +00:00
namespace Pinetime {
namespace Applications {
namespace Screens {
class SettingChimes : public Screen {
public:
SettingChimes(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
~SettingChimes() override;
void UpdateSelected(lv_obj_t* object, lv_event_t event);
private:
struct Option {
Controllers::Settings::ChimesOption chimesOption;
const char* name;
};
2022-04-27 13:11:02 +03:00
static constexpr std::array<Option, 3> options = {{
{Controllers::Settings::ChimesOption::None, " Off"},
{Controllers::Settings::ChimesOption::Hours, " Every hour"},
{Controllers::Settings::ChimesOption::HalfHours, " Every 30 mins"}
}};
std::array<lv_obj_t*, options.size()> cbOption;
2022-04-27 13:11:02 +03:00
2021-11-07 10:50:33 +00:00
Controllers::Settings& settingsController;
};
}
}
}