Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/netnode.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/netnode.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp index 8c80e0b..4a2440a 100644 --- a/noncore/settings/networksettings2/networksettings2/netnode.cpp +++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp | |||
@@ -144,7 +144,7 @@ NodeCollection::NodeCollection( QTextStream & TS ) : | |||
144 | if( A == "name" ) { | 144 | if( A == "name" ) { |
145 | Name = N; | 145 | Name = N; |
146 | } else if( A == "number" ) { | 146 | } else if( A == "number" ) { |
147 | Log(( "read number %s\n", N.latin1() )); | 147 | Log(( "Profile number %s\n", N.latin1() )); |
148 | setNumber( N.toLong() ); | 148 | setNumber( N.toLong() ); |
149 | } else if( A == "node" ) { | 149 | } else if( A == "node" ) { |
150 | ANetNodeInstance * NNI = NSResources->findNodeInstance( N ); | 150 | ANetNodeInstance * NNI = NSResources->findNodeInstance( N ); |
@@ -295,8 +295,27 @@ void NodeCollection::reassign( void ) { | |||
295 | } | 295 | } |
296 | 296 | ||
297 | bool NodeCollection::triggersVPN() { | 297 | bool NodeCollection::triggersVPN() { |
298 | return getToplevel()->runtime()->asFullSetup()->triggersVPN(); | 298 | return getToplevel()->runtime()->asFullSetup()->triggersVPN(); |
299 | } | 299 | } |
300 | |||
301 | bool NodeCollection::hasDataForFile( const QString & S ) { | ||
302 | return ( firstWithDataForFile( S ) != 0 ); | ||
303 | } | ||
304 | |||
305 | ANetNodeInstance * NodeCollection::firstWithDataForFile( const QString & S ) { | ||
306 | for( QListIterator<ANetNodeInstance> it(*this); | ||
307 | it.current(); | ||
308 | ++it ) { | ||
309 | if( it.current()->hasDataForFile( S ) ) { | ||
310 | Log(( "Node %s has data for %s\n", | ||
311 | it.current()->nodeClass()->name(), | ||
312 | S.latin1() )); | ||
313 | return it.current(); | ||
314 | } | ||
315 | } | ||
316 | return 0; | ||
317 | } | ||
318 | |||
300 | // | 319 | // |
301 | // | 320 | // |
302 | // RUNTIMEINFO | 321 | // RUNTIMEINFO |