Diffstat (limited to 'noncore/settings/networksettings2/ppp/ppprun.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/ppp/ppprun.h | 37 |
1 files changed, 37 insertions, 0 deletions
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 <qregexp.h> +#include <asconnection.h> +#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 |