#pragma once #include #include "components/popover.hpp" #include "gtkmm/button.h" class BluetoothWidget : public Popover { public: BluetoothWidget(std::string icon, std::string title); void setPowerState(bool state); void setIsDiscovering(bool state); sigc::signal powerStateChangedSignal; sigc::signal isDiscoveringChangedSignal; void update(); private: bool isPowered = false; bool isDiscovering = false; Gtk::Box container; Gtk::Box statusArea; Gtk::Box *deviceList = nullptr; Gtk::Button *scanButton = nullptr; Gtk::Button *toggleButton = nullptr; };