summaryrefslogtreecommitdiffstats
path: root/kmail/annotationjobs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/annotationjobs.cpp')
-rw-r--r--kmail/annotationjobs.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kmail/annotationjobs.cpp b/kmail/annotationjobs.cpp
index 314f01fa4..6b9cd8e86 100644
--- a/kmail/annotationjobs.cpp
+++ b/kmail/annotationjobs.cpp
@@ -35,11 +35,11 @@
using namespace KMail;
KIO::SimpleJob* AnnotationJobs::setAnnotation(
- KIO::Slave* slave, const KURL& url, const QString& entry,
- const QMap<QString,QString>& attributes )
+ KIO::Slave* slave, const KURL& url, const TQString& entry,
+ const TQMap<TQString,TQString>& attributes )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'M' << (int)'S' << url << entry << attributes;
KIO::SimpleJob* job = KIO::special( url, packedArgs, false );
@@ -48,11 +48,11 @@ KIO::SimpleJob* AnnotationJobs::setAnnotation(
}
AnnotationJobs::GetAnnotationJob* AnnotationJobs::getAnnotation(
- KIO::Slave* slave, const KURL& url, const QString& entry,
- const QStringList& attributes )
+ KIO::Slave* slave, const KURL& url, const TQString& entry,
+ const TQStringList& attributes )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'M' << (int)'G' << url << entry << attributes;
GetAnnotationJob* job = new GetAnnotationJob( url, entry, packedArgs, false );
@@ -60,42 +60,42 @@ AnnotationJobs::GetAnnotationJob* AnnotationJobs::getAnnotation(
return job;
}
-AnnotationJobs::GetAnnotationJob::GetAnnotationJob( const KURL& url, const QString& entry,
- const QByteArray &packedArgs,
+AnnotationJobs::GetAnnotationJob::GetAnnotationJob( const KURL& url, const TQString& entry,
+ const TQByteArray &packedArgs,
bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
mEntry( entry )
{
- connect( this, SIGNAL(infoMessage(KIO::Job*,const QString&)),
- SLOT(slotInfoMessage(KIO::Job*,const QString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
}
-void AnnotationJobs::GetAnnotationJob::slotInfoMessage( KIO::Job*, const QString& str )
+void AnnotationJobs::GetAnnotationJob::slotInfoMessage( KIO::Job*, const TQString& str )
{
// Parse the result
- QStringList lst = QStringList::split( "\r", str );
+ TQStringList lst = TQStringList::split( "\r", str );
while ( lst.count() >= 2 ) // we take items 2 by 2
{
- QString name = lst.front(); lst.pop_front();
- QString value = lst.front(); lst.pop_front();
+ TQString name = lst.front(); lst.pop_front();
+ TQString value = lst.front(); lst.pop_front();
mAnnotations.append( AnnotationAttribute( mEntry, name, value ) );
}
}
AnnotationJobs::MultiGetAnnotationJob::MultiGetAnnotationJob(
- KIO::Slave* slave, const KURL& url, const QStringList& entries, bool showProgressInfo )
+ KIO::Slave* slave, const KURL& url, const TQStringList& entries, bool showProgressInfo )
: KIO::Job( showProgressInfo ),
mSlave( slave ),
mUrl( url ), mEntryList( entries ), mEntryListIterator( mEntryList.begin() )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
void AnnotationJobs::MultiGetAnnotationJob::slotStart()
{
if ( mEntryListIterator != mEntryList.end() ) {
- QStringList attributes;
+ TQStringList attributes;
attributes << "value";
KIO::Job* job = getAnnotation( mSlave, mUrl, *mEntryListIterator, attributes );
addSubjob( job );
@@ -111,8 +111,8 @@ void AnnotationJobs::MultiGetAnnotationJob::slotResult( KIO::Job *job )
return;
}
subjobs.remove( job );
- const QString& entry = *mEntryListIterator;
- QString value;
+ const TQString& entry = *mEntryListIterator;
+ TQString value;
bool found = false;
GetAnnotationJob* getJob = static_cast<GetAnnotationJob *>( job );
const AnnotationList& lst = getJob->annotations();
@@ -130,7 +130,7 @@ void AnnotationJobs::MultiGetAnnotationJob::slotResult( KIO::Job *job )
slotStart();
}
-AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( KIO::Slave* slave, const KURL& url, const QStringList& entries )
+AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( KIO::Slave* slave, const KURL& url, const TQStringList& entries )
{
return new MultiGetAnnotationJob( slave, url, entries, false /*showProgressInfo*/ );
}
@@ -143,7 +143,7 @@ AnnotationJobs::MultiSetAnnotationJob::MultiSetAnnotationJob(
mSlave( slave ),
mUrl( url ), mAnnotationList( annotations ), mAnnotationListIterator( mAnnotationList.begin() )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
@@ -153,7 +153,7 @@ void AnnotationJobs::MultiSetAnnotationJob::slotStart()
const AnnotationAttribute& attr = *mAnnotationListIterator;
// setAnnotation can set multiple attributes for a given entry.
// So in theory we could group entries coming from our list. Bah.
- QMap<QString, QString> attributes;
+ TQMap<TQString, TQString> attributes;
attributes.insert( attr.name, attr.value );
kdDebug() << k_funcinfo << " setting annotation " << attr.entry << " " << attr.name << " " << attr.value << endl;
KIO::Job* job = setAnnotation( mSlave, mUrl, attr.entry, attributes );
@@ -187,8 +187,8 @@ AnnotationJobs::MultiSetAnnotationJob* AnnotationJobs::multiSetAnnotation(
AnnotationJobs::MultiUrlGetAnnotationJob::MultiUrlGetAnnotationJob( KIO::Slave* slave,
const KURL& baseUrl,
- const QStringList& paths,
- const QString& annotation )
+ const TQStringList& paths,
+ const TQString& annotation )
: KIO::Job( false ),
mSlave( slave ),
mUrl( baseUrl ),
@@ -196,14 +196,14 @@ AnnotationJobs::MultiUrlGetAnnotationJob::MultiUrlGetAnnotationJob( KIO::Slave*
mPathListIterator( mPathList.begin() ),
mAnnotation( annotation )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
void AnnotationJobs::MultiUrlGetAnnotationJob::slotStart()
{
if ( mPathListIterator != mPathList.end() ) {
- QStringList attributes;
+ TQStringList attributes;
attributes << "value";
KURL url(mUrl);
url.setPath( *mPathListIterator );
@@ -221,7 +221,7 @@ void AnnotationJobs::MultiUrlGetAnnotationJob::slotResult( KIO::Job *job )
return;
}
subjobs.remove( job );
- const QString& path = *mPathListIterator;
+ const TQString& path = *mPathListIterator;
GetAnnotationJob* getJob = static_cast<GetAnnotationJob *>( job );
const AnnotationList& lst = getJob->annotations();
for ( unsigned int i = 0 ; i < lst.size() ; ++ i ) {
@@ -236,15 +236,15 @@ void AnnotationJobs::MultiUrlGetAnnotationJob::slotResult( KIO::Job *job )
slotStart();
}
-QMap<QString, QString> AnnotationJobs::MultiUrlGetAnnotationJob::annotations() const
+TQMap<TQString, TQString> AnnotationJobs::MultiUrlGetAnnotationJob::annotations() const
{
return mAnnotations;
}
AnnotationJobs::MultiUrlGetAnnotationJob* AnnotationJobs::multiUrlGetAnnotation( KIO::Slave* slave,
const KURL& baseUrl,
- const QStringList& paths,
- const QString& annotation )
+ const TQStringList& paths,
+ const TQString& annotation )
{
return new MultiUrlGetAnnotationJob( slave, baseUrl, paths, annotation );
}