summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/lancard/lancardrun.h
blob: 57ef3fb9404e254872dd2d33a0e228af5dc00ed3 (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
#ifndef LANCARDRUN_H
#define LANCARDRUN_H

#include <netnode.h>
#include <qregexp.h>
#include "lancarddata.h"

class LanCardRun  : public RuntimeInfo {

public :

      LanCardRun( ANetNodeInstance * NNI, 
                  LanCardData & D ) : RuntimeInfo( NNI ),
                                      Pat( "eth[0-9]" ) { 
        Data = &D;
      }

      virtual RuntimeInfo * device( void ) 
        { return this; }

      bool handlesInterface( const QString & I );
      bool handlesInterface( const InterfaceInfo & II );

      State_t detectState( void );

protected :

      QString setMyState( NodeCollection * , Action_t, bool );

private :

      InterfaceInfo * getInterface( void );
      QRegExp Pat;
      LanCardData * Data;

};
#endif