Diffstat (limited to 'noncore/settings/networksettings2/cable') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/cable/cable.pro | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings2/cable/cable_NN.cpp | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/cable/cable.pro b/noncore/settings/networksettings2/cable/cable.pro index 8a046b7..660f95e 100644 --- a/noncore/settings/networksettings2/cable/cable.pro +++ b/noncore/settings/networksettings2/cable/cable.pro | |||
@@ -1,3 +1,3 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release plugin |
3 | DESTDIR = $(OPIEDIR)/plugins/networksettings2 | 3 | DESTDIR = $(OPIEDIR)/plugins/networksettings2 |
diff --git a/noncore/settings/networksettings2/cable/cable_NN.cpp b/noncore/settings/networksettings2/cable/cable_NN.cpp index dc4205c..20299e4 100644 --- a/noncore/settings/networksettings2/cable/cable_NN.cpp +++ b/noncore/settings/networksettings2/cable/cable_NN.cpp | |||
@@ -3,2 +3,8 @@ | |||
3 | 3 | ||
4 | #ifndef MYPLUGIN | ||
5 | |||
6 | #include "netnodeinterface.h" | ||
7 | |||
8 | #endif | ||
9 | |||
4 | static const char * CableNeeds[] = | 10 | static const char * CableNeeds[] = |
@@ -49,2 +55,4 @@ void CableNetNode::saveSpecificAttribute( QTextStream & ) { | |||
49 | 55 | ||
56 | #ifdef MYPLUGIN | ||
57 | |||
50 | extern "C" { | 58 | extern "C" { |
@@ -53,2 +61,9 @@ void create_plugin( QList<ANetNode> & PNN ) { | |||
53 | } | 61 | } |
62 | |||
63 | #else | ||
64 | |||
65 | OPIE_NS2_PLUGIN( NetNodeInterface<CableNetNode> ) | ||
66 | |||
67 | #endif | ||
68 | |||
54 | } | 69 | } |