~aleteoryx/muditaos

ref: 6bbef804c0605b90a3aff579376e9ea940733238 muditaos/module-apps/application-settings-new/ApplicationSettings.hpp -rw-r--r-- 2.6 KiB
6bbef804 — Michał Kamoń [EGD-4284] missing include added (#956) 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
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
// 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 "Application.hpp"

#include <bsp/common.hpp>

namespace gui::window::name
{
    inline const std::string bluetooth   = "Bluetooth";
    inline const std::string all_devices = "AllDevices";
    inline const std::string phone_name  = "PhoneName";
    inline const std::string add_device  = "AddDevice";

    inline const std::string network        = "Network";
    inline const std::string phone_modes    = "PhoneModes";
    inline const std::string apps_and_tools = "AppsAndTools";
    inline const std::string security       = "Security";
    inline const std::string system         = "System";

    inline const std::string display_light  = "DisplayLight";
    inline const std::string font_size      = "FontSize";
    inline const std::string keypad_light   = "KeypadLight";
    inline const std::string input_language = "InputLanguage";
    inline const std::string locked_screen  = "LockedScreen";

    inline const std::string messages  = "Messages";
    inline const std::string torch     = "Torch";
    inline const std::string templates = "Templates";

    inline const std::string autolock  = "Autolock";
    inline const std::string wallpaper = "Wallpaper";
    inline const std::string quotes    = "Quotes";
    inline const std::string new_quote = "NewQuote";

    inline const std::string display_and_keypad = "DisplayAndKeypad";

    inline const std::string change_settings = "ChangeSettings";
    inline const std::string all_operators   = "AllOperators";
    inline const std::string import_contacts = "ImportContacts";
    inline const std::string dialog_settings = "DialogSettings";

} // namespace gui::window::name

namespace app
{
    inline const std::string name_settings_new = "ApplicationSettingsNew";

    class ApplicationSettingsNew : public app::Application
    {
      public:
        ApplicationSettingsNew(std::string name    = name_settings_new,
                               std::string parent  = "",
                               bool startBackgound = false);
        auto DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp) -> sys::Message_t override;
        auto InitHandler() -> sys::ReturnCodes override;

        auto SwitchPowerModeHandler(const sys::ServicePowerMode mode) -> sys::ReturnCodes final
        {
            return sys::ReturnCodes::Success;
        }

        void createUserInterface() override;
        void destroyUserInterface() override;
        bsp::Board board = bsp::Board::none;
    };

} /* namespace app */