summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/irda/irda_NN.cpp
blob: 6858157f0012657c5c3945ae8d64c0968c537703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "irda_NN.h"
#include "irda_NNI.h"

#ifndef MYPLUGIN

#include "netnodeinterface.h"

#endif

static const char * IRDANeeds[] = 
    { 0
    };

static const char * IRDAProvides[] = 
    { "line",
      0
    };

/**
 * Constructor, find all of the possible interfaces
 */
IRDANetNode::IRDANetNode() : ANetNode(tr("Infrared link")) {
}

/**
 * Delete any interfaces that we own.
 */
IRDANetNode::~IRDANetNode(){
}

const QString IRDANetNode::nodeDescription(){
      return tr("\
<p>Sets up a infra red serial link.</p>\
"
);
}

ANetNodeInstance * IRDANetNode::createInstance( void ) {
      return new AIRDA( this );
}

const char ** IRDANetNode::needs( void ) {
      return IRDANeeds;
}

const char ** IRDANetNode::provides( void ) {
      return IRDAProvides;
}

void IRDANetNode::setSpecificAttribute( QString & , QString & ) {
}

void IRDANetNode::saveSpecificAttribute( QTextStream & ) {
}

#ifdef MYPLUGIN 

extern "C" {
void create_plugin( QList<ANetNode> & PNN ) {
      PNN.append( new IRDANetNode() );
}

#else

OPIE_NS2_PLUGIN(  NetNodeInterface<IRDANetNode> )

#endif

}