diff options
Diffstat (limited to 'kmyfirewall/core/kmfundoengine.cpp')
-rw-r--r-- | kmyfirewall/core/kmfundoengine.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kmyfirewall/core/kmfundoengine.cpp b/kmyfirewall/core/kmfundoengine.cpp index 696e5f6..bf7511f 100644 --- a/kmyfirewall/core/kmfundoengine.cpp +++ b/kmyfirewall/core/kmfundoengine.cpp @@ -37,7 +37,7 @@ KMFUndoEngine* KMFUndoEngine::instance() { } //##### end static stuff -KMFUndoEngine::KMFUndoEngine( QObject* parent, const char* name ) : QObject( parent, name ) { +KMFUndoEngine::KMFUndoEngine( TQObject* tqparent, const char* name ) : TQObject( tqparent, name ) { MAX_UNDO = 10; m_in_transaction = false; is_saved = true; @@ -63,16 +63,16 @@ void KMFUndoEngine::setKMFInterface( KMyFirewallInterface *app ) { m_app = app; } -QValueList< KMFTransaction* >& KMFUndoEngine::undoTransactions() { +TQValueList< KMFTransaction* >& KMFUndoEngine::undoTransactions() { return m_undo_transactionObjects; } -QValueList< KMFTransaction* >& KMFUndoEngine::redoTransactions() { +TQValueList< KMFTransaction* >& KMFUndoEngine::redoTransactions() { return m_redo_transactionObjects; } -KMFTransaction * KMFUndoEngine::findTransction( const QUuid& uuid ) { - QValueList< KMFTransaction* >::iterator it; +KMFTransaction * KMFUndoEngine::findTransction( const TQUuid& uuid ) { + TQValueList< KMFTransaction* >::iterator it; for ( it = m_undo_transactionObjects.begin(); it != m_undo_transactionObjects.end(); ++it ) { if ( (*it)->uuid() == uuid ) { return *it; @@ -97,20 +97,20 @@ bool KMFUndoEngine::isSaved() { return is_saved; } -void KMFUndoEngine::log( const QString& msg, int kmfErrorType = KMFError::NORMAL, NetfilterObject* obj = 0 ) { - QString m = msg; - QString s = ""; +void KMFUndoEngine::log( const TQString& msg, int kmfErrorType = KMFError::NORMAL, NetfilterObject* obj = 0 ) { + TQString m = msg; + TQString s = ""; if ( obj ) { - m.prepend( i18n("<i>%1:</i> ").arg( obj->name() ) ); + m.prepend( i18n("<i>%1:</i> ").tqarg( obj->name() ) ); } s.append( KMFError::getAsString( kmfErrorType, m ) ); - emit sigLog( *( new QString(s) ) ); + emit sigLog( *( new TQString(s) ) ); } -void KMFUndoEngine::changed ( const QUuid& id ) { +void KMFUndoEngine::changed ( const TQUuid& id ) { NetfilterObject* obj = NetfilterObject::findObject ( id ); if ( ! obj ) { - log( i18n("Change non exiting object id: %1.").arg( id ), KMFError::FATAL ); + log( i18n("Change non exiting object id: %1.").tqarg( id ), KMFError::FATAL ); return; } is_saved = false; @@ -118,13 +118,13 @@ void KMFUndoEngine::changed ( const QUuid& id ) { m_app->updateCaption(); } if ( ! m_in_transaction ) { - // log( i18n("Change object: %1 without transaction.").arg( obj->name() ), KMFError::WARNING ); + // log( i18n("Change object: %1 without transaction.").tqarg( obj->name() ), KMFError::WARNING ); return; } NetfilterObject *highestAffected = NetfilterObject::findObject( m_currentTransaction->objectUuid() ); if ( ! highestAffected || obj != highestAffected && ! obj->isChildOf( highestAffected->uuid() ) ) { - log( i18n("Change object: %1 outside of declared highestAffectedObject: %2 in transaction: %3.").arg( obj->name() ).arg( highestAffected->name() ).arg( m_currentTransaction->name() ), KMFError::WARNING ); + log( i18n("Change object: %1 outside of declared highestAffectedObject: %2 in transaction: %3.").tqarg( obj->name() ).tqarg( highestAffected->name() ).tqarg( m_currentTransaction->name() ), KMFError::WARNING ); } } @@ -138,8 +138,8 @@ void KMFUndoEngine::clearStacks() { emit sigStackChanged(); } -void KMFUndoEngine::startTransaction ( NetfilterObject* highestAffectedObject, const QString& name ) { - kdDebug() << "void KMFUndoEngine::startTransaction( const QString& " << name << " )" << endl; +void KMFUndoEngine::startTransaction ( NetfilterObject* highestAffectedObject, const TQString& name ) { + kdDebug() << "void KMFUndoEngine::startTransaction( const TQString& " << name << " )" << endl; m_in_transaction = true; m_currentTransaction = new KMFTransaction( name, highestAffectedObject ); } @@ -182,8 +182,8 @@ void KMFUndoEngine::endTransaction() { } -QValueList< NetfilterObject* >& KMFUndoEngine::undo() { - QValueList< NetfilterObject* > *affected = new QValueList< NetfilterObject* >; +TQValueList< NetfilterObject* >& KMFUndoEngine::undo() { + TQValueList< NetfilterObject* > *affected = new TQValueList< NetfilterObject* >; kdDebug() << "void KMFUndoEngine::undo()" << endl; if ( m_undo_transactionObjects.empty() ) { @@ -216,9 +216,9 @@ QValueList< NetfilterObject* >& KMFUndoEngine::undo() { -QValueList< NetfilterObject* >& KMFUndoEngine::redo() { +TQValueList< NetfilterObject* >& KMFUndoEngine::redo() { kdDebug() << "void KMFIPTDoc::redo()" << endl; - QValueList< NetfilterObject* > *affected = new QValueList< NetfilterObject* >; + TQValueList< NetfilterObject* > *affected = new TQValueList< NetfilterObject* >; if ( m_redo_transactionObjects.empty() ) { kdDebug() << "No undo transactions available" << endl; m_app->enableRedo ( false ); |