Files
MuditaOS/module-apps/application-settings-new/windows/OfflineWindow.hpp
RobertPiet 39e6f1b18a [EGD-5902] Phone Modes Windows
Windows for phone modes created.
Offline:FightMode/messages only ServiceCellularApi created.
ConnectionFrequency and DND options settings throught AppSettings.
2021-03-11 17:38:44 +01:00

32 lines
877 B
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 "BaseSettingsWindow.hpp"
#include <Text.hpp>
namespace app::settingsInterface
{
class OfflineSettings;
} // namespace app::settingsInterface
namespace gui
{
class OfflineWindow : public BaseSettingsWindow
{
public:
OfflineWindow(app::Application *app, app::settingsInterface::OfflineSettings *offlineSettings);
void buildInterface() override;
private:
app::settingsInterface::OfflineSettings *offlineSettings;
Rect *bar = nullptr;
Text *descriptionText = nullptr;
auto buildOptionsList() -> std::list<Option> override;
bool changeFlightMode(bool isFlightMode);
bool isFlightMode = true;
};
}; // namespace gui