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