add man page for bluetooth, fix bluetooth race-condition

This commit is contained in:
Marc
2020-01-26 05:34:31 +01:00
parent e3bf6b968c
commit c045288ce4
8 changed files with 153 additions and 78 deletions

View File

@ -18,6 +18,7 @@ class Bluetooth : public ALabel {
private:
std::string status_;
util::SleeperThread thread_;
util::SleeperThread intervall_thread_;
util::Rfkill rfkill_;
};

View File

@ -72,6 +72,7 @@ class Network : public ALabel {
util::SleeperThread thread_;
util::SleeperThread thread_timer_;
util::SleeperThread thread_rfkill_;
util::Rfkill rfkill_;
};

View File

@ -5,12 +5,11 @@
namespace waybar::util {
class Rfkill {
public:
public:;
Rfkill(enum rfkill_type rfkill_type);
~Rfkill() = default;
bool isDisabled() const;
void waitForEvent();
int getState();
int getState() const;
private:
enum rfkill_type rfkill_type_;