Files
MuditaOS/module-apps/application-alarm-clock/windows/CustomRepeatWindow.hpp
Przemyslaw Brudny e3a057e15c [EGD-7310] Alarm GUI and features update
Updated AlarmOptionsItem to use UTF8Spinner.
Created specialized widgets to cover options
sets. Updated GenericSpinner to handle Pure
navigation and content swap. Updated Alarm
RRule code to work with Custom Days selection
and new widgets. Added Tests. General GUI
stylistic fixes. Increased app Alarm Clock
and service Time stack sizes.
2021-09-21 14:11:21 +03:00

29 lines
970 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 <application-alarm-clock/presenter/CustomRepeatWindowPresenter.hpp>
#include <Application.hpp>
#include <ListView.hpp>
namespace app::alarmClock
{
class CustomRepeatWindow : public gui::AppWindow, public CustomRepeatWindowContract::View
{
gui::ListView *list = nullptr;
std::unique_ptr<CustomRepeatWindowContract::Presenter> presenter;
public:
CustomRepeatWindow(app::ApplicationCommon *app,
std::unique_ptr<CustomRepeatWindowContract::Presenter> &&windowPresenter);
void onBeforeShow(gui::ShowMode mode, gui::SwitchData *data) override;
void onClose(CloseReason reason) override;
bool onInput(const gui::InputEvent &inputEvent) override;
void buildInterface() override;
};
} // namespace app::alarmClock