summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/vpn/vpn_NNI.cpp
blob: ee999e899b9444073d8234913303623fd91d1462 (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
#include "vpnedit.h"
#include "vpn_NNI.h"
#include "vpn_NN.h"

AVPN::AVPN( VPNNetNode * PNN ) : ANetNodeInstance( PNN ) {
    GUI = 0;
    RT = 0;
}

void AVPN::setSpecificAttribute( QString & , QString & ) {
}

void AVPN::saveSpecificAttribute( QTextStream & ) {
}

QWidget * AVPN::edit( QWidget * parent ) {
    GUI = new VPNEdit( parent );
    GUI->showData( Data );
    return GUI;
}

QString AVPN::acceptable( void ) {
    return ( GUI ) ? GUI->acceptable( ) : QString();
}

void AVPN::commit( void ) {
    if( GUI && GUI->commit( Data ) )
      setModified( 1 );
}

bool AVPN::generateDataForCommonFile( 
                                SystemFile & , 
                                long) {
      return 1;
}