From 2a7afda8b7daf4a43e370dba09e43e7f5058ab49 Mon Sep 17 00:00:00 2001 From: wimpie Date: Tue, 04 Jan 2005 01:39:32 +0000 Subject: More NS2 files --- (limited to 'noncore/settings/networksettings2/gprs/GPRSrun.h') diff --git a/noncore/settings/networksettings2/gprs/GPRSrun.h b/noncore/settings/networksettings2/gprs/GPRSrun.h new file mode 100644 index 0000000..817f8a9 --- a/dev/null +++ b/noncore/settings/networksettings2/gprs/GPRSrun.h @@ -0,0 +1,34 @@ +#include +#include +#include "GPRSdata.h" + +class GPRSRun : public RuntimeInfo { + +public : + + GPRSRun( ANetNodeInstance * NNI, + GPRSData & D ) : RuntimeInfo( NNI ), + Pat( "ppp[0-9]" ) { + PPPPid = 0; + } + + bool handlesInterface( const QString & I ); + bool handlesInterface( InterfaceInfo * ); + + virtual RuntimeInfo * device( void ) + { return this; } + virtual RuntimeInfo * connection( void ) + { return this; } + + State_t detectState( void ); + +protected : + + QString setMyState( NodeCollection * , Action_t, bool ); + +private : + + QRegExp Pat; + size_t PPPPid; + +}; -- cgit v0.9.0.2