author | wimpie <wimpie> | 2005-01-04 01:35:26 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:35:26 (UTC) |
commit | a9c188235c97e07b0eb96b13adbcdfd4bad64767 (patch) (unidiff) | |
tree | 13f6ae5c499dc0c1d1bd4b763a1973a0fa8635cf /noncore/settings/networksettings2/cable/cable_NN.cpp | |
parent | 48b6cd5966ec6cc0b968edf10ba1a1ad96ef165f (diff) | |
download | opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.zip opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.tar.gz opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.tar.bz2 |
CONTROL files : changed version string
NS2 many changes and first release of OT2
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.cpp | 9 |
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,49 +1,54 @@ | |||
1 | #include "cable_NN.h" | 1 | #include "cable_NN.h" |
2 | #include "cable_NNI.h" | 2 | #include "cable_NNI.h" |
3 | 3 | ||
4 | static const char * CableNeeds[] = | 4 | static const char * CableNeeds[] = |
5 | { 0 | 5 | { 0 |
6 | }; | 6 | }; |
7 | 7 | ||
8 | static 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 | */ |
11 | CableNetNode::CableNetNode() : ANetNode(tr("Cable Connection")) { | 16 | CableNetNode::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 | */ |
17 | CableNetNode::~CableNetNode(){ | 22 | CableNetNode::~CableNetNode(){ |
18 | } | 23 | } |
19 | 24 | ||
20 | const QString CableNetNode::nodeDescription(){ | 25 | const QString CableNetNode::nodeDescription(){ |
21 | return tr("\ | 26 | return tr("\ |
22 | <p>Sets up a wired serial or parallel.</p>\ | 27 | <p>Sets up a wired serial or parallel.</p>\ |
23 | " | 28 | " |
24 | ); | 29 | ); |
25 | } | 30 | } |
26 | 31 | ||
27 | ANetNodeInstance * CableNetNode::createInstance( void ) { | 32 | ANetNodeInstance * CableNetNode::createInstance( void ) { |
28 | return new ACable( this ); | 33 | return new ACable( this ); |
29 | } | 34 | } |
30 | 35 | ||
31 | const char ** CableNetNode::needs( void ) { | 36 | const char ** CableNetNode::needs( void ) { |
32 | return CableNeeds; | 37 | return CableNeeds; |
33 | } | 38 | } |
34 | 39 | ||
35 | const char * CableNetNode::provides( void ) { | 40 | const char ** CableNetNode::provides( void ) { |
36 | return "line"; | 41 | return CableProvides; |
37 | } | 42 | } |
38 | 43 | ||
39 | void CableNetNode::setSpecificAttribute( QString & , QString & ) { | 44 | void CableNetNode::setSpecificAttribute( QString & , QString & ) { |
40 | } | 45 | } |
41 | 46 | ||
42 | void CableNetNode::saveSpecificAttribute( QTextStream & ) { | 47 | void CableNetNode::saveSpecificAttribute( QTextStream & ) { |
43 | } | 48 | } |
44 | 49 | ||
45 | extern "C" { | 50 | extern "C" { |
46 | void create_plugin( QList<ANetNode> & PNN ) { | 51 | void create_plugin( QList<ANetNode> & PNN ) { |
47 | PNN.append( new CableNetNode() ); | 52 | PNN.append( new CableNetNode() ); |
48 | } | 53 | } |
49 | } | 54 | } |