mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-25 07:58:29 -04:00
Rewrote these windows in a proper way. Fixed few minor issues. GUI adjustments.
28 lines
852 B
C++
28 lines
852 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 "BaseSettingsWindow.hpp"
|
|
#include "application-settings-new/ApplicationSettings.hpp"
|
|
#include "application-settings-new/models/BluetoothSettingsModel.hpp"
|
|
|
|
#include <Device.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class AddDeviceWindow : public BaseSettingsWindow
|
|
{
|
|
public:
|
|
explicit AddDeviceWindow(app::Application *app, std::string name = window::name::add_device);
|
|
|
|
private:
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
void onClose() override;
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
|
|
std::unique_ptr<BluetoothSettingsModel> bluetoothSettingsModel;
|
|
std::vector<Devicei> devices;
|
|
};
|
|
}; // namespace gui
|