Files
MuditaOS/module-apps/application-settings-new/windows/BluetoothWindow.hpp
Pawel Olejniczak ce1d8cc63a [EGD-4339] Refactor AllDevices and PhoneName windows
Rewrote these windows in a proper way.
Fixed few minor issues.
GUI adjustments.
2021-02-23 13:55:49 +01:00

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 &currentState);
void changeVisibility(bool &currentVisibility);
std::unique_ptr<BluetoothSettingsModel> bluetoothSettingsModel;
bool isBluetoothSwitchOn = false;
bool isPhoneVisibilitySwitchOn = false;
};
} // namespace gui