summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/vpn/vpn_NNI.h
blob: 31ce0d6cc49e975b4ae2306554ef8924ce32597a (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
#ifndef VPN_H
#define VPN_H

#include <netnode.h>
#include "vpndata.h"
#include "vpnrun.h"

class VPNNetNode;
class VPNEdit;

class AVPN : public ANetNodeInstance {

public :

      AVPN( VPNNetNode * PNN );

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

      RuntimeInfo * runtime( void ) 
        { if( RT == 0 ) 
            RT = new VPNRun( this, Data );
          return RT;
        }

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

protected :

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

private :

      VPNEdit * GUI;
      VPNData Data;
      VPNRun * RT;

};

#endif