Diffstat (limited to 'noncore/net/networksetup/wlan/wextensions.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/wlan/wextensions.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/noncore/net/networksetup/wlan/wextensions.h b/noncore/net/networksetup/wlan/wextensions.h new file mode 100644 index 0000000..29997f5 --- a/dev/null +++ b/noncore/net/networksetup/wlan/wextensions.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef WEXTENSIONS_H | ||
2 | #define WEXTENSIONS_H | ||
3 | |||
4 | #include <qstring.h> | ||
5 | |||
6 | #include <netinet/ip.h> | ||
7 | #include <linux/wireless.h> | ||
8 | |||
9 | class WExtensions { | ||
10 | |||
11 | public: | ||
12 | WExtensions(QString interfaceName); | ||
13 | QString getInterfaceName(){return interface;}; | ||
14 | bool doesHaveWirelessExtensions(){return hasWirelessExtensions;}; | ||
15 | QString station(); | ||
16 | QString essid(); | ||
17 | QString mode(); | ||
18 | double frequency(); | ||
19 | QString ap(); | ||
20 | bool stats( int &signal, int &noise, int &quality); | ||
21 | |||
22 | private: | ||
23 | bool hasWirelessExtensions; | ||
24 | QString interface; | ||
25 | |||
26 | // Used in we calls | ||
27 | struct iwreq iwr; | ||
28 | int fd; | ||
29 | |||
30 | }; | ||
31 | |||
32 | #endif | ||