distinguish between wifi disabled and disconnected

This commit is contained in:
Marc
2020-01-20 00:35:37 +01:00
parent def4466953
commit 2dc4ae78fc
2 changed files with 55 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include <netlink/genl/genl.h>
#include <netlink/netlink.h>
#include <sys/epoll.h>
#include <linux/rfkill.h>
#include "ALabel.hpp"
#include "util/sleeper_thread.hpp"
@ -45,6 +46,7 @@ class Network : public ALabel {
const std::string getNetworkState() const;
void clearIface();
bool wildcardMatch(const std::string& pattern, const std::string& text) const;
bool isDisabled(enum rfkill_type rfkill_type) const;
int ifid_;
sa_family_t family_;