diff options
Diffstat (limited to 'kmail/kmfolderimap.cpp')
-rw-r--r-- | kmail/kmfolderimap.cpp | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/kmail/kmfolderimap.cpp b/kmail/kmfolderimap.cpp index b0686dbba..ee573c17c 100644 --- a/kmail/kmfolderimap.cpp +++ b/kmail/kmfolderimap.cpp @@ -82,8 +82,8 @@ KMFolderImap::KMFolderImap(KMFolder* folder, const char* aName) mAddMessageProgressItem = 0; mReadOnly = false; - connect (this, TQT_SIGNAL( folderComplete( KMFolderImap*, bool ) ), - this, TQT_SLOT( slotCompleteMailCheckProgress()) ); + connect (this, TQ_SIGNAL( folderComplete( KMFolderImap*, bool ) ), + this, TQ_SLOT( slotCompleteMailCheckProgress()) ); } KMFolderImap::~KMFolderImap() @@ -249,8 +249,8 @@ void KMFolderImap::remove() false, account()->useSSL() || account()->useTLS() ); account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotRemoveFolderResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotRemoveFolderResult(TDEIO::Job *))); } //----------------------------------------------------------------------------- @@ -417,10 +417,10 @@ int KMFolderImap::addMsg(TQPtrList<KMMessage>& msgList, TQValueList<int>& aIndex msg = msgParent->getMsg(idx); } imapJob = new ImapJob(msg, ImapJob::tPutMessage, this); - connect(imapJob, TQT_SIGNAL(messageStored(KMMessage*)), - TQT_SLOT(addMsgQuiet(KMMessage*))); - connect(imapJob, TQT_SIGNAL(result(KMail::FolderJob*)), - TQT_SLOT(slotCopyMsgResult(KMail::FolderJob*))); + connect(imapJob, TQ_SIGNAL(messageStored(KMMessage*)), + TQ_SLOT(addMsgQuiet(KMMessage*))); + connect(imapJob, TQ_SIGNAL(result(KMail::FolderJob*)), + TQ_SLOT(slotCopyMsgResult(KMail::FolderJob*))); imapJob->start(); } @@ -439,10 +439,10 @@ int KMFolderImap::addMsg(TQPtrList<KMMessage>& msgList, TQValueList<int>& aIndex TQPtrList<KMMessage> temp_msgs = splitMessageList(*it, msgList); if ( temp_msgs.isEmpty() ) kdDebug(5006) << "Wow! KMFolderImap::splitMessageList() returned an empty list!" << endl; imapJob = new ImapJob(temp_msgs, *it, ImapJob::tMoveMessage, this); - connect(imapJob, TQT_SIGNAL(messageCopied(TQPtrList<KMMessage>)), - TQT_SLOT(addMsgQuiet(TQPtrList<KMMessage>))); - connect(imapJob, TQT_SIGNAL(result(KMail::FolderJob*)), - TQT_SLOT(slotCopyMsgResult(KMail::FolderJob*))); + connect(imapJob, TQ_SIGNAL(messageCopied(TQPtrList<KMMessage>)), + TQ_SLOT(addMsgQuiet(TQPtrList<KMMessage>))); + connect(imapJob, TQ_SIGNAL(result(KMail::FolderJob*)), + TQ_SLOT(slotCopyMsgResult(KMail::FolderJob*))); imapJob->start(); } } @@ -492,14 +492,14 @@ int KMFolderImap::addMsg(TQPtrList<KMMessage>& msgList, TQValueList<int>& aIndex true, account()->useSSL() || account()->useTLS() ); mAddMessageProgressItem->setTotalItems( msgList.count() ); - connect ( mAddMessageProgressItem, TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem*)), - account(), TQT_SLOT( slotAbortRequested( KPIM::ProgressItem* ) ) ); + connect ( mAddMessageProgressItem, TQ_SIGNAL( progressItemCanceled( KPIM::ProgressItem*)), + account(), TQ_SLOT( slotAbortRequested( KPIM::ProgressItem* ) ) ); imapJob->setParentProgressItem( mAddMessageProgressItem ); } - connect( imapJob, TQT_SIGNAL( messageCopied(TQPtrList<KMMessage>) ), - TQT_SLOT( addMsgQuiet(TQPtrList<KMMessage>) ) ); - connect( imapJob, TQT_SIGNAL(result(KMail::FolderJob*)), - TQT_SLOT(slotCopyMsgResult(KMail::FolderJob*)) ); + connect( imapJob, TQ_SIGNAL( messageCopied(TQPtrList<KMMessage>) ), + TQ_SLOT( addMsgQuiet(TQPtrList<KMMessage>) ) ); + connect( imapJob, TQ_SIGNAL(result(KMail::FolderJob*)), + TQ_SLOT(slotCopyMsgResult(KMail::FolderJob*)) ); imapJob->start(); } @@ -534,8 +534,8 @@ void KMFolderImap::copyMsg(TQPtrList<KMMessage>& msgList) TQPtrList<KMMessage> temp_msgs = splitMessageList(*it, msgList); ImapJob *job = new ImapJob(temp_msgs, *it, ImapJob::tCopyMessage, this); - connect(job, TQT_SIGNAL(result(KMail::FolderJob*)), - TQT_SLOT(slotCopyMsgResult(KMail::FolderJob*))); + connect(job, TQ_SIGNAL(result(KMail::FolderJob*)), + TQ_SLOT(slotCopyMsgResult(KMail::FolderJob*))); job->start(); } } @@ -603,8 +603,8 @@ void KMFolderImap::take(TQPtrList<KMMessage> msgList) //----------------------------------------------------------------------------- void KMFolderImap::slotListNamespaces() { - disconnect( account(), TQT_SIGNAL( connectionResult(int, const TQString&) ), - this, TQT_SLOT( slotListNamespaces() ) ); + disconnect( account(), TQ_SIGNAL( connectionResult(int, const TQString&) ), + this, TQ_SLOT( slotListNamespaces() ) ); if ( account()->makeConnection() == ImapAccountBase::Error ) { kdWarning(5006) << "slotListNamespaces - got no connection" << endl; @@ -613,8 +613,8 @@ void KMFolderImap::slotListNamespaces() { // wait for the connectionResult kdDebug(5006) << "slotListNamespaces - waiting for connection" << endl; - connect( account(), TQT_SIGNAL( connectionResult(int, const TQString&) ), - this, TQT_SLOT( slotListNamespaces() ) ); + connect( account(), TQ_SIGNAL( connectionResult(int, const TQString&) ), + this, TQ_SLOT( slotListNamespaces() ) ); return; } kdDebug(5006) << "slotListNamespaces" << endl; @@ -636,9 +636,9 @@ void KMFolderImap::slotListNamespaces() account()->addPathToNamespace( *it ) ); job->setNamespace( *it ); job->setHonorLocalSubscription( true ); - connect( job, TQT_SIGNAL(receivedFolders(const TQStringList&, const TQStringList&, + connect( job, TQ_SIGNAL(receivedFolders(const TQStringList&, const TQStringList&, const TQStringList&, const TQStringList&, const ImapAccountBase::jobData&)), - this, TQT_SLOT(slotListResult(const TQStringList&, const TQStringList&, + this, TQ_SLOT(slotListResult(const TQStringList&, const TQStringList&, const TQStringList&, const TQStringList&, const ImapAccountBase::jobData&))); job->start(); } @@ -650,9 +650,9 @@ void KMFolderImap::slotListNamespaces() { KMail::ListJob* job = new KMail::ListJob( account(), type, this, account()->addPathToNamespace( *it ) ); job->setHonorLocalSubscription( true ); - connect( job, TQT_SIGNAL(receivedFolders(const TQStringList&, const TQStringList&, + connect( job, TQ_SIGNAL(receivedFolders(const TQStringList&, const TQStringList&, const TQStringList&, const TQStringList&, const ImapAccountBase::jobData&)), - this, TQT_SLOT(slotCheckNamespace(const TQStringList&, const TQStringList&, + this, TQ_SLOT(slotCheckNamespace(const TQStringList&, const TQStringList&, const TQStringList&, const TQStringList&, const ImapAccountBase::jobData&))); job->start(); } @@ -754,9 +754,9 @@ bool KMFolderImap::listDirectory() KMail::ListJob* job = new KMail::ListJob( account(), type, this ); job->setParentProgressItem( account()->listDirProgressItem() ); job->setHonorLocalSubscription( true ); - connect( job, TQT_SIGNAL(receivedFolders(const TQStringList&, const TQStringList&, + connect( job, TQ_SIGNAL(receivedFolders(const TQStringList&, const TQStringList&, const TQStringList&, const TQStringList&, const ImapAccountBase::jobData&)), - this, TQT_SLOT(slotListResult(const TQStringList&, const TQStringList&, + this, TQ_SLOT(slotListResult(const TQStringList&, const TQStringList&, const TQStringList&, const TQStringList&, const ImapAccountBase::jobData&))); job->start(); @@ -1034,8 +1034,8 @@ void KMFolderImap::checkValidity() kdDebug(5006) << "KMFolderImap::checkValidity of: " << imapPath() << endl; // Start with a clean slate - disconnect( account(), TQT_SIGNAL( connectionResult(int, const TQString&) ), - this, TQT_SLOT( checkValidity() ) ); + disconnect( account(), TQ_SIGNAL( connectionResult(int, const TQString&) ), + this, TQ_SLOT( checkValidity() ) ); KMAcctImap::ConnectionState connectionState = account()->makeConnection(); if ( connectionState == ImapAccountBase::Error ) { @@ -1048,8 +1048,8 @@ void KMFolderImap::checkValidity() // We'll wait for the connectionResult signal from the account. If it // errors, the above will catch it. kdDebug(5006) << "CheckValidity - waiting for connection" << endl; - connect( account(), TQT_SIGNAL( connectionResult(int, const TQString&) ), - this, TQT_SLOT( checkValidity() ) ); + connect( account(), TQ_SIGNAL( connectionResult(int, const TQString&) ), + this, TQ_SLOT( checkValidity() ) ); return; } // Only check once at a time. @@ -1079,10 +1079,10 @@ void KMFolderImap::checkValidity() TDEIO::SimpleJob *job = TDEIO::get(url, false, false); TDEIO::Scheduler::assignJobToSlave(account()->slave(), job); account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - TQT_SLOT(slotCheckValidityResult(TDEIO::Job *))); - connect(job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - TQT_SLOT(slotSimpleData(TDEIO::Job *, const TQByteArray &))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + TQ_SLOT(slotCheckValidityResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + TQ_SLOT(slotSimpleData(TDEIO::Job *, const TQByteArray &))); // Only check once at a time. mCheckingValidity = true; } @@ -1238,10 +1238,10 @@ void KMFolderImap::reallyGetFolder(const TQString &startUid) ImapAccountBase::jobData jd( url.url(), folder() ); jd.cancellable = true; account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotListFolderResult(TDEIO::Job *))); - connect(job, TQT_SIGNAL(entries(TDEIO::Job *, const TDEIO::UDSEntryList &)), - this, TQT_SLOT(slotListFolderEntries(TDEIO::Job *, + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotListFolderResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(entries(TDEIO::Job *, const TDEIO::UDSEntryList &)), + this, TQ_SLOT(slotListFolderEntries(TDEIO::Job *, const TDEIO::UDSEntryList &))); } else { mContentState = imapDownloadInProgress; @@ -1254,10 +1254,10 @@ void KMFolderImap::reallyGetFolder(const TQString &startUid) ImapAccountBase::jobData jd( url.url(), folder() ); jd.cancellable = true; account()->insertJob(newJob, jd); - connect(newJob, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotGetLastMessagesResult(TDEIO::Job *))); - connect(newJob, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - this, TQT_SLOT(slotGetMessagesData(TDEIO::Job *, const TQByteArray &))); + connect(newJob, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotGetLastMessagesResult(TDEIO::Job *))); + connect(newJob, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + this, TQ_SLOT(slotGetMessagesData(TDEIO::Job *, const TQByteArray &))); } } @@ -1360,12 +1360,12 @@ void KMFolderImap::slotListFolderResult(TDEIO::Job * job) jd.url = url.url(); TDEIO::Scheduler::assignJobToSlave(account()->slave(), newJob); account()->insertJob(newJob, jd); - connect(newJob, TQT_SIGNAL(result(TDEIO::Job *)), + connect(newJob, TQ_SIGNAL(result(TDEIO::Job *)), this, (i == sets.at(sets.count() - 1)) - ? TQT_SLOT(slotGetLastMessagesResult(TDEIO::Job *)) - : TQT_SLOT(slotGetMessagesResult(TDEIO::Job *))); - connect(newJob, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - this, TQT_SLOT(slotGetMessagesData(TDEIO::Job *, const TQByteArray &))); + ? TQ_SLOT(slotGetLastMessagesResult(TDEIO::Job *)) + : TQ_SLOT(slotGetMessagesResult(TDEIO::Job *))); + connect(newJob, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + this, TQ_SLOT(slotGetMessagesData(TDEIO::Job *, const TQByteArray &))); } } @@ -1740,8 +1740,8 @@ void KMFolderImap::createFolder(const TQString &name, const TQString& parentPath ImapAccountBase::jobData jd( url.url(), folder() ); jd.items = name; account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - this, TQT_SLOT(slotCreateFolderResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + this, TQ_SLOT(slotCreateFolderResult(TDEIO::Job *))); } @@ -1841,8 +1841,8 @@ void KMFolderImap::deleteMessage(KMMessage * msg) TDEIO::Scheduler::assignJobToSlave(account()->slave(), job); ImapAccountBase::jobData jd( url.url(), 0 ); account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - account(), TQT_SLOT(slotSimpleResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + account(), TQ_SLOT(slotSimpleResult(TDEIO::Job *))); } void KMFolderImap::deleteMessage(const TQPtrList<KMMessage>& msgList) @@ -1874,8 +1874,8 @@ void KMFolderImap::deleteMessage(const TQPtrList<KMMessage>& msgList) TDEIO::Scheduler::assignJobToSlave(account()->slave(), job); ImapAccountBase::jobData jd( url.url(), 0 ); account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - account(), TQT_SLOT(slotSimpleResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + account(), TQ_SLOT(slotSimpleResult(TDEIO::Job *))); } } @@ -1968,7 +1968,7 @@ void KMFolderImap::setStatus(TQValueList<int>& _ids, KMMsgStatus status, bool to // to make sure that we get the latest flags abort the current listing and // create a new one kdDebug(5006) << "Set status during folder listing, restarting listing." << endl; - disconnect(this, TQT_SLOT(slotListFolderResult(TDEIO::Job *))); + disconnect(this, TQ_SLOT(slotListFolderResult(TDEIO::Job *))); quiet( false ); reallyGetFolder( TQString() ); } @@ -2075,16 +2075,16 @@ void KMFolderImap::expungeFolder(KMFolderImap * aFolder, bool quiet) ImapAccountBase::jobData jd( url.url(), 0 ); jd.quiet = quiet; account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - account(), TQT_SLOT(slotSimpleResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + account(), TQ_SLOT(slotSimpleResult(TDEIO::Job *))); } //----------------------------------------------------------------------------- void KMFolderImap::slotProcessNewMail( int errorCode, const TQString &errorMsg ) { Q_UNUSED( errorMsg ); - disconnect( account(), TQT_SIGNAL( connectionResult(int, const TQString&) ), - this, TQT_SLOT( slotProcessNewMail(int, const TQString&) ) ); + disconnect( account(), TQ_SIGNAL( connectionResult(int, const TQString&) ), + this, TQ_SLOT( slotProcessNewMail(int, const TQString&) ) ); if ( !errorCode ) processNewMail( false ); else @@ -2114,8 +2114,8 @@ bool KMFolderImap::processNewMail(bool) { // wait kdDebug(5006) << "KMFolderImap::processNewMail - waiting for connection: " << label() << endl; - connect( account(), TQT_SIGNAL( connectionResult(int, const TQString&) ), - this, TQT_SLOT( slotProcessNewMail(int, const TQString&) ) ); + connect( account(), TQ_SIGNAL( connectionResult(int, const TQString&) ), + this, TQ_SLOT( slotProcessNewMail(int, const TQString&) ) ); return true; } KURL url = account()->getUrl(); @@ -2137,8 +2137,8 @@ bool KMFolderImap::processNewMail(bool) ImapAccountBase::jobData jd(url.url(), folder() ); jd.cancellable = true; account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - TQT_SLOT(slotStatResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + TQ_SLOT(slotStatResult(TDEIO::Job *))); return true; } @@ -2247,8 +2247,8 @@ int KMFolderImap::expungeContents() ImapAccountBase::jobData jd( url.url(), 0 ); jd.quiet = true; account()->insertJob(job, jd); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), - account(), TQT_SLOT(slotSimpleResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), + account(), TQ_SLOT(slotSimpleResult(TDEIO::Job *))); } /* Is the below correct? If we are expunging (in the folder sense, not the imap sense), why delete but not (imap-)expunge? Since the folder is not active there is no concept @@ -2328,8 +2328,8 @@ void KMFolderImap::setAlreadyRemoved( bool removed ) void KMFolderImap::slotCreatePendingFolders( int errorCode, const TQString& errorMsg ) { Q_UNUSED( errorMsg ); - disconnect( account(), TQT_SIGNAL( connectionResult( int, const TQString& ) ), - this, TQT_SLOT( slotCreatePendingFolders( int, const TQString& ) ) ); + disconnect( account(), TQ_SIGNAL( connectionResult( int, const TQString& ) ), + this, TQ_SLOT( slotCreatePendingFolders( int, const TQString& ) ) ); if ( !errorCode ) { TQStringList::Iterator it = mFoldersPendingCreation.begin(); for ( ; it != mFoldersPendingCreation.end(); ++it ) { @@ -2350,8 +2350,8 @@ void KMFolderImap::search( const KMSearchPattern* pattern ) return; } SearchJob* job = new SearchJob( this, account(), pattern ); - connect( job, TQT_SIGNAL( searchDone( TQValueList<TQ_UINT32>, const KMSearchPattern*, bool ) ), - this, TQT_SLOT( slotSearchDone( TQValueList<TQ_UINT32>, const KMSearchPattern*, bool ) ) ); + connect( job, TQ_SIGNAL( searchDone( TQValueList<TQ_UINT32>, const KMSearchPattern*, bool ) ), + this, TQ_SLOT( slotSearchDone( TQValueList<TQ_UINT32>, const KMSearchPattern*, bool ) ) ); job->start(); } @@ -2373,8 +2373,8 @@ void KMFolderImap::search( const KMSearchPattern* pattern, TQ_UINT32 serNum ) return; } SearchJob* job = new SearchJob( this, account(), pattern, serNum ); - connect( job, TQT_SIGNAL( searchDone( TQ_UINT32, const KMSearchPattern*, bool ) ), - this, TQT_SLOT( slotSearchDone( TQ_UINT32, const KMSearchPattern*, bool ) ) ); + connect( job, TQ_SIGNAL( searchDone( TQ_UINT32, const KMSearchPattern*, bool ) ), + this, TQ_SLOT( slotSearchDone( TQ_UINT32, const KMSearchPattern*, bool ) ) ); job->start(); } |