mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-06 04:49:04 -05:00
This is not the best fix, as it most probably should be written differently in the first place
30 lines
934 B
C++
30 lines
934 B
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <application-settings/windows/BaseSettingsWindow.hpp>
|
|
|
|
#include <time/time_locale.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class DateAndTimeMainWindow : public BaseSettingsWindow
|
|
{
|
|
public:
|
|
DateAndTimeMainWindow(app::ApplicationCommon *app, std::string name);
|
|
|
|
protected:
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
virtual bool navBarCallback(Item &item);
|
|
|
|
bool automaticDateAndTimeIsOn = false;
|
|
|
|
utils::time::Locale::TimeFormat timeFormat = utils::time::Locale::defaultTimeFormat;
|
|
utils::time::Locale::DateFormat dateFormat = utils::time::Locale::defaultDateFormat;
|
|
|
|
std::string changeDateAndTimeWindow;
|
|
OptionWindowDestroyer rai_destroyer = OptionWindowDestroyer(*this);
|
|
};
|
|
} // namespace gui
|