summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/wlan/wlanrun.h
blob: 4cbb059dcf60b2b5a12f3437d1d6cf76b06f7435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef WLANRUN_H
#define WLANRUN_H

#include <qregexp.h>
#include <asdevice.h>
#include "wlandata.h"

class WLanRun  : public AsDevice {

public :

      WLanRun( ANetNodeInstance * NNI, WLanData & Data ) : 
               AsDevice( NNI ),
               Pat( "wlan[0-9]" )
        { }

      virtual long count( void )
        { return 2; }
      virtual QString genNic( long nr )
        { QString S; return S.sprintf( "wlan%ld", nr ); }
      virtual AsDevice * device( void ) 
        { return asDevice(); }

protected :

      void detectState( NodeCollection *  )
        { }

      bool setState( NodeCollection *, Action_t )
        { return 0; }

      bool canSetState( State_t, Action_t )
        { return 0; }

      bool handlesInterface( const QString & I );

private :

      QRegExp Pat;
};

#endif