mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-20 21:14:12 -04:00
Fixed options crashes and cleared its structure. All options returns points to proper list indexes.
36 lines
945 B
C++
36 lines
945 B
C++
// 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 "OptionWindow.hpp"
|
|
#include "Application.hpp"
|
|
|
|
namespace app::settingsInterface
|
|
{
|
|
class SimParams;
|
|
class OperatorsSettings;
|
|
}; // namespace app::settingsInterface
|
|
|
|
namespace gui
|
|
{
|
|
|
|
namespace window
|
|
{
|
|
inline constexpr auto phone_modes_window = "PhoneModes";
|
|
};
|
|
|
|
class PhoneModesWindow : public OptionWindow
|
|
{
|
|
private:
|
|
auto modesOptList() -> std::list<gui::Option>;
|
|
app::settingsInterface::SimParams *simParams;
|
|
app::settingsInterface::OperatorsSettings *operatorsSettings;
|
|
|
|
public:
|
|
PhoneModesWindow(app::Application *app,
|
|
app::settingsInterface::SimParams *simParams,
|
|
app::settingsInterface::OperatorsSettings *operatorsSettings);
|
|
};
|
|
} // namespace gui
|