Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/wextensions.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/wextensions.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/wextensions.h b/noncore/settings/networksettings2/networksettings2/wextensions.h new file mode 100644 index 0000000..a89e33a --- a/dev/null +++ b/noncore/settings/networksettings2/networksettings2/wextensions.h @@ -0,0 +1,34 @@ +#ifndef WEXTENSIONS_H +#define WEXTENSIONS_H + +#include <qstring.h> + +#include <netinet/ip.h> +#include <linux/wireless.h> + +class WExtensions { + +public: + WExtensions(QString interfaceName); + QString getInterfaceName(){return interface;}; + bool doesHaveWirelessExtensions(){return hasWirelessExtensions;}; + QString station(); + QString essid(); + QString mode(); + double frequency(); + int channel(); + double rate(); + QString ap(); + bool stats( int &signal, int &noise, int &quality); + +private: + bool hasWirelessExtensions; + QString interface; + + // Used in we calls + struct iwreq iwr; + int fd; + +}; + +#endif |