Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/netnode.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/netnode.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp index a5b572b..d36a1e5 100644 --- a/noncore/settings/networksettings2/networksettings2/netnode.cpp +++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp @@ -276,3 +276,27 @@ InterfaceInfo * RuntimeInfo::assignedInterface( void ) { AsDevice * RuntimeInfo::device( void ) { return netNode()->nextNode()->runtime()->device(); } + +ANetNodeInstance * FakeNetNode::createInstance( void ) { + return new FakeNetNodeInstance( this ); +} + +void FakeNetNodeInstance::setSpecificAttribute( + QString & A, QString & V ) { + ValAttrPairs.insert( A, new QString(V) ); +} + +void FakeNetNodeInstance::saveSpecificAttribute( QTextStream &TS ) { + for( QDictIterator<QString> it( ValAttrPairs ); + it.current(); + ++ it ) { + TS << it.currentKey().latin1() + << "=" + << quote( *(it.current())) + << endl ; + ++it; + } +} + +// collects all info that no plugin acceps +FakeNetNode * FakeNode = 0; |