From 67685a7531cfe8dfc32c195031dfe36ca69e115b Mon Sep 17 00:00:00 2001 From: wimpie Date: Fri, 02 Apr 2004 23:26:04 +0000 Subject: another one --- (limited to 'noncore/settings/networksettings2/ppp/ppprun.h') diff --git a/noncore/settings/networksettings2/ppp/ppprun.h b/noncore/settings/networksettings2/ppp/ppprun.h new file mode 100644 index 0000000..76a05be --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/ppprun.h @@ -0,0 +1,37 @@ +#ifndef PPPRUN_H +#define PPPRUN_H + +#include +#include +#include "pppdata.h" + +class PPPRun : public AsConnection { + +public : + + PPPRun( ANetNodeInstance * NNI, + PPPData & Data ) : + AsConnection( NNI ), + Pat( "eth[0-9]" ) + { D = &Data; } + +protected : + + void detectState( NodeCollection * NC ); + bool setState( NodeCollection * NC, Action_t A ); + bool canSetState( State_t S, Action_t A ) + { return connection()->findNext( netNode() )->runtime()->canSetState( S,A ); } + + bool handlesInterface( const QString & I ); + +private : + + bool isMyPPPDRunning( void ); + bool isMyPPPUp( void ); + + PPPData_t * D; + QRegExp Pat; + +}; + +#endif -- cgit v0.9.0.2