Diffstat (limited to 'noncore/settings/networksettings2/network/network_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/network/network_NN.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/network/network_NN.cpp b/noncore/settings/networksettings2/network/network_NN.cpp index 23b3d44..82d0c29 100644 --- a/noncore/settings/networksettings2/network/network_NN.cpp +++ b/noncore/settings/networksettings2/network/network_NN.cpp | |||
@@ -1,12 +1,18 @@ | |||
1 | #include <qpe/qpeapplication.h> | 1 | #include <qpe/qpeapplication.h> |
2 | #include <resources.h> | 2 | #include <resources.h> |
3 | #include <netnode.h> | 3 | #include <netnode.h> |
4 | #include "network_NN.h" | 4 | #include "network_NN.h" |
5 | #include "network_NNI.h" | 5 | #include "network_NNI.h" |
6 | 6 | ||
7 | #ifndef MYPLUGIN | ||
8 | |||
9 | #include "netnodeinterface.h" | ||
10 | |||
11 | #endif | ||
12 | |||
7 | static const char * NetworkNeeds[] = | 13 | static const char * NetworkNeeds[] = |
8 | { "device", | 14 | { "device", |
9 | 0 | 15 | 0 |
10 | }; | 16 | }; |
11 | 17 | ||
12 | static const char * NetworkProvides[] = | 18 | static const char * NetworkProvides[] = |
@@ -87,11 +93,20 @@ const char ** NetworkNetNode::provides( void ) { | |||
87 | void NetworkNetNode::setSpecificAttribute( QString & , QString & ) { | 93 | void NetworkNetNode::setSpecificAttribute( QString & , QString & ) { |
88 | } | 94 | } |
89 | 95 | ||
90 | void NetworkNetNode::saveSpecificAttribute( QTextStream & ) { | 96 | void NetworkNetNode::saveSpecificAttribute( QTextStream & ) { |
91 | } | 97 | } |
92 | 98 | ||
99 | #ifdef MYPLUGIN | ||
100 | |||
93 | extern "C" { | 101 | extern "C" { |
94 | void create_plugin( QList<ANetNode> & PNN ) { | 102 | void create_plugin( QList<ANetNode> & PNN ) { |
95 | PNN.append( new NetworkNetNode() ); | 103 | PNN.append( new NetworkNetNode() ); |
96 | } | 104 | } |
105 | |||
106 | #else | ||
107 | |||
108 | OPIE_NS2_PLUGIN( NetNodeInterface<NetworkNetNode> ) | ||
109 | |||
110 | #endif | ||
111 | |||
97 | } | 112 | } |