Diffstat (limited to 'noncore/settings/networksettings2/modem/modem_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/modem/modem_NN.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/noncore/settings/networksettings2/modem/modem_NN.cpp b/noncore/settings/networksettings2/modem/modem_NN.cpp index ee61b10..06f417c 100644 --- a/noncore/settings/networksettings2/modem/modem_NN.cpp +++ b/noncore/settings/networksettings2/modem/modem_NN.cpp | |||
@@ -1,17 +1,22 @@ | |||
1 | #include "modem_NN.h" | 1 | #include "modem_NN.h" |
2 | #include "modem_NNI.h" | 2 | #include "modem_NNI.h" |
3 | 3 | ||
4 | static const char * ModemNeeds[] = | 4 | static const char * ModemNeeds[] = |
5 | { "line" | 5 | { "line", |
6 | 0 | ||
7 | }; | ||
8 | static const char * ModemProvides[] = | ||
9 | { "modem", | ||
10 | 0 | ||
6 | }; | 11 | }; |
7 | 12 | ||
8 | /** | 13 | /** |
9 | * Constructor, find all of the possible interfaces | 14 | * Constructor, find all of the possible interfaces |
10 | */ | 15 | */ |
11 | ModemNetNode::ModemNetNode() : ANetNode(tr("Dialup modem")) { | 16 | ModemNetNode::ModemNetNode() : ANetNode(tr("Dialup modem")) { |
12 | } | 17 | } |
13 | 18 | ||
14 | /** | 19 | /** |
15 | * Delete any interfaces that we own. | 20 | * Delete any interfaces that we own. |
16 | */ | 21 | */ |
17 | ModemNetNode::~ModemNetNode(){ | 22 | ModemNetNode::~ModemNetNode(){ |
@@ -24,26 +29,26 @@ const QString ModemNetNode::nodeDescription(){ | |||
24 | " | 29 | " |
25 | ); | 30 | ); |
26 | } | 31 | } |
27 | 32 | ||
28 | ANetNodeInstance * ModemNetNode::createInstance( void ) { | 33 | ANetNodeInstance * ModemNetNode::createInstance( void ) { |
29 | return new AModem( this ); | 34 | return new AModem( this ); |
30 | } | 35 | } |
31 | 36 | ||
32 | const char ** ModemNetNode::needs( void ) { | 37 | const char ** ModemNetNode::needs( void ) { |
33 | return ModemNeeds; | 38 | return ModemNeeds; |
34 | } | 39 | } |
35 | 40 | ||
36 | const char * ModemNetNode::provides( void ) { | 41 | const char ** ModemNetNode::provides( void ) { |
37 | return "line"; | 42 | return ModemProvides; |
38 | } | 43 | } |
39 | 44 | ||
40 | void ModemNetNode::setSpecificAttribute( QString & , QString & ) { | 45 | void ModemNetNode::setSpecificAttribute( QString & , QString & ) { |
41 | } | 46 | } |
42 | 47 | ||
43 | void ModemNetNode::saveSpecificAttribute( QTextStream & ) { | 48 | void ModemNetNode::saveSpecificAttribute( QTextStream & ) { |
44 | } | 49 | } |
45 | 50 | ||
46 | extern "C" { | 51 | extern "C" { |
47 | void create_plugin( QList<ANetNode> & PNN ) { | 52 | void create_plugin( QList<ANetNode> & PNN ) { |
48 | PNN.append( new ModemNetNode() ); | 53 | PNN.append( new ModemNetNode() ); |
49 | } | 54 | } |