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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/ppp/ppprun.h b/noncore/settings/networksettings2/ppp/ppprun.h
index abb9176..765aff2 100644
--- a/noncore/settings/networksettings2/ppp/ppprun.h
+++ b/noncore/settings/networksettings2/ppp/ppprun.h
@@ -1,43 +1,49 @@
1#ifndef PPPRUN_H 1#ifndef PPPRUN_H
2#define PPPRUN_H 2#define PPPRUN_H
3 3
4#include <qregexp.h> 4#include <qregexp.h>
5#include <asconnection.h> 5#include <asconnection.h>
6#include <asdevice.h> 6#include <asdevice.h>
7#include "pppdata.h" 7#include "pppdata.h"
8 8
9class PPPRun : public AsConnection, public AsDevice { 9class PPPRun : public AsConnection, public AsDevice {
10 10
11public : 11public :
12 12
13 PPPRun( ANetNodeInstance * NNI, 13 PPPRun( ANetNodeInstance * NNI,
14 PPPData & Data ); 14 PPPData & Data );
15 virtual QString genNic( long NicNr ) 15 virtual QString genNic( long NicNr )
16 { QString S; return S.sprintf( "ppp%ld", NicNr ); } 16 { QString S; return S.sprintf( "ppp%ld", NicNr ); }
17 17
18 virtual AsDevice * asDevice( void )
19 { return (AsDevice *)this; }
20 virtual AsConnection * asConnection( void )
21 { return (AsConnection *)this; }
22
18 virtual AsDevice * device( void ) 23 virtual AsDevice * device( void )
19 { return AsDevice::asDevice(); } 24 { return (AsDevice *)this; }
25
20 virtual RuntimeInfo * runtimeInfo( void ) 26 virtual RuntimeInfo * runtimeInfo( void )
21 { return ( AsConnection *)this; } 27 { return ( AsConnection *)this; }
22 28
23 protected : 29 protected :
24 30
25 void detectState( NodeCollection * NC ); 31 void detectState( NodeCollection * NC );
26 bool setState( NodeCollection * NC, Action_t A ); 32 bool setState( NodeCollection * NC, Action_t A );
27 bool canSetState( State_t S, Action_t A ) 33 bool canSetState( State_t S, Action_t A )
28 { return AsDevice::connection()->findNext( 34 { return AsDevice::connection()->findNext(
29 AsDevice::netNode() )->runtime()->canSetState( S,A ); } 35 AsDevice::netNode() )->runtime()->canSetState( S,A ); }
30 36
31 bool handlesInterface( const QString & I ); 37 bool handlesInterface( const QString & I );
32 38
33private : 39private :
34 40
35 bool isMyPPPDRunning( void ); 41 bool isMyPPPDRunning( void );
36 bool isMyPPPUp( void ); 42 bool isMyPPPUp( void );
37 43
38 PPPData_t * D; 44 PPPData_t * D;
39 QRegExp Pat; 45 QRegExp Pat;
40 46
41}; 47};
42 48
43#endif 49#endif