mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
ecc32ddd18
The string was always overwritten in `update()`; don't need to store temporary value in the class.
21 lines
384 B
C++
21 lines
384 B
C++
#pragma once
|
|
|
|
#include "ALabel.hpp"
|
|
#include "util/rfkill.hpp"
|
|
#include "util/sleeper_thread.hpp"
|
|
|
|
namespace waybar::modules {
|
|
|
|
class Bluetooth : public ALabel {
|
|
public:
|
|
Bluetooth(const std::string&, const Json::Value&);
|
|
~Bluetooth() = default;
|
|
auto update() -> void;
|
|
|
|
private:
|
|
util::SleeperThread thread_;
|
|
util::Rfkill rfkill_;
|
|
};
|
|
|
|
} // namespace waybar::modules
|