Waybar/include/util/rfkill.hpp

20 lines
310 B
C++
Raw Permalink Normal View History

#pragma once
#include <linux/rfkill.h>
namespace waybar::util {
class Rfkill {
public:
Rfkill(enum rfkill_type rfkill_type);
~Rfkill() = default;
void waitForEvent();
2020-02-23 22:09:05 +00:00
bool getState() const;
private:
enum rfkill_type rfkill_type_;
int state_ = 0;
};
} // namespace waybar::util