summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/ppprun.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/ppp/ppprun.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/ppp/ppprun.h37
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 @@
1#ifndef PPPRUN_H
2#define PPPRUN_H
3
4#include <qregexp.h>
5#include <asconnection.h>
6#include "pppdata.h"
7
8class PPPRun : public AsConnection {
9
10public :
11
12 PPPRun( ANetNodeInstance * NNI,
13 PPPData & Data ) :
14 AsConnection( NNI ),
15 Pat( "eth[0-9]" )
16 { D = &Data; }
17
18protected :
19
20 void detectState( NodeCollection * NC );
21 bool setState( NodeCollection * NC, Action_t A );
22 bool canSetState( State_t S, Action_t A )
23 { return connection()->findNext( netNode() )->runtime()->canSetState( S,A ); }
24
25 bool handlesInterface( const QString & I );
26
27private :
28
29 bool isMyPPPDRunning( void );
30 bool isMyPPPUp( void );
31
32 PPPData_t * D;
33 QRegExp Pat;
34
35};
36
37#endif