summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/ppp_NNI.h
blob: 76afb218b0bd0d4ba8808ed812f2337101174ebd (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
38
39
40
41
42
43
44
45
#ifndef PPP_H
#define PPP_H

#include <netnode.h>
#include "pppdata.h"
#include "ppprun.h"

class PPPNetNode;
class PPPEdit;
class QTextStream;

class APPP : public ANetNodeInstance {

public :

      APPP( PPPNetNode * PNN );

      RuntimeInfo * runtime( void ) 
        { return (RT) ? RT : (RT = new PPPRun( this, Data ) ); }

      QWidget * edit( QWidget * parent );
      QString acceptable( void );
      void commit( void );

      virtual void * data( void ) 
        { return (void *)&Data; }

      virtual bool openFile( SystemFile & Sf );
      short generateFile( SystemFile & TS,
                         long DevNr );

protected :

      virtual void setSpecificAttribute( QString & Attr, QString & Value );
      virtual void saveSpecificAttribute( QTextStream & TS );

private :

      PPPEdit * GUI;
      PPPData Data;
      PPPRun * RT;

};

#endif