author | mickeyl <mickeyl> | 2003-10-10 02:24:48 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-10 02:24:48 (UTC) |
commit | 2b2620fee2bbd6f7045b237aa33c277c47512345 (patch) (unidiff) | |
tree | 31f92a166da4ae596d55fe5079f058dd4a16fce4 /noncore/settings/networksettings/wlan/wlanimp2.h | |
parent | c1a897e63513c9647666970794c1684b2439501e (diff) | |
download | opie-2b2620fee2bbd6f7045b237aa33c277c47512345.zip opie-2b2620fee2bbd6f7045b237aa33c277c47512345.tar.gz opie-2b2620fee2bbd6f7045b237aa33c277c47512345.tar.bz2 |
This patch adds scanning the "network neighbourhood" in networksettings-wlan
(powered by the Wellenreiter II scanning engine found in libopienet2).
Detected networks are put in a list and you can select parameters by clicking
on an entry in the list. See http://opie.net.wox.org/images/wlanplugin.png
Two inherent drawbacks:
1.) networksettingsplugin-wlan now needs libopienet2. Well, my library work pays
off. If you like to rewrite the stuff so that libopienet2 is not needed, then just
go ahead ;)
2.) Scanning won't work on linux distributions without patched monitor mode drivers.
I think we can live with these two "issues". Feel free to revert, if you don't like
my work :D
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp2.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp2.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp2.h b/noncore/settings/networksettings/wlan/wlanimp2.h index 992d09a..a777203 100644 --- a/noncore/settings/networksettings/wlan/wlanimp2.h +++ b/noncore/settings/networksettings/wlan/wlanimp2.h | |||
@@ -4,12 +4,20 @@ | |||
4 | #include "wlan.h" | 4 | #include "wlan.h" |
5 | #include "interfaces.h" | 5 | #include "interfaces.h" |
6 | #include <qstringlist.h> | 6 | #include <qstringlist.h> |
7 | #include <opie2/onetutils.h> | ||
7 | 8 | ||
8 | class InterfaceSetupImp; | 9 | class InterfaceSetupImp; |
9 | class Interface; | 10 | class Interface; |
10 | class Config; | 11 | class Config; |
12 | class OPacket; | ||
13 | class QListViewItem; | ||
11 | 14 | ||
12 | class WLANImp : public WLAN { | 15 | const int col_mode= 0; |
16 | const int col_ssid = 1; | ||
17 | const int col_chn = 2; | ||
18 | const int col_mac = 3; | ||
19 | |||
20 | class WLANImp : public WLAN { | ||
13 | Q_OBJECT | 21 | Q_OBJECT |
14 | 22 | ||
15 | public: | 23 | public: |
@@ -17,6 +25,10 @@ public: | |||
17 | ~WLANImp(); | 25 | ~WLANImp(); |
18 | void setProfile(const QString &profile); | 26 | void setProfile(const QString &profile); |
19 | 27 | ||
28 | public slots: | ||
29 | void rescanNeighbourhood(); | ||
30 | void selectNetwork( QListViewItem* ); | ||
31 | |||
20 | protected: | 32 | protected: |
21 | void accept(); | 33 | void accept(); |
22 | 34 | ||
@@ -25,7 +37,10 @@ private: | |||
25 | void writeOpts(); | 37 | void writeOpts(); |
26 | 38 | ||
27 | void parseKeyStr(QString keystr); | 39 | void parseKeyStr(QString keystr); |
28 | 40 | ||
41 | void handlePacket( OPacket* ); | ||
42 | void displayFoundNetwork( const QString& mode, int channel, const QString& ssid, const OMacAddress& mac ); | ||
43 | |||
29 | InterfaceSetupImp *interfaceSetup; | 44 | InterfaceSetupImp *interfaceSetup; |
30 | Interfaces *interfaces; | 45 | Interfaces *interfaces; |
31 | Interface *interface; | 46 | Interface *interface; |
@@ -34,4 +49,4 @@ private: | |||
34 | }; | 49 | }; |
35 | 50 | ||
36 | #endif | 51 | #endif |
37 | 52 | ||