diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/progressmanager.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/progressmanager.cpp')
-rw-r--r-- | libkdepim/progressmanager.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/libkdepim/progressmanager.cpp b/libkdepim/progressmanager.cpp index e9d1b0677..0c73e0c55 100644 --- a/libkdepim/progressmanager.cpp +++ b/libkdepim/progressmanager.cpp @@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA. */ -#include <qvaluevector.h> +#include <tqvaluevector.h> #include <kdebug.h> #include <klocale.h> @@ -35,8 +35,8 @@ KPIM::ProgressManager * KPIM::ProgressManager::mInstance = 0; unsigned int KPIM::ProgressManager::uID = 42; ProgressItem::ProgressItem( - ProgressItem* parent, const QString& id, - const QString& label, const QString& status, bool canBeCanceled, + ProgressItem* parent, const TQString& id, + const TQString& label, const TQString& status, bool canBeCanceled, bool usesCrypto ) :mId( id ), mLabel( label ), mStatus( status ), mParent( parent ), mCanBeCanceled( canBeCanceled ), mProgress( 0 ), mTotal( 0 ), @@ -85,9 +85,9 @@ void ProgressItem::cancel() kdDebug(5300) << "ProgressItem::cancel() - " << label() << endl; mCanceled = true; // Cancel all children. - QValueList<ProgressItem*> kids = mChildren.keys(); - QValueList<ProgressItem*>::Iterator it( kids.begin() ); - QValueList<ProgressItem*>::Iterator end( kids.end() ); + TQValueList<ProgressItem*> kids = mChildren.keys(); + TQValueList<ProgressItem*>::Iterator it( kids.begin() ); + TQValueList<ProgressItem*>::Iterator end( kids.end() ); for ( ; it != end; it++ ) { ProgressItem *kid = *it; if ( kid->canBeCanceled() ) @@ -105,13 +105,13 @@ void ProgressItem::setProgress( unsigned int v ) emit progressItemProgress( this, mProgress ); } -void ProgressItem::setLabel( const QString& v ) +void ProgressItem::setLabel( const TQString& v ) { mLabel = v; emit progressItemLabel( this, mLabel ); } -void ProgressItem::setStatus( const QString& v ) +void ProgressItem::setStatus( const TQString& v ) { mStatus = v; emit progressItemStatus( this, mStatus ); @@ -125,7 +125,7 @@ void ProgressItem::setUsesCrypto( bool v ) // ====================================== -ProgressManager::ProgressManager() :QObject() { +ProgressManager::ProgressManager() :TQObject() { mInstance = this; } @@ -141,8 +141,8 @@ ProgressManager* ProgressManager::instance() } ProgressItem* ProgressManager::createProgressItemImpl( - ProgressItem* parent, const QString& id, - const QString &label, const QString &status, + ProgressItem* parent, const TQString& id, + const TQString &label, const TQString &status, bool cancellable, bool usesCrypto ) { ProgressItem *t = 0; @@ -156,20 +156,20 @@ ProgressItem* ProgressManager::createProgressItemImpl( } } // connect all signals - connect ( t, SIGNAL( progressItemCompleted(KPIM::ProgressItem*) ), - this, SLOT( slotTransactionCompleted(KPIM::ProgressItem*) ) ); - connect ( t, SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ), - this, SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ) ); - connect ( t, SIGNAL( progressItemAdded(KPIM::ProgressItem*) ), - this, SIGNAL( progressItemAdded(KPIM::ProgressItem*) ) ); - connect ( t, SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ), - this, SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ) ); - connect ( t, SIGNAL( progressItemStatus(KPIM::ProgressItem*, const QString&) ), - this, SIGNAL( progressItemStatus(KPIM::ProgressItem*, const QString&) ) ); - connect ( t, SIGNAL( progressItemLabel(KPIM::ProgressItem*, const QString&) ), - this, SIGNAL( progressItemLabel(KPIM::ProgressItem*, const QString&) ) ); - connect ( t, SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ), - this, SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ) ); + connect ( t, TQT_SIGNAL( progressItemCompleted(KPIM::ProgressItem*) ), + this, TQT_SLOT( slotTransactionCompleted(KPIM::ProgressItem*) ) ); + connect ( t, TQT_SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ), + this, TQT_SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ) ); + connect ( t, TQT_SIGNAL( progressItemAdded(KPIM::ProgressItem*) ), + this, TQT_SIGNAL( progressItemAdded(KPIM::ProgressItem*) ) ); + connect ( t, TQT_SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ), + this, TQT_SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ) ); + connect ( t, TQT_SIGNAL( progressItemStatus(KPIM::ProgressItem*, const TQString&) ), + this, TQT_SIGNAL( progressItemStatus(KPIM::ProgressItem*, const TQString&) ) ); + connect ( t, TQT_SIGNAL( progressItemLabel(KPIM::ProgressItem*, const TQString&) ), + this, TQT_SIGNAL( progressItemLabel(KPIM::ProgressItem*, const TQString&) ) ); + connect ( t, TQT_SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ), + this, TQT_SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ) ); emit progressItemAdded( t ); } else { @@ -180,8 +180,8 @@ ProgressItem* ProgressManager::createProgressItemImpl( } ProgressItem* ProgressManager::createProgressItemImpl( - const QString& parent, const QString &id, - const QString &label, const QString& status, + const TQString& parent, const TQString &id, + const TQString &label, const TQString& status, bool canBeCanceled, bool usesCrypto ) { ProgressItem * p = mTransactions[parent]; @@ -210,7 +210,7 @@ void ProgressManager::slotStandardCancelHandler( ProgressItem *item ) ProgressItem* ProgressManager::singleItem() const { ProgressItem *item = 0; - QDictIterator< ProgressItem > it( mTransactions ); + TQDictIterator< ProgressItem > it( mTransactions ); for ( ; it.current(); ++it ) { if ( !(*it)->parent() ) { // if it's a top level one, only those count if ( item ) @@ -224,7 +224,7 @@ ProgressItem* ProgressManager::singleItem() const void ProgressManager::slotAbortAll() { - QDictIterator< ProgressItem > it( mTransactions ); + TQDictIterator< ProgressItem > it( mTransactions ); for ( ; it.current(); ++it ) { it.current()->cancel(); } |