author | wimpie <wimpie> | 2004-04-02 18:30:55 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 18:30:55 (UTC) |
commit | 4ea2f227d3fb0d9591bb4f18555420ac47f3397d (patch) (unidiff) | |
tree | 4fdd216cf7af4a747e2ca71e35d15f3d9e646333 /noncore/settings/networksettings2/irda/irda_NN.cpp | |
parent | 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f (diff) | |
download | opie-4ea2f227d3fb0d9591bb4f18555420ac47f3397d.zip opie-4ea2f227d3fb0d9591bb4f18555420ac47f3397d.tar.gz opie-4ea2f227d3fb0d9591bb4f18555420ac47f3397d.tar.bz2 |
first import of NS2 app
Diffstat (limited to 'noncore/settings/networksettings2/irda/irda_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/irda/irda_NN.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/irda/irda_NN.cpp b/noncore/settings/networksettings2/irda/irda_NN.cpp new file mode 100644 index 0000000..3b9c938 --- a/dev/null +++ b/noncore/settings/networksettings2/irda/irda_NN.cpp | |||
@@ -0,0 +1,59 @@ | |||
1 | #include "irda_NN.h" | ||
2 | #include "irda_NNI.h" | ||
3 | |||
4 | static const char * IRDANeeds[] = | ||
5 | { 0 | ||
6 | }; | ||
7 | |||
8 | /** | ||
9 | * Constructor, find all of the possible interfaces | ||
10 | */ | ||
11 | IRDANetNode::IRDANetNode() : ANetNode() { | ||
12 | } | ||
13 | |||
14 | /** | ||
15 | * Delete any interfaces that we own. | ||
16 | */ | ||
17 | IRDANetNode::~IRDANetNode(){ | ||
18 | } | ||
19 | |||
20 | const QString IRDANetNode::nodeDescription(){ | ||
21 | return tr("\ | ||
22 | <p>Sets up a infra red serial link.</p>\ | ||
23 | " | ||
24 | ); | ||
25 | } | ||
26 | |||
27 | ANetNodeInstance * IRDANetNode::createInstance( void ) { | ||
28 | return new AIRDA( this ); | ||
29 | } | ||
30 | |||
31 | const char ** IRDANetNode::needs( void ) { | ||
32 | return IRDANeeds; | ||
33 | } | ||
34 | |||
35 | const char * IRDANetNode::provides( void ) { | ||
36 | return "line"; | ||
37 | } | ||
38 | |||
39 | bool IRDANetNode::generateProperFilesFor( | ||
40 | ANetNodeInstance * ) { | ||
41 | return 1; | ||
42 | } | ||
43 | |||
44 | bool IRDANetNode::hasDataFor( const QString & ) { | ||
45 | return 0; | ||
46 | } | ||
47 | |||
48 | bool IRDANetNode::generateDataForCommonFile( | ||
49 | SystemFile & , | ||
50 | long , | ||
51 | ANetNodeInstance * ) { | ||
52 | return 1; | ||
53 | } | ||
54 | |||
55 | extern "C" { | ||
56 | void create_plugin( QList<ANetNode> & PNN ) { | ||
57 | PNN.append( new IRDANetNode() ); | ||
58 | } | ||
59 | } | ||