~aleteoryx/muditaos

ref: 25ba341e6cdfcc788bde7594b16536c7e6ff5312 muditaos/module-apps/popups/Popups.cpp -rw-r--r-- 963 bytes
25ba341e — Przemyslaw Brudny [EGD-5884] Added Lock Screen popup handling 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
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Popups.hpp"

namespace gui::popup
{
    std::string resolveWindowName(ID id)
    {
        switch (id) {
        case ID::Volume:
            return gui::popup::window::volume_window;
        case ID::PhoneModes:
            return gui::popup::window::phone_modes_window;
        case ID::Brightness:
            return gui::popup::window::brightness_window;
        case ID::Tethering:
            return gui::popup::window::tethering_confirmation_window;
        case ID::TetheringPhoneModeChangeProhibited:
            return gui::popup::window::tethering_phonemode_change_window;
        case ID::PhoneLock:
            return gui::popup::window::phone_lock_window;
        case ID::InputLock:
            return gui::popup::window::input_lock_window;
        }
        return {};
    }
} // namespace gui::popup