summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/vpn/vpn_NN.cpp
Unidiff
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.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/vpn/vpn_NN.cpp b/noncore/settings/networksettings2/vpn/vpn_NN.cpp
index 9d3b6e7..23ec04a 100644
--- a/noncore/settings/networksettings2/vpn/vpn_NN.cpp
+++ b/noncore/settings/networksettings2/vpn/vpn_NN.cpp
@@ -1,19 +1,23 @@
1#include "vpn_NN.h" 1#include "vpn_NN.h"
2#include "vpn_NNI.h" 2#include "vpn_NNI.h"
3 3
4static const char * VPNNeeds[] = 4static const char * VPNNeeds[] =
5 { 0 5 { 0
6 }; 6 };
7 7
8static const char * VPNProvides[] =
9 { "connection",
10 0
11 };
8/** 12/**
9 * Constructor, find all of the possible interfaces 13 * Constructor, find all of the possible interfaces
10 */ 14 */
11VPNNetNode::VPNNetNode() : ANetNode(tr("VPN Connection")) { 15VPNNetNode::VPNNetNode() : ANetNode(tr("VPN Connection")) {
12} 16}
13 17
14/** 18/**
15 * Delete any interfaces that we own. 19 * Delete any interfaces that we own.
16 */ 20 */
17VPNNetNode::~VPNNetNode(){ 21VPNNetNode::~VPNNetNode(){
18} 22}
19 23
@@ -24,26 +28,26 @@ const QString VPNNetNode::nodeDescription(){
24" 28"
25); 29);
26} 30}
27 31
28ANetNodeInstance * VPNNetNode::createInstance( void ) { 32ANetNodeInstance * VPNNetNode::createInstance( void ) {
29 return new AVPN( this ); 33 return new AVPN( this );
30} 34}
31 35
32const char ** VPNNetNode::needs( void ) { 36const char ** VPNNetNode::needs( void ) {
33 return VPNNeeds; 37 return VPNNeeds;
34} 38}
35 39
36const char * VPNNetNode::provides( void ) { 40const char ** VPNNetNode::provides( void ) {
37 return "connection"; 41 return VPNProvides;
38} 42}
39 43
40void VPNNetNode::setSpecificAttribute( QString & , QString & ) { 44void VPNNetNode::setSpecificAttribute( QString & , QString & ) {
41} 45}
42 46
43void VPNNetNode::saveSpecificAttribute( QTextStream & ) { 47void VPNNetNode::saveSpecificAttribute( QTextStream & ) {
44} 48}
45 49
46extern "C" { 50extern "C" {
47void create_plugin( QList<ANetNode> & PNN ) { 51void create_plugin( QList<ANetNode> & PNN ) {
48 PNN.append( new VPNNetNode() ); 52 PNN.append( new VPNNetNode() );
49} 53}