mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 20:44:44 -04:00
40 lines
941 B
C++
40 lines
941 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#include "AppWindow.hpp"
|
|
#include "gui/widgets/Image.hpp"
|
|
#include "gui/widgets/Label.hpp"
|
|
#include "gui/widgets/Window.hpp"
|
|
#include <memory>
|
|
#include <BoxLayout.hpp>
|
|
#include <service-bluetooth/messages/BluetoothMessage.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
namespace name::window
|
|
{
|
|
inline const std::string name_btscan = "BT_SCAN";
|
|
}
|
|
|
|
class BtScanWindow : public AppWindow
|
|
{
|
|
protected:
|
|
VBox *box;
|
|
|
|
public:
|
|
BtScanWindow(app::Application *app, std::vector<Devicei> devices);
|
|
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
auto onInput(const InputEvent &inputEvent) -> bool override;
|
|
void destroyInterface() override;
|
|
|
|
private:
|
|
void invalidate() noexcept;
|
|
std::vector<Devicei> devices;
|
|
};
|
|
} // namespace gui
|