summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/irda/irda_NN.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/irda/irda_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/irda/irda_NN.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/irda/irda_NN.cpp b/noncore/settings/networksettings2/irda/irda_NN.cpp
index 9483e22..485cad3 100644
--- a/noncore/settings/networksettings2/irda/irda_NN.cpp
+++ b/noncore/settings/networksettings2/irda/irda_NN.cpp
@@ -1,49 +1,54 @@
1#include "irda_NN.h" 1#include "irda_NN.h"
2#include "irda_NNI.h" 2#include "irda_NNI.h"
3 3
4static const char * IRDANeeds[] = 4static const char * IRDANeeds[] =
5 { 0 5 { 0
6 }; 6 };
7 7
8static const char * IRDAProvides[] =
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 */
11IRDANetNode::IRDANetNode() : ANetNode(tr("Infrared link")) { 16IRDANetNode::IRDANetNode() : ANetNode(tr("Infrared link")) {
12} 17}
13 18
14/** 19/**
15 * Delete any interfaces that we own. 20 * Delete any interfaces that we own.
16 */ 21 */
17IRDANetNode::~IRDANetNode(){ 22IRDANetNode::~IRDANetNode(){
18} 23}
19 24
20const QString IRDANetNode::nodeDescription(){ 25const QString IRDANetNode::nodeDescription(){
21 return tr("\ 26 return tr("\
22<p>Sets up a infra red serial link.</p>\ 27<p>Sets up a infra red serial link.</p>\
23" 28"
24); 29);
25} 30}
26 31
27ANetNodeInstance * IRDANetNode::createInstance( void ) { 32ANetNodeInstance * IRDANetNode::createInstance( void ) {
28 return new AIRDA( this ); 33 return new AIRDA( this );
29} 34}
30 35
31const char ** IRDANetNode::needs( void ) { 36const char ** IRDANetNode::needs( void ) {
32 return IRDANeeds; 37 return IRDANeeds;
33} 38}
34 39
35const char * IRDANetNode::provides( void ) { 40const char ** IRDANetNode::provides( void ) {
36 return "line"; 41 return IRDAProvides;
37} 42}
38 43
39void IRDANetNode::setSpecificAttribute( QString & , QString & ) { 44void IRDANetNode::setSpecificAttribute( QString & , QString & ) {
40} 45}
41 46
42void IRDANetNode::saveSpecificAttribute( QTextStream & ) { 47void IRDANetNode::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 IRDANetNode() ); 52 PNN.append( new IRDANetNode() );
48} 53}
49} 54}