mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-29 01:08:43 -04:00
1. Prepare Pure and Bell specific `Application` classes and add them to `app` target: - `products/BellHybrid/apps/Application.cpp` - `products/PurePhone/apps/Application.cpp` 2. Update `CMakeLists.txt` files. 3. Move `ApplicationBell` implementation to Bell-specific `Application` class and remove `ApplicationBell` files. 4. Change Bell apps parent classes from `ApplicationBell` to Bell-specific `Application` class. 5. Rename `Application` to `ApplicationCommon` in the rest of the files.
55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
// 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 <apps-common/ApplicationCommon.hpp>
|
|
#include <apps-common/windows/AppWindow.hpp>
|
|
#include <module-gui/gui/widgets/Text.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
namespace name
|
|
{
|
|
namespace window
|
|
{
|
|
inline constexpr auto scan_window = "AntennaScanWindow";
|
|
}
|
|
} // namespace name
|
|
class ScanModesWindow : public AppWindow
|
|
{
|
|
protected:
|
|
std::map<uint32_t, std::string> modeButtonParams;
|
|
enum scanModes
|
|
{
|
|
Auto = 0,
|
|
GSM_only,
|
|
WCDMA_only,
|
|
LTE_only,
|
|
TD_SCDMA_only,
|
|
UTMS_only,
|
|
CDMA_only,
|
|
HDR_only,
|
|
CDMA_and_HDR_only
|
|
};
|
|
|
|
gui::VBox *modesBox = nullptr;
|
|
gui::Label *commandResult = nullptr;
|
|
|
|
gui::Label *addMode(gui::Item *parent, const UTF8 &text);
|
|
gui::Label *addSpacer(void);
|
|
|
|
public:
|
|
ScanModesWindow(app::ApplicationCommon *app);
|
|
|
|
// virtual methods
|
|
bool onInput(const InputEvent &inputEvent) override;
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
void destroyInterface() override;
|
|
void updateCurrentMode(std::string &data);
|
|
};
|
|
|
|
} /* namespace gui */
|