Files
MuditaOS/module-apps/application-settings-new/windows/AddDeviceWindow.hpp
Paweł Olejniczak d676fdabb7 [EGD-2628] Create Add device windows (#867)
[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
2020-10-22 11:42:53 +02:00

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