diff options
Diffstat (limited to 'kmail/actionscheduler.cpp')
-rw-r--r-- | kmail/actionscheduler.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kmail/actionscheduler.cpp b/kmail/actionscheduler.cpp index 6975b3fcd..77685ee4b 100644 --- a/kmail/actionscheduler.cpp +++ b/kmail/actionscheduler.cpp @@ -18,11 +18,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -421,7 +421,7 @@ void ActionScheduler::fetchMessage() } else if (msg) { fetchTimeOutTime = TQTime::currentTime(); fetchTimeOutTimer->start( 60 * 1000, true ); - FolderJob *job = msg->parent()->createJob( msg ); + FolderJob *job = msg->tqparent()->createJob( msg ); connect( job, TQT_SIGNAL(messageRetrieved( KMMessage* )), TQT_SLOT(messageFetched( KMMessage* )) ); lastJob = job; @@ -454,15 +454,15 @@ void ActionScheduler::messageFetched( KMMessage *msg ) serNumS.setNum( msg->getMsgSerNum() ); KMMessage *newMsg = new KMMessage; newMsg->fromString(msg->asString()); - newMsg->seStatus(msg->status()); + newMsg->setqStatus(msg->status()); newMsg->setComplete(msg->isComplete()); newMsg->setHeaderField( "X-KMail-Filtered", serNumS ); mSrcFolder->addMsg( newMsg ); } else { fetchMessageTimer->start( 0, true ); } - if (mFetchUnget && msg->parent()) - msg->parent()->unGetMsg( msg->parent()->find( msg )); + if (mFetchUnget && msg->tqparent()) + msg->tqparent()->unGetMsg( msg->tqparent()->tqfind( msg )); return; } @@ -562,7 +562,7 @@ void ActionScheduler::processMessage() return; } if (msg) { - FolderJob *job = msg->parent()->createJob( msg ); + FolderJob *job = msg->tqparent()->createJob( msg ); connect( job, TQT_SIGNAL(messageRetrieved( KMMessage* )), TQT_SLOT(messageRetrieved( KMMessage* )) ); job->start(); @@ -665,9 +665,9 @@ void ActionScheduler::moveMessage() if (mOriginalSerNum) orgMsg = message( mOriginalSerNum ); mResult = mOldReturnCode; // ignore errors in deleting original message - if (!orgMsg || !orgMsg->parent()) { + if (!orgMsg || !orgMsg->tqparent()) { // Original message is gone, no point filtering it anymore - mSrcFolder->removeMsg( mSrcFolder->find( msg ) ); + mSrcFolder->removeMsg( mSrcFolder->tqfind( msg ) ); kdDebug(5006) << "The original serial number is missing. " << "Cannot complete the filtering." << endl; mExecutingLock = false; @@ -675,12 +675,12 @@ void ActionScheduler::moveMessage() return; } else { if (!folder) // no filter folder specified leave in current place - folder = orgMsg->parent(); + folder = orgMsg->tqparent(); } mIgnore = true; - assert( msg->parent() == mSrcFolder.operator->() ); - mSrcFolder->take( mSrcFolder->find( msg ) ); + assert( msg->tqparent() == mSrcFolder.operator->() ); + mSrcFolder->take( mSrcFolder->tqfind( msg ) ); mSrcFolder->addMsg( msg ); mIgnore = false; @@ -719,7 +719,7 @@ void ActionScheduler::moveMessageFinished( KMCommand *command ) mResult = mOldReturnCode; // ignore errors in deleting original message KMCommand *cmd = 0; - if (msg && msg->parent()) { + if (msg && msg->tqparent()) { cmd = new KMMoveCommand( 0, msg ); // cmd->start(); // Note: sensitive logic here. } @@ -787,10 +787,10 @@ TQString ActionScheduler::debug() int i = 1; for ( it = schedulerList->begin(); it != schedulerList->end(); ++it ) { res.append( TQString( "ActionScheduler #%1.\n" ).arg( i ) ); - if ((*it)->mAccount && kmkernel->find( (*it)->mAccountId )) { + if ((*it)->mAccount && kmkernel->tqfind( (*it)->mAccountId )) { res.append( TQString( "Account %1, Name %2.\n" ) .arg( (*it)->mAccountId ) - .arg( kmkernel->acctMgr()->find( (*it)->mAccountId )->name() ) ); + .arg( kmkernel->acctMgr()->tqfind( (*it)->mAccountId )->name() ) ); } res.append( TQString( "mExecuting %1, " ).arg( (*it)->mExecuting ? "true" : "false" ) ); res.append( TQString( "mExecutingLock %1, " ).arg( (*it)->mExecutingLock ? "true" : "false" ) ); |