summaryrefslogtreecommitdiffstats
path: root/kmail/listjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/listjob.cpp')
-rw-r--r--kmail/listjob.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmail/listjob.cpp b/kmail/listjob.cpp
index 341e934a5..f51a04eec 100644
--- a/kmail/listjob.cpp
+++ b/kmail/listjob.cpp
@@ -44,14 +44,14 @@ using KPIM::ProgressManager;
#include <kio/global.h>
#include <klocale.h>
-#include <qstylesheet.h>
+#include <tqstylesheet.h>
#include <stdlib.h>
using namespace KMail;
ListJob::ListJob( ImapAccountBase* account, ImapAccountBase::ListType type,
- FolderStorage* storage, const QString& path, bool complete,
+ FolderStorage* storage, const TQString& path, bool complete,
KPIM::ProgressItem* item )
: FolderJob( 0, tOther, (storage ? storage->folder() : 0) ),
mStorage( storage ), mAccount( account ), mType( type ),
@@ -76,8 +76,8 @@ void ListJob::execute()
{
// We'll wait for the connectionResult signal from the account.
kdDebug(5006) << "ListJob - waiting for connection" << endl;
- connect( mAccount, SIGNAL( connectionResult(int, const QString&) ),
- this, SLOT( slotConnectionResult(int, const QString&) ) );
+ connect( mAccount, TQT_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
return;
}
// this is needed until we have a common base class for d(imap)
@@ -109,8 +109,8 @@ void ListJob::execute()
jd.curNamespace = mNamespace;
if ( mParentProgressItem )
{
- QString escapedStatus = mDestFolder ? QStyleSheet::escape( mDestFolder->prettyURL() )
- : QString::null;
+ TQString escapedStatus = mDestFolder ? TQStyleSheet::escape( mDestFolder->prettyURL() )
+ : TQString::null;
jd.progressItem = ProgressManager::createProgressItem(
mParentProgressItem,
"ListDir" + ProgressManager::getUniqueID(),
@@ -122,14 +122,14 @@ void ListJob::execute()
}
// make the URL
- QString ltype = "LIST";
+ TQString ltype = "LIST";
if ( mType == ImapAccountBase::ListSubscribed ||
mType == ImapAccountBase::ListFolderOnlySubscribed )
ltype = "LSUB";
else if ( mType == ImapAccountBase::ListSubscribedNoCheck )
ltype = "LSUBNOCHECK";
- QString section;
+ TQString section;
if ( mComplete )
section = ";SECTION=COMPLETE";
else if ( mType == ImapAccountBase::ListFolderOnly ||
@@ -145,13 +145,13 @@ void ListJob::execute()
KIO::SimpleJob *job = KIO::listDir( url, false );
KIO::Scheduler::assignJobToSlave( mAccount->slave(), job );
mAccount->insertJob( job, jd );
- connect( job, SIGNAL(result(KIO::Job *)),
- this, SLOT(slotListResult(KIO::Job *)) );
- connect( job, SIGNAL(entries(KIO::Job *, const KIO::UDSEntryList &)),
- this, SLOT(slotListEntries(KIO::Job *, const KIO::UDSEntryList &)) );
+ connect( job, TQT_SIGNAL(result(KIO::Job *)),
+ this, TQT_SLOT(slotListResult(KIO::Job *)) );
+ connect( job, TQT_SIGNAL(entries(KIO::Job *, const KIO::UDSEntryList &)),
+ this, TQT_SLOT(slotListEntries(KIO::Job *, const KIO::UDSEntryList &)) );
}
-void ListJob::slotConnectionResult( int errorCode, const QString& errorMsg )
+void ListJob::slotConnectionResult( int errorCode, const TQString& errorMsg )
{
Q_UNUSED( errorMsg );
if ( !errorCode )
@@ -196,15 +196,15 @@ void ListJob::slotListEntries( KIO::Job* job, const KIO::UDSEntryList& uds )
}
if( (*it).progressItem )
(*it).progressItem->setProgress( 50 );
- QString name;
+ TQString name;
KURL url;
- QString mimeType;
- QString attributes;
+ TQString mimeType;
+ TQString attributes;
for ( KIO::UDSEntryList::ConstIterator udsIt = uds.begin();
udsIt != uds.end(); udsIt++ )
{
- mimeType = QString::null;
- attributes = QString::null;
+ mimeType = TQString::null;
+ attributes = TQString::null;
for ( KIO::UDSEntry::ConstIterator eIt = (*udsIt).begin();
eIt != (*udsIt).end(); eIt++ )
{