summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/ppprun.h
blob: 9535382959d54a45417b063f7fe5e32997172b6f (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 <netnode.h>
#include "pppdata.h"

class PPPRun  : public RuntimeInfo {

public :

      PPPRun( ANetNodeInstance * NNI, 
              PPPData & Data );

      bool handlesInterface( const QString & I );
      bool handlesInterface( InterfaceInfo * );

      State_t detectState( void );
      virtual RuntimeInfo * device( void ) 
        { return this; }
      virtual RuntimeInfo * connection( void ) 
        { return this; }

protected :

      QString setMyState( NetworkSetup * , Action_t, bool );

private :

      bool isMyPPPDRunning( void );
      bool isMyPPPUp( void );

      PPPData * D;
      QRegExp Pat;
};

#endif