~aleteoryx/muditaos

ref: 0823d82e5141f44812c54debf07245d0ca746124 muditaos/module-apps/application-messages/windows/SMSThreadViewWindow.hpp -rw-r--r-- 1.0 KiB
0823d82e — Radoslaw Wicik [EGD-3743] Update copyrights in fies - add empty line after license 5 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
39
40
41
42
#pragma once

#include <AppWindow.hpp>
#include <module-apps/application-messages/models/SMSThreadModel.hpp>

#include <ListView.hpp>
#include <PhoneNumber.hpp>
#include <service-db/api/DBServiceAPI.hpp>

#include <functional>
#include <string>

namespace gui
{
    class SMSThreadViewWindow : public AppWindow
    {
      private:
        std::shared_ptr<SMSThreadModel> smsModel = nullptr;
        gui::ListView *smsList                   = nullptr;

        std::shared_ptr<ContactRecord> contact;

        inline static const std::uint32_t numberIdTimeout = 1000;

      public:
        SMSThreadViewWindow(app::Application *app);

        virtual ~SMSThreadViewWindow();
        // virtual methods
        bool onInput(const InputEvent &inputEvent) override;

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

        bool onDatabaseMessage(sys::Message *msgl) override;
        void rebuild() override;
        void buildInterface() override;

        void destroyInterface() override;
    };

} /* namespace gui */