~aleteoryx/muditaos

muditaos/module-apps/apps-common/popups/Popups.hpp -rw-r--r-- 3.5 KiB
a405cad6Aleteoryx trim readme 6 days 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md

#pragma once

#include <string>

namespace gui
{
    namespace popup
    {
        enum class ID
        {
            Volume,
            PhoneModes,
            Brightness,
            Tethering,
            TetheringPhoneModeChangeProhibited,
            BluetoothAuthenticate,
            BluetoothInfo,
            PhoneLock,
            PhoneLockInput,
            PhoneLockInfo,
            PhoneLockChangeInfo,
            SimLock,
            SimInfo,
            SimNotReady,
            SimSwitching,
            AlarmActivated,
            AlarmDeactivated,
            Alarm,
            PowerOff,
            Reboot,
            BedtimeNotification,
            ChargingNotification,
            ChargingDoneNotification,
            AudioError,
            AppTestPopup,
            Invalid,
        };

        namespace window
        {
            inline constexpr auto volume_window                     = "VolumePopup";
            inline constexpr auto phone_modes_window                = "PhoneModesPopup";
            inline constexpr auto brightness_window                 = "BrightnessPopup";
            inline constexpr auto tethering_confirmation_window     = "TetheringConfirmationPopup";
            inline constexpr auto tethering_phonemode_change_window = "TetheringPhoneModeChangeProhibitedPopup";
            inline constexpr auto tethering_off_window              = "TetheringOffPopup";
            inline constexpr auto tethering_menu_window             = "TetheringMenuPopup";
            inline constexpr auto bluetooth_authenticate            = "BluetoothAuthenticatePopup";
            inline constexpr auto bluetooth_info                    = "BluetoothInfoPopup";
            inline constexpr auto phone_lock_window                 = "PhoneLockPopup";
            inline constexpr auto phone_lock_info_window            = "PhoneLockInfoPopup";
            inline constexpr auto phone_lock_input_window           = "PhoneLockInputPopup";
            inline constexpr auto phone_lock_change_info_window     = "PhoneLockChangeInfoPopup";
            inline constexpr auto power_off_window                  = "PowerOffPopup";
            inline constexpr auto sim_unlock_window                 = "SimUnlockPopup";
            inline constexpr auto sim_info_window                   = "SimInfoPopup";
            inline constexpr auto sim_not_ready_window              = "SimNotReadyPopup";
            inline constexpr auto sim_switching_window              = "SimSwitchingPopup";
            inline constexpr auto alarm_activated_window            = "AlarmActivatedPopup";
            inline constexpr auto alarm_deactivated_window          = "AlarmDeactivatedPopup";
            inline constexpr auto alarm_window                      = "AlarmPopup";
            inline constexpr auto reboot_window                     = "RebootPopup";
            inline constexpr auto bedtime_notification_window       = "BedtimeNotificationPopup";
            inline constexpr auto charging_notification_window      = "ChargingNotificationPopup";
            inline constexpr auto charging_done_notification_window = "ChargingDoneNotificationPopup";
            inline constexpr auto audio_error_window                = "AudioErrorPopup";
            inline constexpr auto test_popup                        = "test_popup";
        } // namespace window

        std::string resolveWindowName(ID id);
    } // namespace popup
} // namespace gui