~aleteoryx/muditaos

ref: 1fff0a5115f78af1d5bccad88e366dd1d9663e36 muditaos/module-apps/application-alarm-clock/windows/CustomRepeatWindow.hpp -rw-r--r-- 995 bytes
1fff0a51 — Lukasz Mastalerz [BH-1768] Snooze mode with deep pressed knob 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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>
#include <AppWindow.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