diff options
Diffstat (limited to 'kmail/cachedimapjob.cpp')
-rw-r--r-- | kmail/cachedimapjob.cpp | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/kmail/cachedimapjob.cpp b/kmail/cachedimapjob.cpp index bba5b1b66..89dd11167 100644 --- a/kmail/cachedimapjob.cpp +++ b/kmail/cachedimapjob.cpp @@ -200,11 +200,11 @@ void CachedImapJob::listMessages() ImapAccountBase::jobData jd( url.url(), mFolder->folder() ); jd.cancellable = true; mAccount->insertJob( job, jd ); - connect( job, TQT_SIGNAL( result(TDEIO::Job *) ), - this, TQT_SLOT( slotListMessagesResult( TDEIO::Job* ) ) ); + connect( job, TQ_SIGNAL( result(TDEIO::Job *) ), + this, TQ_SLOT( slotListMessagesResult( TDEIO::Job* ) ) ); // send the data directly for KMFolderCachedImap - connect( job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), - mFolder, TQT_SLOT( slotGetMessagesData( TDEIO::Job* , const TQByteArray& ) ) ); + connect( job, TQ_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), + mFolder, TQ_SLOT( slotGetMessagesData( TDEIO::Job* , const TQByteArray& ) ) ); } void CachedImapJob::slotDeleteNextMessages( TDEIO::Job* job ) @@ -240,8 +240,8 @@ void CachedImapJob::slotDeleteNextMessages( TDEIO::Job* job ) TDEIO::Scheduler::assignJobToSlave( mAccount->slave(), simpleJob ); ImapAccountBase::jobData jd( url.url(), mFolder->folder() ); mAccount->insertJob( simpleJob, jd ); - connect( simpleJob, TQT_SIGNAL( result(TDEIO::Job *) ), - this, TQT_SLOT( slotDeleteNextMessages(TDEIO::Job *) ) ); + connect( simpleJob, TQ_SIGNAL( result(TDEIO::Job *) ), + this, TQ_SLOT( slotDeleteNextMessages(TDEIO::Job *) ) ); } void CachedImapJob::expungeFolder() @@ -254,8 +254,8 @@ void CachedImapJob::expungeFolder() TDEIO::Scheduler::assignJobToSlave( mAccount->slave(), job ); ImapAccountBase::jobData jd( url.url(), mFolder->folder() ); mAccount->insertJob( job, jd ); - connect( job, TQT_SIGNAL( result(TDEIO::Job *) ), - this, TQT_SLOT( slotExpungeResult(TDEIO::Job *) ) ); + connect( job, TQ_SIGNAL( result(TDEIO::Job *) ), + this, TQ_SLOT( slotExpungeResult(TDEIO::Job *) ) ); } void CachedImapJob::slotExpungeResult( TDEIO::Job * job ) @@ -349,12 +349,12 @@ void CachedImapJob::slotGetNextMessage(TDEIO::Job * job) TDEIO::SimpleJob *simpleJob = TDEIO::get(url, false, false); TDEIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob); mAccount->insertJob(simpleJob, jd); - connect(simpleJob, TQT_SIGNAL(processedSize(TDEIO::Job *, TDEIO::filesize_t)), - this, TQT_SLOT(slotProcessedSize(TDEIO::Job *, TDEIO::filesize_t))); - connect(simpleJob, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotGetNextMessage(TDEIO::Job *))); - connect(simpleJob, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - mFolder, TQT_SLOT(slotSimpleData(TDEIO::Job *, const TQByteArray &))); + connect(simpleJob, TQ_SIGNAL(processedSize(TDEIO::Job *, TDEIO::filesize_t)), + this, TQ_SLOT(slotProcessedSize(TDEIO::Job *, TDEIO::filesize_t))); + connect(simpleJob, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotGetNextMessage(TDEIO::Job *))); + connect(simpleJob, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + mFolder, TQ_SLOT(slotSimpleData(TDEIO::Job *, const TQByteArray &))); } void CachedImapJob::slotProcessedSize(TDEIO::Job *, TDEIO::filesize_t processed) @@ -420,14 +420,14 @@ void CachedImapJob::slotPutNextMessage() TDEIO::SimpleJob *simpleJob = TDEIO::put(url, 0, false, false, false); TDEIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob); mAccount->insertJob(simpleJob, jd); - connect( simpleJob, TQT_SIGNAL( result(TDEIO::Job *) ), - TQT_SLOT( slotPutMessageResult(TDEIO::Job *) ) ); - connect( simpleJob, TQT_SIGNAL( dataReq(TDEIO::Job *, TQByteArray &) ), - TQT_SLOT( slotPutMessageDataReq(TDEIO::Job *, TQByteArray &) ) ); - connect( simpleJob, TQT_SIGNAL( data(TDEIO::Job *, const TQByteArray &) ), - mFolder, TQT_SLOT( slotSimpleData(TDEIO::Job *, const TQByteArray &) ) ); - connect( simpleJob, TQT_SIGNAL(infoMessage(TDEIO::Job *, const TQString &)), - TQT_SLOT(slotPutMessageInfoData(TDEIO::Job *, const TQString &)) ); + connect( simpleJob, TQ_SIGNAL( result(TDEIO::Job *) ), + TQ_SLOT( slotPutMessageResult(TDEIO::Job *) ) ); + connect( simpleJob, TQ_SIGNAL( dataReq(TDEIO::Job *, TQByteArray &) ), + TQ_SLOT( slotPutMessageDataReq(TDEIO::Job *, TQByteArray &) ) ); + connect( simpleJob, TQ_SIGNAL( data(TDEIO::Job *, const TQByteArray &) ), + mFolder, TQ_SLOT( slotSimpleData(TDEIO::Job *, const TQByteArray &) ) ); + connect( simpleJob, TQ_SIGNAL(infoMessage(TDEIO::Job *, const TQString &)), + TQ_SLOT(slotPutMessageInfoData(TDEIO::Job *, const TQString &)) ); } @@ -590,8 +590,8 @@ void CachedImapJob::slotAddNextSubfolder( TDEIO::Job * job ) TDEIO::SimpleJob *simpleJob = TDEIO::mkdir(url); TDEIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob); mAccount->insertJob(simpleJob, jd); - connect( simpleJob, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotAddNextSubfolder(TDEIO::Job *)) ); + connect( simpleJob, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotAddNextSubfolder(TDEIO::Job *)) ); } else { TQByteArray packedArgs; TQDataStream stream( packedArgs, IO_WriteOnly ); @@ -608,8 +608,8 @@ void CachedImapJob::slotAddNextSubfolder( TDEIO::Job * job ) TDEIO::SimpleJob *simpleJob = TDEIO::special( url.url(), packedArgs, false ); TDEIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob); mAccount->insertJob(simpleJob, jd); - connect( simpleJob, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotAddNextSubfolder(TDEIO::Job *)) ); + connect( simpleJob, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotAddNextSubfolder(TDEIO::Job *)) ); } } @@ -648,8 +648,8 @@ void CachedImapJob::slotDeleteNextFolder( TDEIO::Job *job ) TDEIO::SimpleJob *simpleJob = TDEIO::file_delete(url, false); TDEIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob); mAccount->insertJob(simpleJob, jd); - connect( simpleJob, TQT_SIGNAL( result(TDEIO::Job *) ), - TQT_SLOT( slotDeleteNextFolder(TDEIO::Job *) ) ); + connect( simpleJob, TQ_SIGNAL( result(TDEIO::Job *) ), + TQ_SLOT( slotDeleteNextFolder(TDEIO::Job *) ) ); } void CachedImapJob::checkUidValidity() @@ -663,10 +663,10 @@ void CachedImapJob::checkUidValidity() TDEIO::SimpleJob *job = TDEIO::get( url, false, false ); TDEIO::Scheduler::assignJobToSlave( mAccount->slave(), job ); mAccount->insertJob( job, jd ); - connect( job, TQT_SIGNAL(result(TDEIO::Job *)), - TQT_SLOT(slotCheckUidValidityResult(TDEIO::Job *)) ); - connect( job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - mFolder, TQT_SLOT(slotSimpleData(TDEIO::Job *, const TQByteArray &))); + connect( job, TQ_SIGNAL(result(TDEIO::Job *)), + TQ_SLOT(slotCheckUidValidityResult(TDEIO::Job *)) ); + connect( job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + mFolder, TQ_SLOT(slotSimpleData(TDEIO::Job *, const TQByteArray &))); } void CachedImapJob::slotCheckUidValidityResult(TDEIO::Job * job) @@ -752,8 +752,8 @@ void CachedImapJob::renameFolder( const TQString &newName ) TDEIO::SimpleJob *simpleJob = TDEIO::rename( urlSrc, urlDst, false ); TDEIO::Scheduler::assignJobToSlave( mAccount->slave(), simpleJob ); mAccount->insertJob( simpleJob, jd ); - connect( simpleJob, TQT_SIGNAL(result(TDEIO::Job *)), - TQT_SLOT(slotRenameFolderResult(TDEIO::Job *)) ); + connect( simpleJob, TQ_SIGNAL(result(TDEIO::Job *)), + TQ_SLOT(slotRenameFolderResult(TDEIO::Job *)) ); } static void renameChildFolders( KMFolderDir* dir, const TQString& oldPath, @@ -826,14 +826,14 @@ void CachedImapJob::slotSubscribtionChange2Failed( const TQString &errorMessage void CachedImapJob::slotSubscribtionChange1Done( const TQString&, bool ) { - disconnect( mAccount, TQT_SIGNAL( subscriptionChanged( const TQString&, bool ) ), - this, TQT_SLOT( slotSubscribtionChange1Done( const TQString&, bool ) ) ); - connect( mAccount, TQT_SIGNAL( subscriptionChanged( const TQString&, bool ) ), - this, TQT_SLOT( slotSubscribtionChange2Done( const TQString&, bool ) ) ); - disconnect( mAccount, TQT_SIGNAL( subscriptionChangeFailed( const TQString& ) ), - this, TQT_SLOT( slotSubscribtionChange1Failed( const TQString& ) ) ); - connect( mAccount, TQT_SIGNAL( subscriptionChangeFailed( const TQString& ) ), - this, TQT_SLOT( slotSubscribtionChange2Failed( const TQString& ) ) ); + disconnect( mAccount, TQ_SIGNAL( subscriptionChanged( const TQString&, bool ) ), + this, TQ_SLOT( slotSubscribtionChange1Done( const TQString&, bool ) ) ); + connect( mAccount, TQ_SIGNAL( subscriptionChanged( const TQString&, bool ) ), + this, TQ_SLOT( slotSubscribtionChange2Done( const TQString&, bool ) ) ); + disconnect( mAccount, TQ_SIGNAL( subscriptionChangeFailed( const TQString& ) ), + this, TQ_SLOT( slotSubscribtionChange1Failed( const TQString& ) ) ); + connect( mAccount, TQ_SIGNAL( subscriptionChangeFailed( const TQString& ) ), + this, TQ_SLOT( slotSubscribtionChange2Failed( const TQString& ) ) ); mAccount->changeSubscription( false, mOldImapPath, true /* quiet */ ); } @@ -865,10 +865,10 @@ void CachedImapJob::slotRenameFolderResult( TDEIO::Job *job ) // Okay, the folder seems to be renamed on the server and on disk. // Now unsubscribe from the old folder name and subscribe to the new folder name, // so that the folder doesn't suddenly disappear after renaming it - connect( mAccount, TQT_SIGNAL( subscriptionChangeFailed( const TQString& ) ), - this, TQT_SLOT( slotSubscribtionChange1Failed( const TQString& ) ) ); - connect( mAccount, TQT_SIGNAL( subscriptionChanged( const TQString&, bool ) ), - this, TQT_SLOT( slotSubscribtionChange1Done( const TQString&, bool ) ) ); + connect( mAccount, TQ_SIGNAL( subscriptionChangeFailed( const TQString& ) ), + this, TQ_SLOT( slotSubscribtionChange1Failed( const TQString& ) ) ); + connect( mAccount, TQ_SIGNAL( subscriptionChanged( const TQString&, bool ) ), + this, TQ_SLOT( slotSubscribtionChange1Done( const TQString&, bool ) ) ); mAccount->changeSubscription( true, mNewImapPath, true /* quiet */ ); } } |