author | kergoth <kergoth> | 2003-04-14 23:31:22 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-14 23:31:22 (UTC) |
commit | fb07cc161b4adc5bc250569599a7164af2d7caba (patch) (unidiff) | |
tree | 1f391e35146e81835af5e0a395896b3fe3c0d46b /noncore/settings/networksettings/wlan/wlanimp2.h | |
parent | 68c558ca78e5416145b64ca87fd01361f033ef34 (diff) | |
download | opie-fb07cc161b4adc5bc250569599a7164af2d7caba.zip opie-fb07cc161b4adc5bc250569599a7164af2d7caba.tar.gz opie-fb07cc161b4adc5bc250569599a7164af2d7caba.tar.bz2 |
Add new wireless parser that uses the wireless-tools if-pre-up.d
script to handle wireless configuration, as opposed to pcmcia-cs
wireless.opts. This has a number of benefits. In addition to
improving clarity, this means one can now configure their wireless
non-pcmcia interfaces using networksettings. The only real question
is, how to handle the fact that its largely useless without the
if-pre-up.d script? I'll adapt the existing wlanimp.(cpp|h) to
the new .ui, and leave it as a compiletime selection for now.
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp2.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp2.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp2.h b/noncore/settings/networksettings/wlan/wlanimp2.h new file mode 100644 index 0000000..992d09a --- a/dev/null +++ b/noncore/settings/networksettings/wlan/wlanimp2.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef WLANIMP_H | ||
2 | #define WLANIMP_H | ||
3 | |||
4 | #include "wlan.h" | ||
5 | #include "interfaces.h" | ||
6 | #include <qstringlist.h> | ||
7 | |||
8 | class InterfaceSetupImp; | ||
9 | class Interface; | ||
10 | class Config; | ||
11 | |||
12 | class WLANImp : public WLAN { | ||
13 | Q_OBJECT | ||
14 | |||
15 | public: | ||
16 | WLANImp( QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = FALSE, WFlags fl = 0 ); | ||
17 | ~WLANImp(); | ||
18 | void setProfile(const QString &profile); | ||
19 | |||
20 | protected: | ||
21 | void accept(); | ||
22 | |||
23 | private: | ||
24 | void parseOpts(); | ||
25 | void writeOpts(); | ||
26 | |||
27 | void parseKeyStr(QString keystr); | ||
28 | |||
29 | InterfaceSetupImp *interfaceSetup; | ||
30 | Interfaces *interfaces; | ||
31 | Interface *interface; | ||
32 | |||
33 | QString currentProfile; | ||
34 | }; | ||
35 | |||
36 | #endif | ||
37 | |||