summaryrefslogtreecommitdiffstats
path: root/kmail/kmacctlocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmacctlocal.cpp')
-rw-r--r--kmail/kmacctlocal.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmail/kmacctlocal.cpp b/kmail/kmacctlocal.cpp
index 9af6e2cae..d1e15f83a 100644
--- a/kmail/kmacctlocal.cpp
+++ b/kmail/kmacctlocal.cpp
@@ -103,7 +103,7 @@ bool KMAcctLocal::preProcess()
if ( precommand().isEmpty() ) {
TQFileInfo fi( location() );
if ( fi.size() == 0 ) {
- BroadcastStatus::instance()->seStatusMsgTransmissionCompleted( mName, 0 );
+ BroadcastStatus::instance()->setStatusMsgTransmissionCompleted( mName, 0 );
checkDone( mHasNewMail, CheckOK );
return false;
}
@@ -119,13 +119,13 @@ bool KMAcctLocal::preProcess()
if (!mFolder) {
checkDone( mHasNewMail, CheckError );
- BroadcastStatus::instance()->seStatusMsg( i18n( "Transmission failed." ));
+ BroadcastStatus::instance()->setStatusMsg( i18n( "Transmission failed." ));
return false;
}
//BroadcastStatus::instance()->reset();
- BroadcastStatus::instance()->seStatusMsg(
- i18n("Preparing transmission from \"%1\"...").tqarg(mName));
+ BroadcastStatus::instance()->setStatusMsg(
+ i18n("Preparing transmission from \"%1\"...").arg(mName));
Q_ASSERT( !mMailCheckProgressItem );
@@ -133,7 +133,7 @@ bool KMAcctLocal::preProcess()
mMailCheckProgressItem = KPIM::ProgressManager::createProgressItem(
"MailCheck" + mName,
escapedName,
- i18n("Preparing transmission from \"%1\"...").tqarg( escapedName ),
+ i18n("Preparing transmission from \"%1\"...").arg( escapedName ),
false, // cannot be canceled
false ); // no tls/ssl
@@ -142,7 +142,7 @@ bool KMAcctLocal::preProcess()
{
kdDebug(5006) << "cannot run precommand " << precommand() << endl;
checkDone( mHasNewMail, CheckError );
- BroadcastStatus::instance()->seStatusMsg( i18n( "Running precommand failed." ));
+ BroadcastStatus::instance()->setStatusMsg( i18n( "Running precommand failed." ));
return false;
}
@@ -155,7 +155,7 @@ bool KMAcctLocal::preProcess()
kdDebug(5006) << "cannot open file " << mMailFolder->path() << "/"
<< mMailFolder->name() << endl;
checkDone( mHasNewMail, CheckError );
- BroadcastStatus::instance()->seStatusMsg( i18n( "Transmission failed." ));
+ BroadcastStatus::instance()->setStatusMsg( i18n( "Transmission failed." ));
return false;
}
@@ -164,8 +164,8 @@ bool KMAcctLocal::preProcess()
mMailFolder->close("acctlocalMail");
checkDone( mHasNewMail, CheckError );
TQString errMsg = i18n( "Transmission failed: Could not lock %1." )
- .tqarg( mMailFolder->location() );
- BroadcastStatus::instance()->seStatusMsg( errMsg );
+ .arg( mMailFolder->location() );
+ BroadcastStatus::instance()->setStatusMsg( errMsg );
return false;
}
@@ -177,9 +177,9 @@ bool KMAcctLocal::preProcess()
// prepare the static parts of the status message:
mStatusMsgStub = i18n("Moving message %3 of %2 from %1.")
- .tqarg(mMailFolder->location()).tqarg( mNumMsgs );
+ .arg(mMailFolder->location()).arg( mNumMsgs );
- //BroadcastStatus::instance()->seStatusProgressEnable( "L" + mName, true );
+ //BroadcastStatus::instance()->setStatusProgressEnable( "L" + mName, true );
return true;
}
@@ -192,11 +192,11 @@ bool KMAcctLocal::fetchMsg()
/* This causes mail eating
if (kmkernel->mailCheckAborted()) break; */
- const TQString statusMsg = mStatusMsgStub.tqarg( mMsgsFetched );
- //BroadcastStatus::instance()->seStatusMsg( statusMsg );
+ const TQString statusMsg = mStatusMsgStub.arg( mMsgsFetched );
+ //BroadcastStatus::instance()->setStatusMsg( statusMsg );
mMailCheckProgressItem->incCompletedItems();
mMailCheckProgressItem->updateProgress();
- mMailCheckProgressItem->seStatus( statusMsg );
+ mMailCheckProgressItem->setStatus( statusMsg );
msg = mMailFolder->take(0);
if (msg)
@@ -214,7 +214,7 @@ bool KMAcctLocal::fetchMsg()
fileD0.close(); // If data is 0 we just create a zero length file.
}
#endif
- msg->seStatus(msg->headerField("Status").latin1(),
+ msg->setStatus(msg->headerField("Status").latin1(),
msg->headerField("X-Status").latin1());
msg->setEncryptionStateChar( msg->headerField( "X-KMail-EncryptionState" ).at(0) );
msg->setSignatureStateChar( msg->headerField( "X-KMail-SignatureState" ).at(0));
@@ -244,16 +244,16 @@ void KMAcctLocal::postProcess()
KMessageBox::queuedMessageBox( 0, KMessageBox::Information,
i18n( "<qt>Cannot remove mail from "
"mailbox <b>%1</b>:<br>%2</qt>" )
- .tqarg( mMailFolder->location() )
- .tqarg( strerror( rc ) ) );
+ .arg( mMailFolder->location() )
+ .arg( strerror( rc ) ) );
}
if( mMailCheckProgressItem ) { // do this only once...
- BroadcastStatus::instance()->seStatusMsgTransmissionCompleted( mName, mNumMsgs );
- mMailCheckProgressItem->seStatus(
+ BroadcastStatus::instance()->setStatusMsgTransmissionCompleted( mName, mNumMsgs );
+ mMailCheckProgressItem->setStatus(
i18n( "Fetched 1 message from mailbox %1.",
"Fetched %n messages from mailbox %1.",
- mNumMsgs ).tqarg( mMailFolder->location() ) );
+ mNumMsgs ).arg( mMailFolder->location() ) );
mMailCheckProgressItem->setComplete();
mMailCheckProgressItem = 0;
}