~aleteoryx/muditaos

ref: 46f9cc7e100b471afef4efc4449880eb480ac7fa muditaos/module-apps/application-settings-new/windows/ApnSettingsWindow.hpp -rw-r--r-- 973 bytes
46f9cc7e — Lucjan Bryndza [EGD-5737] Merge master into experimental 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
// 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 "OptionWindow.hpp"
#include <Icon.hpp>
#include <service-cellular/PacketDataTypes.hpp>

namespace gui
{
    class ApnSettingsWindow : public OptionWindow
    {
      public:
        ApnSettingsWindow(app::Application *app);

      private:
        void buildInterface() override;
        auto handleSwitchData(SwitchData *data) -> bool override;
        void onBeforeShow(ShowMode mode, SwitchData *data) override;
        auto onInput(const InputEvent &inputEvent) -> bool override;
        auto optionsList(std::vector<std::shared_ptr<packet_data::APN::Config>> vector) -> std::list<Option>;

        Image *leftArrowImage = nullptr;
        Image *crossImage     = nullptr;
        Icon *emptyListIcon   = nullptr;
        std::vector<std::shared_ptr<packet_data::APN::Config>> apns;
    };
}; // namespace gui