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.cpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/vpn/vpn_NN.cpp b/noncore/settings/networksettings2/vpn/vpn_NN.cpp
new file mode 100644
index 0000000..c800929
--- a/dev/null
+++ b/noncore/settings/networksettings2/vpn/vpn_NN.cpp
@@ -0,0 +1,61 @@
1#include "vpn_NN.h"
2#include "vpn_NNI.h"
3
4static const char * VPNNeeds[] =
5 { "connection",
6 0
7 };
8
9/**
10 * Constructor, find all of the possible interfaces
11 */
12VPNNetNode::VPNNetNode() : ANetNode() {
13}
14
15/**
16 * Delete any interfaces that we own.
17 */
18VPNNetNode::~VPNNetNode(){
19}
20
21const QString VPNNetNode::nodeDescription(){
22 return tr("\
23<p>Configure private IP connection.</p>\
24<p>Defines Secure tunnels over non secure IP sessions</p>\
25"
26);
27}
28
29ANetNodeInstance * VPNNetNode::createInstance( void ) {
30 return new AVPN( this );
31}
32
33const char ** VPNNetNode::needs( void ) {
34 return VPNNeeds;
35}
36
37const char * VPNNetNode::provides( void ) {
38 return "connection";
39}
40
41bool VPNNetNode::generateProperFilesFor(
42 ANetNodeInstance * ) {
43 return 1;
44}
45
46bool VPNNetNode::hasDataFor( const QString & ) {
47 return 0;
48}
49
50bool VPNNetNode::generateDataForCommonFile(
51 SystemFile & ,
52 long,
53 ANetNodeInstance * ) {
54 return 1;
55}
56
57extern "C" {
58void create_plugin( QList<ANetNode> & PNN ) {
59 PNN.append( new VPNNetNode() );
60}
61}