summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/wlan/wlanrun.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/wlan/wlanrun.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/wlan/wlanrun.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/wlan/wlanrun.h b/noncore/settings/networksettings2/wlan/wlanrun.h
new file mode 100644
index 0000000..4cbb059
--- a/dev/null
+++ b/noncore/settings/networksettings2/wlan/wlanrun.h
@@ -0,0 +1,42 @@
1#ifndef WLANRUN_H
2#define WLANRUN_H
3
4#include <qregexp.h>
5#include <asdevice.h>
6#include "wlandata.h"
7
8class WLanRun : public AsDevice {
9
10public :
11
12 WLanRun( ANetNodeInstance * NNI, WLanData & Data ) :
13 AsDevice( NNI ),
14 Pat( "wlan[0-9]" )
15 { }
16
17 virtual long count( void )
18 { return 2; }
19 virtual QString genNic( long nr )
20 { QString S; return S.sprintf( "wlan%ld", nr ); }
21 virtual AsDevice * device( void )
22 { return asDevice(); }
23
24protected :
25
26 void detectState( NodeCollection * )
27 { }
28
29 bool setState( NodeCollection *, Action_t )
30 { return 0; }
31
32 bool canSetState( State_t, Action_t )
33 { return 0; }
34
35 bool handlesInterface( const QString & I );
36
37private :
38
39 QRegExp Pat;
40};
41
42#endif