summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/ppp_NN.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/ppp/ppp_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/ppp/ppp_NN.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/ppp/ppp_NN.cpp b/noncore/settings/networksettings2/ppp/ppp_NN.cpp
new file mode 100644
index 0000000..309c9a1
--- a/dev/null
+++ b/noncore/settings/networksettings2/ppp/ppp_NN.cpp
@@ -0,0 +1,62 @@
+#include "ppp_NN.h"
+#include "ppp_NNI.h"
+
+static const char * PPPNeeds[] =
+ { "line",
+ "modem",
+ 0
+ };
+
+/**
+ * Constructor, find all of the possible interfaces
+ */
+PPPNetNode::PPPNetNode() : ANetNode() {
+}
+
+/**
+ * Delete any interfaces that we own.
+ */
+PPPNetNode::~PPPNetNode(){
+}
+
+const QString PPPNetNode::nodeDescription(){
+ return tr("\
+<p>Sets up IP using PPP.</p>\
+<p>Use this for dialup devices or serial setups</p>\
+"
+);
+}
+
+ANetNodeInstance * PPPNetNode::createInstance( void ) {
+ return new APPP( this );
+}
+
+const char ** PPPNetNode::needs( void ) {
+ return PPPNeeds;
+}
+
+const char * PPPNetNode::provides( void ) {
+ return "connection";
+}
+
+bool PPPNetNode::generateProperFilesFor(
+ ANetNodeInstance * ) {
+ return 1;
+}
+
+bool PPPNetNode::hasDataFor( const QString & ) {
+ return 0;
+}
+
+bool PPPNetNode::generateDataForCommonFile(
+ SystemFile & ,
+ long,
+ ANetNodeInstance * ) {
+ return 1;
+}
+
+extern "C" {
+void create_plugin( QList<ANetNode> & PNN ) {
+ PNN.append( new PPPNetNode() );
+}
+}