~aleteoryx/muditaos

ref: 017e3d88dc687c85f3d0aeab3cddf255c5cc5d99 muditaos/module-apps/application-settings/windows/TestMessageWindow.hpp -rw-r--r-- 1.5 KiB
017e3d88 — Przemyslaw Brudny [EGD-5711] Finalized onBoarding application 4 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/*
 * TestMessageWindow.hpp
 *
 *  Created on: 3 gru 2019
 *      Author: kuba
 */

#ifndef MODULE_APPS_APPLICATION_SETTINGS_WINDOWS_TESTMESSAGEWINDOW_HPP_
#define MODULE_APPS_APPLICATION_SETTINGS_WINDOWS_TESTMESSAGEWINDOW_HPP_

#include <string>
#include <functional>

#include "AppWindow.hpp"
#include "gui/widgets/Label.hpp"
#include "gui/widgets/Text.hpp"
#include "gui/widgets/Image.hpp"
#include "gui/widgets/Window.hpp"
#include "gui/widgets/BottomBar.hpp"

namespace gui
{

    /*
     *
     */
    class TestMessageWindow : public AppWindow
    {
      protected:
        gui::Label *sendLabel;
        gui::Label *sendButton;

        gui::Label *receivedLabel;

        gui::Label *SendNumberLabel;
        gui::Label *SendMessageLabel;
        gui::Text *sendNumber;
        gui::Text *sendMessage;

        gui::Label *RecNumberLabel;
        gui::Label *RecMessageLabel;
        gui::Label *receiveNumber;
        gui::Text *receiveMessage;

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

        void onBeforeShow(ShowMode mode, SwitchData *data) override;
        void rebuild() override;
        void buildInterface() override;
        void destroyInterface() override;
        void cellularMessageCallback(UTF8 &number, UTF8 &message);
    };
} /* namespace gui */

#endif /* MODULE_APPS_APPLICATION_SETTINGS_WINDOWS_TESTMESSAGEWINDOW_HPP_ */