diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmacctlocal.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmacctlocal.cpp')
-rw-r--r-- | kmail/kmacctlocal.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kmail/kmacctlocal.cpp b/kmail/kmacctlocal.cpp index dfc8a1877..b486b5378 100644 --- a/kmail/kmacctlocal.cpp +++ b/kmail/kmacctlocal.cpp @@ -20,8 +20,8 @@ using KPIM::ProgressManager; #include <kdebug.h> #include <kconfig.h> -#include <qfileinfo.h> -#include <qstylesheet.h> +#include <tqfileinfo.h> +#include <tqstylesheet.h> #include <stdlib.h> #include <stdio.h> @@ -29,7 +29,7 @@ using KPIM::ProgressManager; #include <assert.h> //----------------------------------------------------------------------------- -KMAcctLocal::KMAcctLocal(AccountManager* aOwner, const QString& aAccountName, uint id): +KMAcctLocal::KMAcctLocal(AccountManager* aOwner, const TQString& aAccountName, uint id): KMAccount(aOwner, aAccountName, id), mHasNewMail( false ), mAddedOk( true ), mNumMsgs( 0 ), mMsgsFetched( 0 ), mMailFolder( 0 ) @@ -45,7 +45,7 @@ KMAcctLocal::~KMAcctLocal() //----------------------------------------------------------------------------- -QString KMAcctLocal::type(void) const +TQString KMAcctLocal::type(void) const { return "local"; } @@ -79,7 +79,7 @@ void KMAcctLocal::processNewMail(bool) return; } - QTime t; + TQTime t; t.start(); for ( mMsgsFetched = 0; mMsgsFetched < mNumMsgs; ++mMsgsFetched ) @@ -101,7 +101,7 @@ void KMAcctLocal::processNewMail(bool) bool KMAcctLocal::preProcess() { if ( precommand().isEmpty() ) { - QFileInfo fi( location() ); + TQFileInfo fi( location() ); if ( fi.size() == 0 ) { BroadcastStatus::instance()->setStatusMsgTransmissionCompleted( mName, 0 ); checkDone( mHasNewMail, CheckOK ); @@ -129,7 +129,7 @@ bool KMAcctLocal::preProcess() Q_ASSERT( !mMailCheckProgressItem ); - QString escapedName = QStyleSheet::escape( mName ); + TQString escapedName = TQStyleSheet::escape( mName ); mMailCheckProgressItem = KPIM::ProgressManager::createProgressItem( "MailCheck" + mName, escapedName, @@ -148,7 +148,7 @@ bool KMAcctLocal::preProcess() const int rc = mMailFolder->open("acctlocalMail"); if ( rc != 0 ) { - QString aStr; + TQString aStr; aStr = i18n("Cannot open file:"); aStr += mMailFolder->path()+"/"+mMailFolder->name(); KMessageBox::sorry(0, aStr); @@ -163,7 +163,7 @@ bool KMAcctLocal::preProcess() kdDebug(5006) << "mailFolder could not be locked" << endl; mMailFolder->close("acctlocalMail"); checkDone( mHasNewMail, CheckError ); - QString errMsg = i18n( "Transmission failed: Could not lock %1." ) + TQString errMsg = i18n( "Transmission failed: Could not lock %1." ) .arg( mMailFolder->location() ); BroadcastStatus::instance()->setStatusMsg( errMsg ); return false; @@ -192,7 +192,7 @@ bool KMAcctLocal::fetchMsg() /* This causes mail eating if (kmkernel->mailCheckAborted()) break; */ - const QString statusMsg = mStatusMsgStub.arg( mMsgsFetched ); + const TQString statusMsg = mStatusMsgStub.arg( mMsgsFetched ); //BroadcastStatus::instance()->setStatusMsg( statusMsg ); mMailCheckProgressItem->incCompletedItems(); mMailCheckProgressItem->updateProgress(); @@ -203,12 +203,12 @@ bool KMAcctLocal::fetchMsg() { #if 0 // debug code, don't remove - QFile fileD0( "testdat_xx-0-0" ); + TQFile fileD0( "testdat_xx-0-0" ); if( fileD0.open( IO_WriteOnly ) ) { - QCString s = msg->asString(); + TQCString s = msg->asString(); uint l = s.length(); if ( l > 0 ) { - QDataStream ds( &fileD0 ); + TQDataStream ds( &fileD0 ); ds.writeRawBytes( s.data(), l ); } fileD0.close(); // If data is 0 we just create a zero length file. @@ -273,7 +273,7 @@ void KMAcctLocal::readConfig(KConfig& config) { KMAccount::readConfig(config); mLocation = config.readPathEntry("Location", mLocation); - QString locktype = config.readEntry("LockType", "procmail_lockfile" ); + TQString locktype = config.readEntry("LockType", "procmail_lockfile" ); if( locktype == "procmail_lockfile" ) { mLock = procmail_lockfile; @@ -296,7 +296,7 @@ void KMAcctLocal::writeConfig(KConfig& config) config.writePathEntry("Location", mLocation); - QString st = "fcntl"; + TQString st = "fcntl"; if (mLock == procmail_lockfile) st = "procmail_lockfile"; else if (mLock == mutt_dotlock) st = "mutt_dotlock"; else if (mLock == mutt_dotlock_privileged) st = "mutt_dotlock_privileged"; @@ -311,12 +311,12 @@ void KMAcctLocal::writeConfig(KConfig& config) //----------------------------------------------------------------------------- -void KMAcctLocal::setLocation(const QString& aLocation) +void KMAcctLocal::setLocation(const TQString& aLocation) { mLocation = aLocation; } -void KMAcctLocal::setProcmailLockFileName(const QString& s) +void KMAcctLocal::setProcmailLockFileName(const TQString& s) { mProcmailLockFileName = s; } |