blob: 76a05bea0683cb0c64dc3f65b2385f01b131e7e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|