~aleteoryx/muditaos

ref: e35fca8524dfe78c3076073d20bedad897e876a7 muditaos/module-apps/application-alarm-clock/presenter/AlarmClockMainWindowPresenter.hpp -rw-r--r-- 1.1 KiB
e35fca85 — Lefucjusz [MOS-1064] Fix no input language selected for French/Spanish 1 year, 9 months 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
30
31
32
33
34
35
36
37
38
// 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 "BasePresenter.hpp"
#include "application-alarm-clock/models/AlarmsModel.hpp"

namespace app::alarmClock
{
    class AlarmClockMainWindowContract
    {
      public:
        class View
        {
          public:
            virtual ~View() noexcept = default;
        };
        class Presenter : public BasePresenter<AlarmClockMainWindowContract::View>
        {
          public:
            virtual ~Presenter() noexcept = default;

            [[nodiscard]] virtual std::shared_ptr<gui::ListItemProvider> getAlarmsItemProvider() const = 0;
        };
    };

    class AlarmClockMainWindowPresenter : public AlarmClockMainWindowContract::Presenter
    {
      public:
        explicit AlarmClockMainWindowPresenter(std::shared_ptr<AlarmsListItemProvider> alarmsListItemProvider);

        [[nodiscard]] std::shared_ptr<gui::ListItemProvider> getAlarmsItemProvider() const override;

      private:
        std::shared_ptr<AlarmsListItemProvider> alarmsProvider;
    };
} // namespace app::alarmClock