From a416c6c9630d6d63ee63cf520953b86af8b7cddc Mon Sep 17 00:00:00 2001 From: wimpie Date: Sun, 04 Apr 2004 00:27:59 +0000 Subject: *** empty log message *** --- (limited to 'noncore/settings/networksettings2/ppp/ppprun.h') diff --git a/noncore/settings/networksettings2/ppp/ppprun.h b/noncore/settings/networksettings2/ppp/ppprun.h index 76a05be..abb9176 100644 --- a/noncore/settings/networksettings2/ppp/ppprun.h +++ b/noncore/settings/networksettings2/ppp/ppprun.h @@ -3,24 +3,30 @@ #include #include +#include #include "pppdata.h" -class PPPRun : public AsConnection { +class PPPRun : public AsConnection, public AsDevice { public : PPPRun( ANetNodeInstance * NNI, - PPPData & Data ) : - AsConnection( NNI ), - Pat( "eth[0-9]" ) - { D = &Data; } + PPPData & Data ); + virtual QString genNic( long NicNr ) + { QString S; return S.sprintf( "ppp%ld", NicNr ); } -protected : + virtual AsDevice * device( void ) + { return AsDevice::asDevice(); } + virtual RuntimeInfo * runtimeInfo( void ) + { return ( AsConnection *)this; } + + 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 ); } + { return AsDevice::connection()->findNext( + AsDevice::netNode() )->runtime()->canSetState( S,A ); } bool handlesInterface( const QString & I ); -- cgit v0.9.0.2