Files
MuditaOS/module-apps/application-settings/windows/system/ChangeDateAndTimeWindow.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

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 */