Diffstat (limited to 'noncore/settings/networksettings2/vpn/vpn_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/vpn/vpn_NN.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/noncore/settings/networksettings2/vpn/vpn_NN.cpp b/noncore/settings/networksettings2/vpn/vpn_NN.cpp index 6c7b308..9d3b6e7 100644 --- a/noncore/settings/networksettings2/vpn/vpn_NN.cpp +++ b/noncore/settings/networksettings2/vpn/vpn_NN.cpp | |||
@@ -1,18 +1,17 @@ | |||
1 | #include "vpn_NN.h" | 1 | #include "vpn_NN.h" |
2 | #include "vpn_NNI.h" | 2 | #include "vpn_NNI.h" |
3 | 3 | ||
4 | static const char * VPNNeeds[] = | 4 | static const char * VPNNeeds[] = |
5 | { "connection", | 5 | { 0 |
6 | 0 | ||
7 | }; | 6 | }; |
8 | 7 | ||
9 | /** | 8 | /** |
10 | * Constructor, find all of the possible interfaces | 9 | * Constructor, find all of the possible interfaces |
11 | */ | 10 | */ |
12 | VPNNetNode::VPNNetNode() : ANetNode(tr("VPN Connection")) { | 11 | VPNNetNode::VPNNetNode() : ANetNode(tr("VPN Connection")) { |
13 | } | 12 | } |
14 | 13 | ||
15 | /** | 14 | /** |
16 | * Delete any interfaces that we own. | 15 | * Delete any interfaces that we own. |
17 | */ | 16 | */ |
18 | VPNNetNode::~VPNNetNode(){ | 17 | VPNNetNode::~VPNNetNode(){ |
@@ -29,34 +28,23 @@ const QString VPNNetNode::nodeDescription(){ | |||
29 | ANetNodeInstance * VPNNetNode::createInstance( void ) { | 28 | ANetNodeInstance * VPNNetNode::createInstance( void ) { |
30 | return new AVPN( this ); | 29 | return new AVPN( this ); |
31 | } | 30 | } |
32 | 31 | ||
33 | const char ** VPNNetNode::needs( void ) { | 32 | const char ** VPNNetNode::needs( void ) { |
34 | return VPNNeeds; | 33 | return VPNNeeds; |
35 | } | 34 | } |
36 | 35 | ||
37 | const char * VPNNetNode::provides( void ) { | 36 | const char * VPNNetNode::provides( void ) { |
38 | return "connection"; | 37 | return "connection"; |
39 | } | 38 | } |
40 | 39 | ||
41 | bool VPNNetNode::generateProperFilesFor( | ||
42 | ANetNodeInstance * ) { | ||
43 | return 0; | ||
44 | } | ||
45 | |||
46 | bool VPNNetNode::generateDeviceDataForCommonFile( | ||
47 | SystemFile & , | ||
48 | long ) { | ||
49 | return 0; | ||
50 | } | ||
51 | |||
52 | void VPNNetNode::setSpecificAttribute( QString & , QString & ) { | 40 | void VPNNetNode::setSpecificAttribute( QString & , QString & ) { |
53 | } | 41 | } |
54 | 42 | ||
55 | void VPNNetNode::saveSpecificAttribute( QTextStream & ) { | 43 | void VPNNetNode::saveSpecificAttribute( QTextStream & ) { |
56 | } | 44 | } |
57 | 45 | ||
58 | extern "C" { | 46 | extern "C" { |
59 | void create_plugin( QList<ANetNode> & PNN ) { | 47 | void create_plugin( QList<ANetNode> & PNN ) { |
60 | PNN.append( new VPNNetNode() ); | 48 | PNN.append( new VPNNetNode() ); |
61 | } | 49 | } |
62 | } | 50 | } |