diff options
Diffstat (limited to 'kmail/kmfolderimap.cpp')
-rw-r--r-- | kmail/kmfolderimap.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kmail/kmfolderimap.cpp b/kmail/kmfolderimap.cpp index 21fb82d14..05a7864d1 100644 --- a/kmail/kmfolderimap.cpp +++ b/kmail/kmfolderimap.cpp @@ -153,14 +153,14 @@ KMMessage* KMFolderImap::getMsg(int idx) KMAcctImap* KMFolderImap::account() const { if ( !mAccount ) { - KMFolderDir *parentFolderDir = dynamic_cast<KMFolderDir*>( folder()->tqparent() ); + KMFolderDir *parentFolderDir = dynamic_cast<KMFolderDir*>( folder()->parent() ); if ( !parentFolderDir ) { - kdWarning() << k_funcinfo << "No tqparent folder dir found for " << name() << endl; + kdWarning() << k_funcinfo << "No parent folder dir found for " << name() << endl; return 0; } KMFolder *parentFolder = parentFolderDir->owner(); if ( !parentFolder ) { - kdWarning() << k_funcinfo << "No tqparent folder found for " << name() << endl; + kdWarning() << k_funcinfo << "No parent folder found for " << name() << endl; return 0; } KMFolderImap *parentStorage = dynamic_cast<KMFolderImap*>( parentFolder->storage() ); @@ -321,7 +321,7 @@ int KMFolderImap::rename( const TQString& newName, KMFolderDir *aParent ) //----------------------------------------------------------------------------- void KMFolderImap::addMsgQuiet(KMMessage* aMsg) { - KMFolder *aFolder = aMsg->tqparent(); + KMFolder *aFolder = aMsg->parent(); TQ_UINT32 serNum = 0; aMsg->setTransferInProgress( false ); if (aFolder) { @@ -351,7 +351,7 @@ void KMFolderImap::addMsgQuiet(TQPtrList<KMMessage> msgList) mAddMessageProgressItem->setComplete(); mAddMessageProgressItem = 0; } - KMFolder *aFolder = msgList.first()->tqparent(); + KMFolder *aFolder = msgList.first()->parent(); int undoId = -1; bool uidplus = account()->hasCapability("uidplus"); for ( KMMessage* msg = msgList.first(); msg; msg = msgList.next() ) @@ -371,7 +371,7 @@ void KMFolderImap::addMsgQuiet(TQPtrList<KMMessage> msgList) if ( aFolder ) { aFolder->take( msgList ); } else { - kdDebug(5006) << k_funcinfo << "no tqparent" << endl; + kdDebug(5006) << k_funcinfo << "no parent" << endl; } msgList.setAutoDelete(true); msgList.clear(); @@ -392,7 +392,7 @@ int KMFolderImap::addMsg(KMMessage* aMsg, int* aIndex_ret) int KMFolderImap::addMsg(TQPtrList<KMMessage>& msgList, TQValueList<int>& aIndex_ret) { KMMessage *aMsg = msgList.getFirst(); - KMFolder *msgParent = aMsg->tqparent(); + KMFolder *msgParent = aMsg->parent(); ImapJob *imapJob = 0; if (msgParent) @@ -483,7 +483,7 @@ int KMFolderImap::addMsg(TQPtrList<KMMessage>& msgList, TQValueList<int>& aIndex imapJob = new ImapJob( msgList, TQString(), ImapJob::tPutMessage, this ); if ( !mAddMessageProgressItem && msgList.count() > 1 ) { - // use a tqparent progress if we have more than 1 message + // use a parent progress if we have more than 1 message // otherwise the normal progress is more accurate mAddMessageProgressItem = ProgressManager::createProgressItem( "Uploading"+ProgressManager::getUniqueID(), @@ -786,17 +786,17 @@ void KMFolderImap::slotListResult( const TQStringList& subfolderNames, initInbox(); } - // see if we have a better tqparent + // see if we have a better parent // if you have a prefix that contains a folder (e.g "INBOX.") the folders // need to be created underneath it if ( root && !subfolderNames.empty() ) { - KMFolderImap* tqparent = findParent( subfolderPaths.first(), subfolderNames.first() ); - if ( tqparent ) + KMFolderImap* parent = findParent( subfolderPaths.first(), subfolderNames.first() ); + if ( parent ) { kdDebug(5006) << "KMFolderImap::slotListResult - pass listing to " - << tqparent->label() << endl; - tqparent->slotListResult( subfolderNames, subfolderPaths, + << parent->label() << endl; + parent->slotListResult( subfolderNames, subfolderPaths, subfolderMimeTypes, subfolderAttributes, jobData ); // cleanup TQStringList list; @@ -914,18 +914,18 @@ void KMFolderImap::initInbox() //----------------------------------------------------------------------------- KMFolderImap* KMFolderImap::findParent( const TQString& path, const TQString& name ) { - TQString tqparent = path.left( path.length() - name.length() - 2 ); - if ( tqparent.length() > 1 ) + TQString parent = path.left( path.length() - name.length() - 2 ); + if ( parent.length() > 1 ) { - // extract name of the tqparent - tqparent = tqparent.right( tqparent.length() - 1 ); - if ( tqparent != label() ) + // extract name of the parent + parent = parent.right( parent.length() - 1 ); + if ( parent != label() ) { KMFolderNode *node = folder()->child()->first(); - // look for a better tqparent + // look for a better parent while ( node ) { - if ( node->name() == tqparent ) + if ( node->name() == parent ) { KMFolder* fld = static_cast<KMFolder*>(node); KMFolderImap* imapFld = static_cast<KMFolderImap*>( fld->storage() ); @@ -984,10 +984,10 @@ void KMFolderImap::checkFolders( const TQStringList& subfolderNames, } //----------------------------------------------------------------------------- -void KMFolderImap::initializeFrom( KMFolderImap* tqparent, TQString folderPath, +void KMFolderImap::initializeFrom( KMFolderImap* parent, TQString folderPath, TQString mimeType ) { - setAccount( tqparent->account() ); + setAccount( parent->account() ); setImapPath( folderPath ); setNoContent( mimeType == "inode/directory" ); setNoChildren( mimeType == "message/digest" ); @@ -1060,10 +1060,10 @@ void KMFolderImap::checkValidity() } // otherwise we already are inside a mailcheck if ( !mMailCheckProgressItem ) { - ProgressItem* tqparent = ( account()->checkingSingleFolder() ? 0 : + ProgressItem* parent = ( account()->checkingSingleFolder() ? 0 : account()->mailCheckProgressItem() ); mMailCheckProgressItem = ProgressManager::createProgressItem( - tqparent, + parent, "MailCheck" + folder()->prettyURL(), TQStyleSheet::escape( folder()->prettyURL() ), i18n("checking"), @@ -1327,7 +1327,7 @@ void KMFolderImap::slotListFolderResult(KIO::Job * job) // strip the flags from the list of uids, so it can be reused for (uid = (*it).items.begin(); uid != (*it).items.end(); ++uid) (*uid).truncate((*uid).find(",")); - ImapAccountBase::jobData jd( TQString(), (*it).tqparent ); + ImapAccountBase::jobData jd( TQString(), (*it).parent ); jd.total = (*it).items.count(); if (jd.total == 0) { @@ -1509,7 +1509,7 @@ void KMFolderImap::ignoreJobsForMessage( KMMessage* msg ) { if ( !msg || msg->transferInProgress() || - !msg->tqparent() || msg->tqparent()->folderType() != KMFolderTypeImap ) + !msg->parent() || msg->parent()->folderType() != KMFolderTypeImap ) return; KMAcctImap *account; if ( !(account = static_cast<KMFolderImap*>(msg->storage())->account()) ) @@ -1721,15 +1721,15 @@ void KMFolderImap::slotGetMessagesResult(KIO::Job * job) void KMFolderImap::createFolder(const TQString &name, const TQString& parentPath, bool askUser) { - kdDebug(5006) << "KMFolderImap::createFolder - name=" << name << ",tqparent=" << + kdDebug(5006) << "KMFolderImap::createFolder - name=" << name << ",parent=" << parentPath << ",askUser=" << askUser << endl; if ( account()->makeConnection() != ImapAccountBase::Connected ) { kdWarning(5006) << "KMFolderImap::createFolder - got no connection" << endl; return; } KURL url = account()->getUrl(); - TQString tqparent = ( parentPath.isEmpty() ? imapPath() : parentPath ); - TQString path = account()->createImapPath( tqparent, name ); + TQString parent = ( parentPath.isEmpty() ? imapPath() : parentPath ); + TQString path = account()->createImapPath( parent, name ); if ( askUser ) { path += "/;INFO=ASKUSER"; } @@ -1824,7 +1824,7 @@ void KMFolderImap::deleteMessage(KMMessage * msg) mUidMetaDataMap.remove( msg->UID() ); mMetaDataMap.remove( msg->msgIdMD5() ); KURL url = account()->getUrl(); - KMFolderImap *msg_tqparent = static_cast<KMFolderImap*>(msg->storage()); + KMFolderImap *msg_parent = static_cast<KMFolderImap*>(msg->storage()); ulong uid = msg->UID(); /* If the uid is empty the delete job below will nuke all mail in the folder, so we better safeguard against that. See ::expungeFolder, as @@ -1834,7 +1834,7 @@ void KMFolderImap::deleteMessage(KMMessage * msg) "an empty UID. Aborting." << endl; return; } - url.setPath(msg_tqparent->imapPath() + ";UID=" + TQString::number(uid) ); + url.setPath(msg_parent->imapPath() + ";UID=" + TQString::number(uid) ); if ( account()->makeConnection() != ImapAccountBase::Connected ) return; KIO::SimpleJob *job = KIO::file_delete(url, false); @@ -1860,14 +1860,14 @@ void KMFolderImap::deleteMessage(const TQPtrList<KMMessage>& msgList) TQStringList sets = makeSets(uids); KURL url = account()->getUrl(); - KMFolderImap *msg_tqparent = static_cast<KMFolderImap*>(msgList.getFirst()->storage()); + KMFolderImap *msg_parent = static_cast<KMFolderImap*>(msgList.getFirst()->storage()); for ( TQStringList::Iterator it = sets.begin(); it != sets.end(); ++it ) { TQString uid = *it; // Don't delete with no uid, that nukes the folder. Should not happen, but // better safe than sorry. if ( uid.isEmpty() ) continue; - url.setPath(msg_tqparent->imapPath() + ";UID=" + uid); + url.setPath(msg_parent->imapPath() + ";UID=" + uid); if ( account()->makeConnection() != ImapAccountBase::Connected ) return; KIO::SimpleJob *job = KIO::file_delete(url, false); |