summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/irda/irda_NN.cpp
blob: 3b9c938a5ba6376bb6d5668d127b15a5047b098c (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
#include "irda_NN.h"
#include "irda_NNI.h"

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

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

/**
 * 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 "line";
}

bool IRDANetNode::generateProperFilesFor( 
            ANetNodeInstance * ) {
      return 1;
}

bool IRDANetNode::hasDataFor( const QString & ) {
      return 0;
}

bool IRDANetNode::generateDataForCommonFile( 
                                SystemFile & , 
                                long ,
                                ANetNodeInstance * ) {
      return 1;
}

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