~aleteoryx/muditaos

ref: b0fae5c4b83fe1ef8fef1807a0cad9387aed72d5 muditaos/module-apps/application-settings-new/windows/NetworkWindow.hpp -rw-r--r-- 804 bytes
b0fae5c4 — RobertPiet [EGD-3995] setup sim window prepared basing on the old settings (#913) 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
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "OptionWindow.hpp"
#include "Application.hpp"

namespace app::settingsInterface
{
    class SimParams;
}

namespace gui
{

    namespace window
    {
        inline constexpr auto network_window = "Network";
    };

    class NetworkWindow : public OptionWindow
    {
      private:
        bool operatorsOn;
        app::settingsInterface::SimParams *simParams;
        auto netOptList() -> std::list<gui::Option>;
        void rebuild() override;

      public:
        NetworkWindow(app::Application *app, app::settingsInterface::SimParams *simParams);
        void onBeforeShow(ShowMode m, SwitchData *d) override;
    };
} // namespace gui