summaryrefslogtreecommitdiff
authorwimpie <wimpie>2005-01-11 22:10:59 (UTC)
committer wimpie <wimpie>2005-01-11 22:10:59 (UTC)
commitb0afa096730ac7893fcd25873f6fd09fcef32a95 (patch) (unidiff)
treefc462fb9413e104b777f9f6d1439f4147e6c1350
parent96678694f8952f60d0a895cede2b621404b4bfb8 (diff)
downloadopie-b0afa096730ac7893fcd25873f6fd09fcef32a95.zip
opie-b0afa096730ac7893fcd25873f6fd09fcef32a95.tar.gz
opie-b0afa096730ac7893fcd25873f6fd09fcef32a95.tar.bz2
Changes now ok
this works again
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/cable/cable_NN.cpp2
-rw-r--r--noncore/settings/networksettings2/gprs/GPRS_NN.cpp2
-rw-r--r--noncore/settings/networksettings2/network/network_NN.cpp2
-rw-r--r--noncore/settings/networksettings2/networksettings2/resources.cpp10
-rw-r--r--noncore/settings/networksettings2/ppp/ppp_NN.cpp4
-rw-r--r--noncore/settings/networksettings2/profile/profile_NN.cpp8
-rw-r--r--noncore/settings/networksettings2/usb/usb_NN.cpp2
-rw-r--r--noncore/settings/networksettings2/vpn/vpn_NN.cpp6
8 files changed, 19 insertions, 17 deletions
diff --git a/noncore/settings/networksettings2/cable/cable_NN.cpp b/noncore/settings/networksettings2/cable/cable_NN.cpp
index 3f34bb2..4085b22 100644
--- a/noncore/settings/networksettings2/cable/cable_NN.cpp
+++ b/noncore/settings/networksettings2/cable/cable_NN.cpp
@@ -1,52 +1,52 @@
1#include "cable_NN.h" 1#include "cable_NN.h"
2#include "cable_NNI.h" 2#include "cable_NNI.h"
3 3
4#include "netnodeinterface.h" 4#include "netnodeinterface.h"
5 5
6static const char * CableNeeds[] = 6static const char * CableNeeds[] =
7 { 0 7 { 0
8 }; 8 };
9 9
10static const char * CableProvides[] = 10static const char * CableProvides[] =
11 { "line", 11 { "line",
12 0 12 0
13 }; 13 };
14 14
15/** 15/**
16 * Constructor, find all of the possible interfaces 16 * Constructor, find all of the possible interfaces
17 */ 17 */
18CableNetNode::CableNetNode() : ANetNode(tr("Cable NetworkSetup")) { 18CableNetNode::CableNetNode() : ANetNode(tr("Cable connection")) {
19} 19}
20 20
21/** 21/**
22 * Delete any interfaces that we own. 22 * Delete any interfaces that we own.
23 */ 23 */
24CableNetNode::~CableNetNode(){ 24CableNetNode::~CableNetNode(){
25} 25}
26 26
27const QString CableNetNode::nodeDescription(){ 27const QString CableNetNode::nodeDescription(){
28 return tr("\ 28 return tr("\
29<p>Sets up a wired serial or parallel.</p>\ 29<p>Sets up a wired serial or parallel.</p>\
30" 30"
31); 31);
32} 32}
33 33
34ANetNodeInstance * CableNetNode::createInstance( void ) { 34ANetNodeInstance * CableNetNode::createInstance( void ) {
35 return new ACable( this ); 35 return new ACable( this );
36} 36}
37 37
38const char ** CableNetNode::needs( void ) { 38const char ** CableNetNode::needs( void ) {
39 return CableNeeds; 39 return CableNeeds;
40} 40}
41 41
42const char ** CableNetNode::provides( void ) { 42const char ** CableNetNode::provides( void ) {
43 return CableProvides; 43 return CableProvides;
44} 44}
45 45
46void CableNetNode::setSpecificAttribute( QString & , QString & ) { 46void CableNetNode::setSpecificAttribute( QString & , QString & ) {
47} 47}
48 48
49void CableNetNode::saveSpecificAttribute( QTextStream & ) { 49void CableNetNode::saveSpecificAttribute( QTextStream & ) {
50} 50}
51 51
52OPIE_NS2_PLUGIN( NetNodeInterface_T<CableNetNode> ) 52OPIE_NS2_PLUGIN( NetNodeInterface_T<CableNetNode> )
diff --git a/noncore/settings/networksettings2/gprs/GPRS_NN.cpp b/noncore/settings/networksettings2/gprs/GPRS_NN.cpp
index 374cf5a..e9553a6 100644
--- a/noncore/settings/networksettings2/gprs/GPRS_NN.cpp
+++ b/noncore/settings/networksettings2/gprs/GPRS_NN.cpp
@@ -1,63 +1,63 @@
1#include <resources.h> 1#include <resources.h>
2#include <qpe/qpeapplication.h> 2#include <qpe/qpeapplication.h>
3#include <netnode.h> 3#include <netnode.h>
4#include "GPRS_NN.h" 4#include "GPRS_NN.h"
5#include "GPRS_NNI.h" 5#include "GPRS_NNI.h"
6 6
7#include "netnodeinterface.h" 7#include "netnodeinterface.h"
8 8
9static const char * GPRSNeeds[] = 9static const char * GPRSNeeds[] =
10 { "GPRS", 10 { "GPRS",
11 0 11 0
12 }; 12 };
13 13
14static const char * GPRSProvides[] = 14static const char * GPRSProvides[] =
15 { "NetworkSetup", 15 { "connection",
16 0 16 0
17 }; 17 };
18 18
19/** 19/**
20 * Constructor, find all of the possible interfaces 20 * Constructor, find all of the possible interfaces
21 */ 21 */
22GPRSNetNode::GPRSNetNode() : ANetNode(tr("GPRS capable device")) { 22GPRSNetNode::GPRSNetNode() : ANetNode(tr("GPRS capable device")) {
23 NSResources->addSystemFile( 23 NSResources->addSystemFile(
24 "pap-secrets", "/etc/ppp/pap-secrets", 0 ); 24 "pap-secrets", "/etc/ppp/pap-secrets", 0 );
25} 25}
26 26
27/** 27/**
28 * Delete any interfaces that we own. 28 * Delete any interfaces that we own.
29 */ 29 */
30GPRSNetNode::~GPRSNetNode(){ 30GPRSNetNode::~GPRSNetNode(){
31} 31}
32 32
33const QString GPRSNetNode::nodeDescription(){ 33const QString GPRSNetNode::nodeDescription(){
34 return tr("\ 34 return tr("\
35<p>provides access to a GPRS capable device.</p>\ 35<p>provides access to a GPRS capable device.</p>\
36" 36"
37); 37);
38} 38}
39 39
40ANetNodeInstance * GPRSNetNode::createInstance( void ) { 40ANetNodeInstance * GPRSNetNode::createInstance( void ) {
41 return new AGPRSDevice( this ); 41 return new AGPRSDevice( this );
42} 42}
43 43
44bool GPRSNetNode::hasDataForFile( SystemFile & S ) { 44bool GPRSNetNode::hasDataForFile( SystemFile & S ) {
45 return S.name() == "pap-secrets"; 45 return S.name() == "pap-secrets";
46} 46}
47 47
48short GPRSNetNode::generateFile( SystemFile & , 48short GPRSNetNode::generateFile( SystemFile & ,
49 ANetNodeInstance * , 49 ANetNodeInstance * ,
50 long ) { 50 long ) {
51 51
52 return 0; 52 return 0;
53} 53}
54 54
55const char ** GPRSNetNode::needs( void ) { 55const char ** GPRSNetNode::needs( void ) {
56 return GPRSNeeds; 56 return GPRSNeeds;
57} 57}
58 58
59const char ** GPRSNetNode::provides( void ) { 59const char ** GPRSNetNode::provides( void ) {
60 return GPRSProvides; 60 return GPRSProvides;
61} 61}
62 62
63void GPRSNetNode::setSpecificAttribute( QString & , QString & ) { 63void GPRSNetNode::setSpecificAttribute( QString & , QString & ) {
diff --git a/noncore/settings/networksettings2/network/network_NN.cpp b/noncore/settings/networksettings2/network/network_NN.cpp
index 80a7fac..2fa31bd 100644
--- a/noncore/settings/networksettings2/network/network_NN.cpp
+++ b/noncore/settings/networksettings2/network/network_NN.cpp
@@ -1,63 +1,63 @@
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#include "netnodeinterface.h" 7#include "netnodeinterface.h"
8 8
9static const char * NetworkNeeds[] = 9static const char * NetworkNeeds[] =
10 { "device", 10 { "device",
11 0 11 0
12 }; 12 };
13 13
14static const char * NetworkProvides[] = 14static const char * NetworkProvides[] =
15 { "NetworkSetup", 15 { "connection",
16 0 16 0
17 }; 17 };
18 18
19/** 19/**
20 * Constructor, find all of the possible interfaces 20 * Constructor, find all of the possible interfaces
21 */ 21 */
22NetworkNetNode::NetworkNetNode() : ANetNode(tr("IP Configuration")) { 22NetworkNetNode::NetworkNetNode() : ANetNode(tr("IP Configuration")) {
23 23
24 NSResources->addSystemFile( 24 NSResources->addSystemFile(
25 "interfaces", "/etc/network/interfaces", 1 ); 25 "interfaces", "/etc/network/interfaces", 1 );
26} 26}
27 27
28/** 28/**
29 * Delete any interfaces that we own. 29 * Delete any interfaces that we own.
30 */ 30 */
31NetworkNetNode::~NetworkNetNode(){ 31NetworkNetNode::~NetworkNetNode(){
32} 32}
33 33
34const QString NetworkNetNode::nodeDescription(){ 34const QString NetworkNetNode::nodeDescription(){
35 return tr("\ 35 return tr("\
36<p>Sets up TCP/IP options.</p>\ 36<p>Sets up TCP/IP options.</p>\
37<p>Use this to configure the TCP/IP protocol</p>\ 37<p>Use this to configure the TCP/IP protocol</p>\
38" 38"
39); 39);
40} 40}
41 41
42ANetNodeInstance * NetworkNetNode::createInstance( void ) { 42ANetNodeInstance * NetworkNetNode::createInstance( void ) {
43 return new ANetwork( this ); 43 return new ANetwork( this );
44} 44}
45 45
46bool NetworkNetNode::hasDataForFile( SystemFile & S ) { 46bool NetworkNetNode::hasDataForFile( SystemFile & S ) {
47 return S.name() == "interfaces"; 47 return S.name() == "interfaces";
48} 48}
49 49
50short NetworkNetNode::generateFile( SystemFile & SF, 50short NetworkNetNode::generateFile( SystemFile & SF,
51 ANetNodeInstance * NNI, 51 ANetNodeInstance * NNI,
52 long DevNr ) { 52 long DevNr ) {
53 53
54 if( DevNr < 0 ) { 54 if( DevNr < 0 ) {
55 // generate device specific but common part 55 // generate device specific but common part
56 return 1; 56 return 1;
57 } 57 }
58 58
59 QString NIC = NNI->runtime()->device()->netNode()->nodeClass()->genNic( DevNr ); 59 QString NIC = NNI->runtime()->device()->netNode()->nodeClass()->genNic( DevNr );
60 60
61 if( SF.name() == "interfaces" ) { 61 if( SF.name() == "interfaces" ) {
62 Log(("Generate entry for %s in %s\n", NIC.latin1(), SF.name().latin1() )); 62 Log(("Generate entry for %s in %s\n", NIC.latin1(), SF.name().latin1() ));
63 // generate mapping stanza for this interface 63 // generate mapping stanza for this interface
diff --git a/noncore/settings/networksettings2/networksettings2/resources.cpp b/noncore/settings/networksettings2/networksettings2/resources.cpp
index 0e72c25..2dd91f8 100644
--- a/noncore/settings/networksettings2/networksettings2/resources.cpp
+++ b/noncore/settings/networksettings2/networksettings2/resources.cpp
@@ -136,100 +136,102 @@ void TheNSResources::findAvailableNetNodes( void ){
136 Plugins = new OPluginLoader( "networksettings2" ); 136 Plugins = new OPluginLoader( "networksettings2" );
137 Plugins->setAutoDelete( true ); 137 Plugins->setAutoDelete( true );
138 138
139 PluginManager = new OPluginManager( Plugins ); 139 PluginManager = new OPluginManager( Plugins );
140 PluginManager->load(); 140 PluginManager->load();
141 141
142 if( Plugins->isInSafeMode() ) { 142 if( Plugins->isInSafeMode() ) {
143 QMessageBox::information( 143 QMessageBox::information(
144 0, 144 0,
145 tr( "Today Error"), 145 tr( "Today Error"),
146 tr( "<qt>The plugin '%1' caused Today to crash." 146 tr( "<qt>The plugin '%1' caused Today to crash."
147 " It could be that the plugin is not properly" 147 " It could be that the plugin is not properly"
148 " installed.<br>Today tries to continue loading" 148 " installed.<br>Today tries to continue loading"
149 " plugins.</qt>" ) 149 " plugins.</qt>" )
150 .arg( PluginManager->crashedPlugin().name())); 150 .arg( PluginManager->crashedPlugin().name()));
151 } 151 }
152 152
153 // Get All Plugins 153 // Get All Plugins
154 OPluginLoader::List allplugins = Plugins->filtered(); 154 OPluginLoader::List allplugins = Plugins->filtered();
155 QString lang = ::getenv("LANG"); 155 QString lang = ::getenv("LANG");
156 156
157 for( OPluginLoader::List::Iterator it = allplugins.begin(); 157 for( OPluginLoader::List::Iterator it = allplugins.begin();
158 it != allplugins.end(); 158 it != allplugins.end();
159 ++it ) { 159 ++it ) {
160 160
161 // check if this plugin supports the proper interface 161 // check if this plugin supports the proper interface
162 NetNodeInterface * interface = 162 NetNodeInterface * interface =
163 Plugins->load<NetNodeInterface>( *it, IID_NetworkSettings2 ); 163 Plugins->load<NetNodeInterface>( *it, IID_NetworkSettings2 );
164 164
165 if( ! interface ) { 165 if( ! interface ) {
166 Log(( "Plugin %s from %s does not support proper interface\n", 166 Log(( "Plugin %s from %s does not support proper interface\n",
167 (*it).name().latin1(), (*it).path().latin1() )); 167 (*it).name().latin1(), (*it).path().latin1() ));
168 continue; 168 continue;
169 } 169 }
170 170
171 // add the nodes in this plugin to the dictionary 171 // add the nodes in this plugin to the dictionary
172 { QList<ANetNode> PNN; 172 { QList<ANetNode> PNN;
173 173
174 interface->create_plugin( PNN ); 174 interface->create_plugin( PNN );
175 175
176 if( PNN.isEmpty() ) { 176 if( PNN.isEmpty() ) {
177 Log(( "Plugin %s from %s does offer any nodes\n", 177 Log(( "Plugin %s from %s does offer any nodes\n",
178 (*it).name().latin1(), (*it).path().latin1() )); 178 (*it).name().latin1(), (*it).path().latin1() ));
179 delete interface; 179 delete interface;
180 continue; 180 continue;
181 } 181 }
182 182
183 // merge this node with global node 183 // merge this node with global node
184 for( QListIterator<ANetNode> it(PNN); 184 for( QListIterator<ANetNode> nnit(PNN);
185 it.current(); 185 nnit.current();
186 ++it ) { 186 ++nnit ) {
187 AllNodeTypes.insert( it.current()->name(), it.current() ); 187 Log(( "Found node type %s in plugin %s\n",
188 nnit.current()->name(), (*it).name().latin1() ));
189 AllNodeTypes.insert( nnit.current()->name(), nnit.current() );
188 } 190 }
189 } 191 }
190 192
191 // load the translation 193 // load the translation
192 QTranslator *trans = new QTranslator(qApp); 194 QTranslator *trans = new QTranslator(qApp);
193 QString fn = QPEApplication::qpeDir()+ 195 QString fn = QPEApplication::qpeDir()+
194 "/i18n/"+lang+"/"+ (*it).name() + ".qm"; 196 "/i18n/"+lang+"/"+ (*it).name() + ".qm";
195 197
196 if( trans->load( fn ) ) 198 if( trans->load( fn ) )
197 qApp->installTranslator( trans ); 199 qApp->installTranslator( trans );
198 else 200 else
199 delete trans; 201 delete trans;
200 } 202 }
201 203
202} 204}
203 205
204// used to find unique NetworkSetup number 206// used to find unique NetworkSetup number
205int TheNSResources::assignNetworkSetupNumber( void ) { 207int TheNSResources::assignNetworkSetupNumber( void ) {
206 bool found = 1; 208 bool found = 1;
207 for( int trial = 0; ; trial ++ ) { 209 for( int trial = 0; ; trial ++ ) {
208 found = 1; 210 found = 1;
209 for( QDictIterator<NetworkSetup> it(NetworkSetupsMap); 211 for( QDictIterator<NetworkSetup> it(NetworkSetupsMap);
210 it.current(); 212 it.current();
211 ++it ) { 213 ++it ) {
212 if( it.current()->number() == trial ) { 214 if( it.current()->number() == trial ) {
213 found = 0; 215 found = 0;
214 break; 216 break;
215 } 217 }
216 } 218 }
217 219
218 if( found ) { 220 if( found ) {
219 Log(("Assign profile number %d\n", trial )); 221 Log(("Assign profile number %d\n", trial ));
220 return trial; 222 return trial;
221 } 223 }
222 } 224 }
223} 225}
224 226
225QPixmap TheNSResources::getPixmap( const QString & QS ) { 227QPixmap TheNSResources::getPixmap( const QString & QS ) {
226 QPixmap P; 228 QPixmap P;
227 QString S("networksettings2/"); 229 QString S("networksettings2/");
228 S += QS; 230 S += QS;
229 P = Resource::loadPixmap( S ); 231 P = Resource::loadPixmap( S );
230 if( P.isNull() ) { 232 if( P.isNull() ) {
231 Log(( "Cannot load %s\n", S.latin1() )); 233 Log(( "Cannot load %s\n", S.latin1() ));
232 } 234 }
233 return ( P.isNull() ) ? QPixmap() : P; 235 return ( P.isNull() ) ? QPixmap() : P;
234} 236}
235 237
diff --git a/noncore/settings/networksettings2/ppp/ppp_NN.cpp b/noncore/settings/networksettings2/ppp/ppp_NN.cpp
index 884168c..6c1387d 100644
--- a/noncore/settings/networksettings2/ppp/ppp_NN.cpp
+++ b/noncore/settings/networksettings2/ppp/ppp_NN.cpp
@@ -1,72 +1,72 @@
1#include <qfile.h> 1#include <qfile.h>
2#include <resources.h> 2#include <resources.h>
3#include <qtextstream.h> 3#include <qtextstream.h>
4#include "ppp_NN.h" 4#include "ppp_NN.h"
5#include "ppp_NNI.h" 5#include "ppp_NNI.h"
6 6
7#include "netnodeinterface.h" 7#include "netnodeinterface.h"
8 8
9QStringList * PPPNetNode::ProperFiles = 0; 9QStringList * PPPNetNode::ProperFiles = 0;
10 10
11static const char * PPPNeeds[] = 11static const char * PPPNeeds[] =
12 { "modem", 12 { "modem",
13 0 13 0
14 }; 14 };
15 15
16static const char * PPPProvides[] = 16static const char * PPPProvides[] =
17 { "NetworkSetup", 17 { "connection",
18 0 18 0
19 }; 19 };
20 20
21/** 21/**
22 * Constructor, find all of the possible interfaces 22 * Constructor, find all of the possible interfaces
23 */ 23 */
24PPPNetNode::PPPNetNode() : ANetNode(tr("PPP NetworkSetup")) { 24PPPNetNode::PPPNetNode() : ANetNode(tr("PPP connection")) {
25 25
26 NSResources->addSystemFile( 26 NSResources->addSystemFile(
27 "pap-secrets", "/etc/ppp/pap-secrets", 0 ); 27 "pap-secrets", "/etc/ppp/pap-secrets", 0 );
28 NSResources->addSystemFile( 28 NSResources->addSystemFile(
29 "chap-secrets", "/etc/ppp/chap-secrets", 0 ); 29 "chap-secrets", "/etc/ppp/chap-secrets", 0 );
30} 30}
31 31
32/** 32/**
33 * Delete any interfaces that we own. 33 * Delete any interfaces that we own.
34 */ 34 */
35PPPNetNode::~PPPNetNode(){ 35PPPNetNode::~PPPNetNode(){
36} 36}
37 37
38const QString PPPNetNode::nodeDescription(){ 38const QString PPPNetNode::nodeDescription(){
39 return tr("\ 39 return tr("\
40<p>Sets up IP using PPP.</p>\ 40<p>Sets up IP using PPP.</p>\
41<p>Use this for dialup devices or serial setups</p>\ 41<p>Use this for dialup devices or serial setups</p>\
42" 42"
43); 43);
44} 44}
45 45
46ANetNodeInstance * PPPNetNode::createInstance( void ) { 46ANetNodeInstance * PPPNetNode::createInstance( void ) {
47 return new APPP( this ); 47 return new APPP( this );
48} 48}
49 49
50const char ** PPPNetNode::needs( void ) { 50const char ** PPPNetNode::needs( void ) {
51 return PPPNeeds; 51 return PPPNeeds;
52} 52}
53 53
54const char ** PPPNetNode::provides( void ) { 54const char ** PPPNetNode::provides( void ) {
55 return PPPProvides; 55 return PPPProvides;
56} 56}
57 57
58QStringList PPPNetNode::properFiles( void ) { 58QStringList PPPNetNode::properFiles( void ) {
59 QStringList SL; 59 QStringList SL;
60 SL << "peers" << "chatscripts"; 60 SL << "peers" << "chatscripts";
61 return SL; 61 return SL;
62} 62}
63 63
64// need to generate : 64// need to generate :
65// /etc/ppp/pap-secrets 65// /etc/ppp/pap-secrets
66// /etc/ppp/pap-secrets 66// /etc/ppp/pap-secrets
67bool PPPNetNode::hasDataForFile( SystemFile & S ) { 67bool PPPNetNode::hasDataForFile( SystemFile & S ) {
68 return S.name() == "pap-secrets" || 68 return S.name() == "pap-secrets" ||
69 S.name() == "chap-secrets" ; 69 S.name() == "chap-secrets" ;
70} 70}
71 71
72QString PPPNetNode::genNic( long NicNr ) { 72QString PPPNetNode::genNic( long NicNr ) {
diff --git a/noncore/settings/networksettings2/profile/profile_NN.cpp b/noncore/settings/networksettings2/profile/profile_NN.cpp
index 007f4a5..1e6912e 100644
--- a/noncore/settings/networksettings2/profile/profile_NN.cpp
+++ b/noncore/settings/networksettings2/profile/profile_NN.cpp
@@ -1,58 +1,58 @@
1#include <resources.h> 1#include <resources.h>
2#include "profile_NN.h" 2#include "profile_NN.h"
3#include "profile_NNI.h" 3#include "profile_NNI.h"
4 4
5#include "netnodeinterface.h" 5#include "netnodeinterface.h"
6 6
7static const char * ProfileNeeds[] = 7static const char * ProfileNeeds[] =
8 { "NetworkSetup", 8 { "connection",
9 0 9 0
10 }; 10 };
11static const char * ProfileProvides[] = 11static const char * ProfileProvides[] =
12 { "fullsetup", 12 { "fullsetup",
13 0 13 0
14 }; 14 };
15 15
16/** 16/**
17 * Constructor, find all of the possible interfaces 17 * Constructor, find all of the possible interfaces
18 */ 18 */
19ProfileNetNode::ProfileNetNode() : ANetNode( tr("Regular NetworkSetup profile")) { 19ProfileNetNode::ProfileNetNode() : ANetNode( tr("Regular connection profile")) {
20 20
21 NSResources->addSystemFile( 21 NSResources->addSystemFile(
22 "interfaces", "/etc/network/interfaces", 1 ); 22 "interfaces", "/etc/network/interfaces", 1 );
23 23
24} 24}
25 25
26/** 26/**
27 * Delete any interfaces that we own. 27 * Delete any interfaces that we own.
28 */ 28 */
29ProfileNetNode::~ProfileNetNode(){ 29ProfileNetNode::~ProfileNetNode(){
30} 30}
31 31
32const QString ProfileNetNode::nodeDescription(){ 32const QString ProfileNetNode::nodeDescription(){
33 return tr("\ 33 return tr("\
34<p>Define use of an IP NetworkSetup.</p>\ 34<p>Define use of an IP connection.</p>\
35<p>Configure if and when this NetworkSetup needs to be established</p>\ 35<p>Configure if and when this connection needs to be established</p>\
36" 36"
37); 37);
38} 38}
39 39
40ANetNodeInstance * ProfileNetNode::createInstance( void ) { 40ANetNodeInstance * ProfileNetNode::createInstance( void ) {
41 return new AProfile( this ); 41 return new AProfile( this );
42} 42}
43 43
44const char ** ProfileNetNode::needs( void ) { 44const char ** ProfileNetNode::needs( void ) {
45 return ProfileNeeds; 45 return ProfileNeeds;
46} 46}
47 47
48const char ** ProfileNetNode::provides( void ) { 48const char ** ProfileNetNode::provides( void ) {
49 return ProfileProvides; 49 return ProfileProvides;
50} 50}
51 51
52void ProfileNetNode::setSpecificAttribute( QString & , QString & ) { 52void ProfileNetNode::setSpecificAttribute( QString & , QString & ) {
53} 53}
54 54
55void ProfileNetNode::saveSpecificAttribute( QTextStream & ) { 55void ProfileNetNode::saveSpecificAttribute( QTextStream & ) {
56} 56}
57 57
58OPIE_NS2_PLUGIN( NetNodeInterface_T<ProfileNetNode> ) 58OPIE_NS2_PLUGIN( NetNodeInterface_T<ProfileNetNode> )
diff --git a/noncore/settings/networksettings2/usb/usb_NN.cpp b/noncore/settings/networksettings2/usb/usb_NN.cpp
index 6e2597c..6d90ae0 100644
--- a/noncore/settings/networksettings2/usb/usb_NN.cpp
+++ b/noncore/settings/networksettings2/usb/usb_NN.cpp
@@ -1,60 +1,60 @@
1#include <resources.h> 1#include <resources.h>
2#include "usb_NN.h" 2#include "usb_NN.h"
3#include "usb_NNI.h" 3#include "usb_NNI.h"
4 4
5#include "netnodeinterface.h" 5#include "netnodeinterface.h"
6 6
7static const char * USBNeeds[] = 7static const char * USBNeeds[] =
8 { 0 8 { 0
9 }; 9 };
10 10
11static const char * USBProvides[] = 11static const char * USBProvides[] =
12 { "device", 12 { "device",
13 0 13 0
14 }; 14 };
15 15
16/** 16/**
17 * Constructor, find all of the possible interfaces 17 * Constructor, find all of the possible interfaces
18 */ 18 */
19USBNetNode::USBNetNode() : ANetNode(tr("USB Cable Connect")) { 19USBNetNode::USBNetNode() : ANetNode(tr("USB Cable Connect")) {
20 NSResources->addSystemFile( 20 NSResources->addSystemFile(
21 "interfaces", "/etc/network/interfaces", 1 ); 21 "interfaces", "/etc/network/interfaces", 1 );
22} 22}
23 23
24/** 24/**
25 * Delete any interfaces that we own. 25 * Delete any interfaces that we own.
26 */ 26 */
27USBNetNode::~USBNetNode(){ 27USBNetNode::~USBNetNode(){
28} 28}
29 29
30const QString USBNetNode::nodeDescription(){ 30const QString USBNetNode::nodeDescription(){
31 return tr("\ 31 return tr("\
32<p>Configure Ethernet over USB.</p>\ 32<p>Configure Ethernet over USB.</p>\
33<p>Use this for a computer to computer USB cable NetworkSetup</p>\ 33<p>Use this for a computer to computer USB cable connection</p>\
34" 34"
35); 35);
36} 36}
37 37
38ANetNodeInstance * USBNetNode::createInstance( void ) { 38ANetNodeInstance * USBNetNode::createInstance( void ) {
39 return new AUSB( this ); 39 return new AUSB( this );
40} 40}
41 41
42const char ** USBNetNode::needs( void ) { 42const char ** USBNetNode::needs( void ) {
43 return USBNeeds; 43 return USBNeeds;
44} 44}
45 45
46const char ** USBNetNode::provides( void ) { 46const char ** USBNetNode::provides( void ) {
47 return USBProvides; 47 return USBProvides;
48} 48}
49 49
50QString USBNetNode::genNic( long ) { 50QString USBNetNode::genNic( long ) {
51 return QString( "usbf" ); 51 return QString( "usbf" );
52} 52}
53 53
54void USBNetNode::setSpecificAttribute( QString & , QString & ) { 54void USBNetNode::setSpecificAttribute( QString & , QString & ) {
55} 55}
56 56
57void USBNetNode::saveSpecificAttribute( QTextStream & ) { 57void USBNetNode::saveSpecificAttribute( QTextStream & ) {
58} 58}
59 59
60OPIE_NS2_PLUGIN( NetNodeInterface_T<USBNetNode> ) 60OPIE_NS2_PLUGIN( NetNodeInterface_T<USBNetNode> )
diff --git a/noncore/settings/networksettings2/vpn/vpn_NN.cpp b/noncore/settings/networksettings2/vpn/vpn_NN.cpp
index 7c2e77b..beb9215 100644
--- a/noncore/settings/networksettings2/vpn/vpn_NN.cpp
+++ b/noncore/settings/networksettings2/vpn/vpn_NN.cpp
@@ -1,52 +1,52 @@
1#include "vpn_NN.h" 1#include "vpn_NN.h"
2#include "vpn_NNI.h" 2#include "vpn_NNI.h"
3 3
4#include "netnodeinterface.h" 4#include "netnodeinterface.h"
5 5
6static const char * VPNNeeds[] = 6static const char * VPNNeeds[] =
7 { 0 7 { 0
8 }; 8 };
9 9
10static const char * VPNProvides[] = 10static const char * VPNProvides[] =
11 { "NetworkSetup", 11 { "connection",
12 0 12 0
13 }; 13 };
14/** 14/**
15 * Constructor, find all of the possible interfaces 15 * Constructor, find all of the possible interfaces
16 */ 16 */
17VPNNetNode::VPNNetNode() : ANetNode(tr("VPN NetworkSetup")) { 17VPNNetNode::VPNNetNode() : ANetNode(tr("VPN connection")) {
18} 18}
19 19
20/** 20/**
21 * Delete any interfaces that we own. 21 * Delete any interfaces that we own.
22 */ 22 */
23VPNNetNode::~VPNNetNode(){ 23VPNNetNode::~VPNNetNode(){
24} 24}
25 25
26const QString VPNNetNode::nodeDescription(){ 26const QString VPNNetNode::nodeDescription(){
27 return tr("\ 27 return tr("\
28<p>Configure private IP NetworkSetup.</p>\ 28<p>Configure private IP connection.</p>\
29<p>Defines Secure tunnels over non secure IP sessions</p>\ 29<p>Defines Secure tunnels over non secure IP sessions</p>\
30" 30"
31); 31);
32} 32}
33 33
34ANetNodeInstance * VPNNetNode::createInstance( void ) { 34ANetNodeInstance * VPNNetNode::createInstance( void ) {
35 return new AVPN( this ); 35 return new AVPN( this );
36} 36}
37 37
38const char ** VPNNetNode::needs( void ) { 38const char ** VPNNetNode::needs( void ) {
39 return VPNNeeds; 39 return VPNNeeds;
40} 40}
41 41
42const char ** VPNNetNode::provides( void ) { 42const char ** VPNNetNode::provides( void ) {
43 return VPNProvides; 43 return VPNProvides;
44} 44}
45 45
46void VPNNetNode::setSpecificAttribute( QString & , QString & ) { 46void VPNNetNode::setSpecificAttribute( QString & , QString & ) {
47} 47}
48 48
49void VPNNetNode::saveSpecificAttribute( QTextStream & ) { 49void VPNNetNode::saveSpecificAttribute( QTextStream & ) {
50} 50}
51 51
52OPIE_NS2_PLUGIN( NetNodeInterface_T<VPNNetNode> ) 52OPIE_NS2_PLUGIN( NetNodeInterface_T<VPNNetNode> )