author | wimpie <wimpie> | 2004-04-02 23:26:04 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 23:26:04 (UTC) |
commit | 67685a7531cfe8dfc32c195031dfe36ca69e115b (patch) (side-by-side diff) | |
tree | 9bba0b13d712f7e1794f67ae67a841c1aeb53954 /noncore/settings/networksettings2/ppp/ppprun.h | |
parent | 29044beb810a0d8361f670221f2f1128de7d4e32 (diff) | |
download | opie-67685a7531cfe8dfc32c195031dfe36ca69e115b.zip opie-67685a7531cfe8dfc32c195031dfe36ca69e115b.tar.gz opie-67685a7531cfe8dfc32c195031dfe36ca69e115b.tar.bz2 |
another one
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 |