diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /kmail/kmfolderimap.cpp | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmfolderimap.cpp')
-rw-r--r-- | kmail/kmfolderimap.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kmail/kmfolderimap.cpp b/kmail/kmfolderimap.cpp index e5c7bd827..c924fa8a1 100644 --- a/kmail/kmfolderimap.cpp +++ b/kmail/kmfolderimap.cpp @@ -322,7 +322,7 @@ int KMFolderImap::rename( const TQString& newName, KMFolderDir *aParent ) void KMFolderImap::addMsgQuiet(KMMessage* aMsg) { KMFolder *aFolder = aMsg->parent(); - Q_UINT32 serNum = 0; + TQ_UINT32 serNum = 0; aMsg->setTransferInProgress( false ); if (aFolder) { serNum = aMsg->getMsgSerNum(); @@ -787,7 +787,7 @@ void KMFolderImap::slotListResult( const TQStringList& subfolderNames, } // see if we have a better parent - // if you have a prefix that contains a folder (e.g "INBOX.") the folders + // if you have a prefix that tqcontains a folder (e.g "INBOX.") the folders // need to be created underneath it if ( root && !subfolderNames.empty() ) { @@ -849,7 +849,7 @@ void KMFolderImap::slotListResult( const TQStringList& subfolderNames, // update progress account()->listDirProgressItem()->incCompletedItems(); account()->listDirProgressItem()->updateProgress(); - account()->listDirProgressItem()->setStatus( folder()->prettyURL() + i18n(" completed") ); + account()->listDirProgressItem()->seStatus( folder()->prettyURL() + i18n(" completed") ); f->initializeFrom( this, subfolderPaths[i], subfolderMimeTypes[i] ); f->setChildrenState( subfolderAttributes[i] ); @@ -1073,7 +1073,7 @@ void KMFolderImap::checkValidity() mMailCheckProgressItem->setProgress(0); } if ( account()->mailCheckProgressItem() ) { - account()->mailCheckProgressItem()->setStatus( folder()->prettyURL() ); + account()->mailCheckProgressItem()->seStatus( folder()->prettyURL() ); } ImapAccountBase::jobData jd( url.url() ); KIO::SimpleJob *job = KIO::get(url, false, false); @@ -1231,7 +1231,7 @@ void KMFolderImap::reallyGetFolder(const TQString &startUid) if (startUid.isEmpty()) { if ( mMailCheckProgressItem ) - mMailCheckProgressItem->setStatus( i18n("Retrieving message status") ); + mMailCheckProgressItem->seStatus( i18n("Retrieving message status") ); url.setPath(imapPath() + ";SECTION=UID FLAGS"); KIO::SimpleJob *job = KIO::listDir(url, false); KIO::Scheduler::assignJobToSlave(account()->slave(), job); @@ -1246,7 +1246,7 @@ void KMFolderImap::reallyGetFolder(const TQString &startUid) } else { mContentState = imapDownloadInProgress; if ( mMailCheckProgressItem ) - mMailCheckProgressItem->setStatus( i18n("Retrieving messages") ); + mMailCheckProgressItem->seStatus( i18n("Retrieving messages") ); url.setPath(imapPath() + ";UID=" + startUid + ":*;SECTION=ENVELOPE"); KIO::SimpleJob *newJob = KIO::get(url, false, false); @@ -1341,7 +1341,7 @@ void KMFolderImap::slotListFolderResult(KIO::Job * job) mMailCheckProgressItem->setCompletedItems( 0 ); mMailCheckProgressItem->setTotalItems( jd.total ); mMailCheckProgressItem->setProgress( 0 ); - mMailCheckProgressItem->setStatus( i18n("Retrieving messages") ); + mMailCheckProgressItem->seStatus( i18n("Retrieving messages") ); } TQStringList sets; @@ -1460,7 +1460,7 @@ void KMFolderImap::seenFlagToStatus(KMMsgBase * msg, int flags, bool newMsg) const KMMsgStatus oldStatus = msg->status(); if ( (flags & 1) && (oldStatus & KMMsgStatusOld) == 0 ) - msg->setStatus( KMMsgStatusOld ); + msg->seStatus( KMMsgStatusOld ); // In case the message does not have the seen flag set, override our local // notion that it is read. Otherwise the count of unread messages and the @@ -1468,10 +1468,10 @@ void KMFolderImap::seenFlagToStatus(KMMsgBase * msg, int flags, bool newMsg) if ( msg->isOfUnknownStatus() || (!(flags&1) && !(oldStatus&(KMMsgStatusNew|KMMsgStatusUnread)) ) ) { if (newMsg) { if ( (oldStatus & KMMsgStatusNew) == 0 ) - msg->setStatus( KMMsgStatusNew ); + msg->seStatus( KMMsgStatusNew ); } else { if ( (oldStatus & KMMsgStatusUnread) == 0 ) - msg->setStatus( KMMsgStatusUnread ); + msg->seStatus( KMMsgStatusUnread ); } } } @@ -1596,14 +1596,14 @@ void KMFolderImap::slotGetMessagesData(KIO::Job * job, const TQByteArray & data) } // Transfer the status, if it is cached. if ( md ) { - msg->setStatus( md->status() ); + msg->seStatus( md->status() ); } else if ( !account()->hasCapability("uidplus") ) { // see if we have cached the msgIdMD5 and get the status + // serial number from there TQString id = msg->msgIdMD5(); if ( mMetaDataMap.find( id ) ) { md = mMetaDataMap[id]; - msg->setStatus( md->status() ); + msg->seStatus( md->status() ); if ( md->serNum() != 0 && serNum == 0 ) { msg->setMsgSerNum( md->serNum() ); } @@ -1880,15 +1880,15 @@ void KMFolderImap::deleteMessage(const TQPtrList<KMMessage>& msgList) } //----------------------------------------------------------------------------- -void KMFolderImap::setStatus(int idx, KMMsgStatus status, bool toggle) +void KMFolderImap::seStatus(int idx, KMMsgStatus status, bool toggle) { TQValueList<int> ids; ids.append(idx); - setStatus(ids, status, toggle); + seStatus(ids, status, toggle); } -void KMFolderImap::setStatus(TQValueList<int>& _ids, KMMsgStatus status, bool toggle) +void KMFolderImap::seStatus(TQValueList<int>& _ids, KMMsgStatus status, bool toggle) { - FolderStorage::setStatus(_ids, status, toggle); + FolderStorage::seStatus(_ids, status, toggle); TQValueList<int> ids; if ( mUploadAllFlags ) { kdDebug(5006) << k_funcinfo << "Migrating all flags to the server" << endl; @@ -2345,18 +2345,18 @@ void KMFolderImap::search( const KMSearchPattern* pattern ) if ( !pattern || pattern->isEmpty() ) { // not much to do here - TQValueList<Q_UINT32> serNums; + TQValueList<TQ_UINT32> serNums; emit searchResult( folder(), serNums, pattern, true ); return; } SearchJob* job = new SearchJob( this, account(), pattern ); - connect( job, TQT_SIGNAL( searchDone( TQValueList<Q_UINT32>, const KMSearchPattern*, bool ) ), - this, TQT_SLOT( slotSearchDone( TQValueList<Q_UINT32>, const KMSearchPattern*, bool ) ) ); + connect( job, TQT_SIGNAL( searchDone( TQValueList<TQ_UINT32>, const KMSearchPattern*, bool ) ), + this, TQT_SLOT( slotSearchDone( TQValueList<TQ_UINT32>, const KMSearchPattern*, bool ) ) ); job->start(); } //----------------------------------------------------------------------------- -void KMFolderImap::slotSearchDone( TQValueList<Q_UINT32> serNums, +void KMFolderImap::slotSearchDone( TQValueList<TQ_UINT32> serNums, const KMSearchPattern* pattern, bool complete ) { @@ -2364,7 +2364,7 @@ void KMFolderImap::slotSearchDone( TQValueList<Q_UINT32> serNums, } //----------------------------------------------------------------------------- -void KMFolderImap::search( const KMSearchPattern* pattern, Q_UINT32 serNum ) +void KMFolderImap::search( const KMSearchPattern* pattern, TQ_UINT32 serNum ) { if ( !pattern || pattern->isEmpty() ) { @@ -2373,13 +2373,13 @@ void KMFolderImap::search( const KMSearchPattern* pattern, Q_UINT32 serNum ) return; } SearchJob* job = new SearchJob( this, account(), pattern, serNum ); - connect( job, TQT_SIGNAL( searchDone( Q_UINT32, const KMSearchPattern*, bool ) ), - this, TQT_SLOT( slotSearchDone( Q_UINT32, const KMSearchPattern*, bool ) ) ); + connect( job, TQT_SIGNAL( searchDone( TQ_UINT32, const KMSearchPattern*, bool ) ), + this, TQT_SLOT( slotSearchDone( TQ_UINT32, const KMSearchPattern*, bool ) ) ); job->start(); } //----------------------------------------------------------------------------- -void KMFolderImap::slotSearchDone( Q_UINT32 serNum, const KMSearchPattern* pattern, +void KMFolderImap::slotSearchDone( TQ_UINT32 serNum, const KMSearchPattern* pattern, bool matches ) { emit searchDone( folder(), serNum, pattern, matches ); @@ -2411,7 +2411,7 @@ void KMFolderImap::saveMsgMetaData( KMMessage* msg, ulong uid ) uid = msg->UID(); } ulong serNum = msg->getMsgSerNum(); - mUidMetaDataMap.replace( uid, new KMMsgMetaData(msg->status(), serNum) ); + mUidMetaDataMap.tqreplace( uid, new KMMsgMetaData(msg->status(), serNum) ); } //----------------------------------------------------------------------------- |