mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-06 20:33:00 -05:00
31 lines
973 B
C++
31 lines
973 B
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <application-settings/models/system/DateAndTimeModel.hpp>
|
|
#include <application-settings/windows/WindowNames.hpp>
|
|
#include <AppWindow.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class ListView;
|
|
class ChangeDateAndTimeWindow : public AppWindow
|
|
{
|
|
public:
|
|
explicit ChangeDateAndTimeWindow(app::ApplicationCommon *app,
|
|
std::string name = gui::window::name::change_date_and_time);
|
|
|
|
void buildInterface() override;
|
|
bool onInput(const InputEvent &inputEvent) override;
|
|
void rebuild() override;
|
|
|
|
private:
|
|
void sendRtcUpdateTimeMessage();
|
|
|
|
std::shared_ptr<DateAndTimeModel> dateAndTimeModel;
|
|
std::shared_ptr<utils::time::FromTillDate> fromTillDate;
|
|
ListView *list = nullptr;
|
|
};
|
|
} /* namespace gui */
|