Files
MuditaOS/module-apps/application-settings-new/windows/DateAndTimeMainWindow.hpp
Mateusz Grzegorzek d87c69479f [EGD-5311] Create Date&Time main window
- add DateAndTimeSettings class and
  dateAndTimeSettings global var
  (cache for storing date and time related settings),
- add DateAndTimeChangeRequest messages and proper
  methods in app::manager::Controller for sending them,
- handle DateAndTimeChangeRequest messages in ApplicationManager,
- add SettingRightItem::Text case for OptionSettings
  to provide possibility to add text
  on the right side of particular option,
- rename fields in db (settings_tab table):
  gs_time_format_12 to gs_time_format
  and
  gs_time_date_format to gs_date_format
- create only main Date&Time window.
  Sub windows will be added in separate task.
2021-02-03 10:11:56 +01:00

25 lines
788 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "BaseSettingsWindow.hpp"
#include "time/time_locale.hpp"
namespace gui
{
class DateAndTimeMainWindow : public BaseSettingsWindow
{
public:
explicit DateAndTimeMainWindow(app::Application *app);
private:
auto buildOptionsList() -> std::list<Option> override;
bool automaticDateAndTimeIsOn = false;
bool automaticTimeZoneIsOn = false;
utils::time::Locale::TimeFormat timeFormat = utils::time::Locale::defaultTimeFormat;
utils::time::Locale::DateFormat dateFormat = utils::time::Locale::defaultDateFormat;
};
} // namespace gui