summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/vpn/vpn_NN.cpp
Side-by-side diff
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 @@
+#include "vpn_NN.h"
+#include "vpn_NNI.h"
+
+static const char * VPNNeeds[] =
+ { "connection",
+ 0
+ };
+
+/**
+ * Constructor, find all of the possible interfaces
+ */
+VPNNetNode::VPNNetNode() : ANetNode() {
+}
+
+/**
+ * Delete any interfaces that we own.
+ */
+VPNNetNode::~VPNNetNode(){
+}
+
+const QString VPNNetNode::nodeDescription(){
+ return tr("\
+<p>Configure private IP connection.</p>\
+<p>Defines Secure tunnels over non secure IP sessions</p>\
+"
+);
+}
+
+ANetNodeInstance * VPNNetNode::createInstance( void ) {
+ return new AVPN( this );
+}
+
+const char ** VPNNetNode::needs( void ) {
+ return VPNNeeds;
+}
+
+const char * VPNNetNode::provides( void ) {
+ return "connection";
+}
+
+bool VPNNetNode::generateProperFilesFor(
+ ANetNodeInstance * ) {
+ return 1;
+}
+
+bool VPNNetNode::hasDataFor( const QString & ) {
+ return 0;
+}
+
+bool VPNNetNode::generateDataForCommonFile(
+ SystemFile & ,
+ long,
+ ANetNodeInstance * ) {
+ return 1;
+}
+
+extern "C" {
+void create_plugin( QList<ANetNode> & PNN ) {
+ PNN.append( new VPNNetNode() );
+}
+}