2020-01-21 17:04:54 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2021-02-02 19:17:06 -08:00
|
|
|
#include "ALabel.hpp"
|
2020-01-23 17:17:29 +01:00
|
|
|
#include "util/rfkill.hpp"
|
2020-01-22 11:37:47 +01:00
|
|
|
|
2020-01-21 17:04:54 +01:00
|
|
|
namespace waybar::modules {
|
|
|
|
|
|
|
|
|
|
class Bluetooth : public ALabel {
|
|
|
|
|
public:
|
|
|
|
|
Bluetooth(const std::string&, const Json::Value&);
|
|
|
|
|
~Bluetooth() = default;
|
|
|
|
|
auto update() -> void;
|
|
|
|
|
|
|
|
|
|
private:
|
2021-02-02 20:10:27 -08:00
|
|
|
util::Rfkill rfkill_;
|
2020-01-21 17:04:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace waybar::modules
|