00001 #ifndef LANCARDRUN_H 00002 #define LANCARDRUN_H 00003 00004 #include <netnode.h> 00005 #include <qregexp.h> 00006 #include "lancarddata.h" 00007 00008 class LanCardRun : public RuntimeInfo { 00009 00010 public : 00011 00012 LanCardRun( ANetNodeInstance * NNI, 00013 LanCardData & D ) : RuntimeInfo( NNI ), 00014 Pat( "eth[0-9]" ) { 00015 Data = &D; 00016 } 00017 00018 virtual RuntimeInfo * device( void ) 00019 { return this; } 00020 00021 bool handlesInterface( const QString & I ); 00022 bool handlesInterface( const InterfaceInfo & II ); 00023 00024 State_t detectState( void ); 00025 00026 protected : 00027 00028 QString setMyState( NetworkSetup * , Action_t, bool ); 00029 00030 private : 00031 00032 InterfaceInfo * getInterface( void ); 00033 QRegExp Pat; 00034 LanCardData * Data; 00035 00036 }; 00037 #endif
1.4.2