~aleteoryx/muditaos

ref: ace4e133e70de6f22a77d38e6bf64681fb4c83e1 muditaos/module-apps/application-messages/windows/SMSTemplatesWindow.hpp -rw-r--r-- 1.0 KiB
ace4e133 — Marcin Zieliński [MOS-840] Render VoLTE unavailable if no SIM card 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
30
31
32
33
34
35
36
37
38
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "SMSdata.hpp"
#include "SMSTemplateModel.hpp"

#include <AppWindow.hpp>
#include <gui/widgets/text/Label.hpp>
#include <gui/widgets/ListView.hpp>

#include <functional>
#include <string>

namespace gui
{
    class SMSTemplatesWindow : public AppWindow
    {
        std::shared_ptr<SMSTemplateModel> smsTemplateModel;
        gui::ListView *list = nullptr;

        void smsSendTemplateRequestHandler(const SMSSendTemplateRequest *const switchData);
        void smsTemplateRequestHandler(const SMSTemplateRequest *const switchData);

      public:
        SMSTemplatesWindow() = delete;
        SMSTemplatesWindow(app::ApplicationCommon *app);
        virtual ~SMSTemplatesWindow();

        void onBeforeShow(ShowMode mode, SwitchData *data) override;

        void rebuild() override;
        void buildInterface() override;
        void destroyInterface() override;
    };

} /* namespace gui */