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