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