mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-20 21:14:12 -04:00
27 lines
856 B
C++
27 lines
856 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 "application-settings-new/models/BluetoothSettingsModel.hpp"
|
|
#include "BaseSettingsWindow.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
class BluetoothWindow : public BaseSettingsWindow
|
|
{
|
|
public:
|
|
explicit BluetoothWindow(app::Application *app);
|
|
|
|
private:
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
void changeBluetoothState(bool ¤tState);
|
|
void changeVisibility(bool ¤tVisibility);
|
|
|
|
std::unique_ptr<BluetoothSettingsModel> bluetoothSettingsModel;
|
|
bool isBluetoothSwitchOn = false;
|
|
bool isPhoneVisibilitySwitchOn = false;
|
|
};
|
|
} // namespace gui
|