changes requested

This commit is contained in:
Marc 2020-02-23 23:09:05 +01:00
parent 9abe1e2790
commit dd7d78cd60
4 changed files with 3 additions and 5 deletions

View File

@ -9,12 +9,11 @@ class Rfkill {
Rfkill(enum rfkill_type rfkill_type);
~Rfkill() = default;
void waitForEvent();
int getState() const;
bool getState() const;
private:
enum rfkill_type rfkill_type_;
int state_ = 0;
int prev_state_ = 0;
};
} // namespace waybar::util

View File

@ -15,7 +15,7 @@ Addressed by *bluetooth*
*interval*: ++
typeof: integer ++
default: 60 ++
The interval in which the network information gets polled (e.g. signal strength).
The interval in which the bluetooth state gets updated.
*format*: ++
typeof: string ++

View File

@ -3,7 +3,6 @@
#include <sys/eventfd.h>
#include <fstream>
#include <cassert>
#include <linux/rfkill.h>
#include "util/format.hpp"
#include "util/rfkill.hpp"

View File

@ -78,6 +78,6 @@ void waybar::util::Rfkill::waitForEvent() {
}
int waybar::util::Rfkill::getState() const {
bool waybar::util::Rfkill::getState() const {
return state_;
}