summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/ppp_NN.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/ppp/ppp_NN.cpp') (more/less context) (ignore 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 @@
1#include "ppp_NN.h"
2#include "ppp_NNI.h"
3
4static const char * PPPNeeds[] =
5 { "line",
6 "modem",
7 0
8 };
9
10/**
11 * Constructor, find all of the possible interfaces
12 */
13PPPNetNode::PPPNetNode() : ANetNode() {
14}
15
16/**
17 * Delete any interfaces that we own.
18 */
19PPPNetNode::~PPPNetNode(){
20}
21
22const QString PPPNetNode::nodeDescription(){
23 return tr("\
24<p>Sets up IP using PPP.</p>\
25<p>Use this for dialup devices or serial setups</p>\
26"
27);
28}
29
30ANetNodeInstance * PPPNetNode::createInstance( void ) {
31 return new APPP( this );
32}
33
34const char ** PPPNetNode::needs( void ) {
35 return PPPNeeds;
36}
37
38const char * PPPNetNode::provides( void ) {
39 return "connection";
40}
41
42bool PPPNetNode::generateProperFilesFor(
43 ANetNodeInstance * ) {
44 return 1;
45}
46
47bool PPPNetNode::hasDataFor( const QString & ) {
48 return 0;
49}
50
51bool PPPNetNode::generateDataForCommonFile(
52 SystemFile & ,
53 long,
54 ANetNodeInstance * ) {
55 return 1;
56}
57
58extern "C" {
59void create_plugin( QList<ANetNode> & PNN ) {
60 PNN.append( new PPPNetNode() );
61}
62}