mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-29 01:08:43 -04:00
[EGD-2628][WIP] Attach Add Device window [EGD-2628] Fix passing scanned bt devices to Add device window [EGD-2628] Add bt icon and adjust botton bar of Add device window [EGD-2628] Add all devices window, & some fixes for add device window [EGD-2628] Update changelog & cleanup [EGD-2628] Improve bluetooth main window
37 lines
934 B
C++
37 lines
934 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 "OptionWindow.hpp"
|
|
|
|
#include <service-bluetooth/messages/BluetoothMessage.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class AddDeviceWindow : public OptionWindow
|
|
{
|
|
public:
|
|
AddDeviceWindow(app::Application *app);
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
|
|
private:
|
|
auto devicesOptionsList() -> std::list<gui::Option>;
|
|
void rebuildOptionList();
|
|
std::vector<Devicei> devices;
|
|
};
|
|
|
|
class DeviceData : public SwitchData
|
|
{
|
|
std::vector<Devicei> devices;
|
|
|
|
public:
|
|
DeviceData(std::vector<Devicei> devices) : SwitchData(), devices(std::move(devices))
|
|
{}
|
|
auto getDevices() -> const std::vector<Devicei> &
|
|
{
|
|
return devices;
|
|
}
|
|
};
|
|
}; // namespace gui
|