~aleteoryx/muditaos

ref: 4cefb5f114ea60de5e6ae30c404cef065f7d4b1d muditaos/module-apps/apps-common/popups/lock-popups/SimInfoWindow.hpp -rw-r--r-- 902 bytes
4cefb5f1 — Marcin Zieliński [MOS-640] Change windows flow in SIM settings 3 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
// 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 <popups/WindowWithTimer.hpp>
#include <Text.hpp>
#include <gui/widgets/Icon.hpp>
#include <locks/data/LockData.hpp>

namespace gui
{
    class SimInfoWindow : public WindowWithTimer
    {
        Icon *infoIcon = nullptr;

      public:
        SimInfoWindow(app::ApplicationCommon *app, const std::string &name);

        void buildInterface() override;
        void onBeforeShow(ShowMode mode, SwitchData *data) override;
        status_bar::Configuration configureStatusBar(status_bar::Configuration appConfiguration) override;

        locks::SimInputTypeAction getAction() const
        {
            return action_.value();
        }

      private:
        std::optional<locks::SimInputTypeAction> action_;
    };
} /* namespace gui */