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