mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
20 lines
310 B
C++
20 lines
310 B
C++
#pragma once
|
|
|
|
#include <linux/rfkill.h>
|
|
|
|
namespace waybar::util {
|
|
|
|
class Rfkill {
|
|
public:
|
|
Rfkill(enum rfkill_type rfkill_type);
|
|
~Rfkill() = default;
|
|
void waitForEvent();
|
|
bool getState() const;
|
|
|
|
private:
|
|
enum rfkill_type rfkill_type_;
|
|
int state_ = 0;
|
|
};
|
|
|
|
} // namespace waybar::util
|