summaryrefslogtreecommitdiffstats
path: root/kmail/annotationjobs.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
commit86d8364ac704bdc8ad2dfcf52307d9626cfac567 (patch)
tree97d3ac2c2f60780d9a1de4f82caac7cb27534501 /kmail/annotationjobs.cpp
parenta9bde819f2b421dcc44741156e75eca4bb5fb4f4 (diff)
downloadtdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.tar.gz
tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kmail/annotationjobs.cpp')
-rw-r--r--kmail/annotationjobs.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kmail/annotationjobs.cpp b/kmail/annotationjobs.cpp
index 6fb6645e9..6aa4d932d 100644
--- a/kmail/annotationjobs.cpp
+++ b/kmail/annotationjobs.cpp
@@ -34,21 +34,21 @@
using namespace KMail;
-KIO::SimpleJob* AnnotationJobs::setAnnotation(
- KIO::Slave* slave, const KURL& url, const TQString& entry,
+TDEIO::SimpleJob* AnnotationJobs::setAnnotation(
+ TDEIO::Slave* slave, const KURL& url, const TQString& entry,
const TQMap<TQString,TQString>& attributes )
{
TQByteArray packedArgs;
TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'M' << (int)'S' << url << entry << attributes;
- KIO::SimpleJob* job = KIO::special( url, packedArgs, false );
- KIO::Scheduler::assignJobToSlave( slave, job );
+ TDEIO::SimpleJob* job = TDEIO::special( url, packedArgs, false );
+ TDEIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
AnnotationJobs::GetAnnotationJob* AnnotationJobs::getAnnotation(
- KIO::Slave* slave, const KURL& url, const TQString& entry,
+ TDEIO::Slave* slave, const KURL& url, const TQString& entry,
const TQStringList& attributes )
{
TQByteArray packedArgs;
@@ -56,21 +56,21 @@ AnnotationJobs::GetAnnotationJob* AnnotationJobs::getAnnotation(
stream << (int)'M' << (int)'G' << url << entry << attributes;
GetAnnotationJob* job = new GetAnnotationJob( url, entry, packedArgs, false );
- KIO::Scheduler::assignJobToSlave( slave, job );
+ TDEIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
AnnotationJobs::GetAnnotationJob::GetAnnotationJob( const KURL& url, const TQString& entry,
const TQByteArray &packedArgs,
bool showProgressInfo )
- : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
+ : TDEIO::SimpleJob( url, TDEIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
mEntry( entry )
{
- connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
- TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(TDEIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(TDEIO::Job*,const TQString&)) );
}
-void AnnotationJobs::GetAnnotationJob::slotInfoMessage( KIO::Job*, const TQString& str )
+void AnnotationJobs::GetAnnotationJob::slotInfoMessage( TDEIO::Job*, const TQString& str )
{
// Parse the result
TQStringList lst = TQStringList::split( "\r", str );
@@ -83,8 +83,8 @@ void AnnotationJobs::GetAnnotationJob::slotInfoMessage( KIO::Job*, const TQStrin
}
AnnotationJobs::MultiGetAnnotationJob::MultiGetAnnotationJob(
- KIO::Slave* slave, const KURL& url, const TQStringList& entries, bool showProgressInfo )
- : KIO::Job( showProgressInfo ),
+ TDEIO::Slave* slave, const KURL& url, const TQStringList& entries, bool showProgressInfo )
+ : TDEIO::Job( showProgressInfo ),
mSlave( slave ),
mUrl( url ), mEntryList( entries ), mEntryListIterator( mEntryList.begin() )
{
@@ -97,17 +97,17 @@ void AnnotationJobs::MultiGetAnnotationJob::slotStart()
if ( mEntryListIterator != mEntryList.end() ) {
TQStringList attributes;
attributes << "value";
- KIO::Job* job = getAnnotation( mSlave, mUrl, *mEntryListIterator, attributes );
+ TDEIO::Job* job = getAnnotation( mSlave, mUrl, *mEntryListIterator, attributes );
addSubjob( job );
} else { // done!
emitResult();
}
}
-void AnnotationJobs::MultiGetAnnotationJob::slotResult( KIO::Job *job )
+void AnnotationJobs::MultiGetAnnotationJob::slotResult( TDEIO::Job *job )
{
if ( job->error() ) {
- KIO::Job::slotResult( job ); // will set the error and emit result(this)
+ TDEIO::Job::slotResult( job ); // will set the error and emit result(this)
return;
}
subjobs.remove( job );
@@ -130,7 +130,7 @@ void AnnotationJobs::MultiGetAnnotationJob::slotResult( KIO::Job *job )
slotStart();
}
-AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( KIO::Slave* slave, const KURL& url, const TQStringList& entries )
+AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( TDEIO::Slave* slave, const KURL& url, const TQStringList& entries )
{
return new MultiGetAnnotationJob( slave, url, entries, false /*showProgressInfo*/ );
}
@@ -138,8 +138,8 @@ AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( KIO::
////
AnnotationJobs::MultiSetAnnotationJob::MultiSetAnnotationJob(
- KIO::Slave* slave, const KURL& url, const AnnotationList& annotations, bool showProgressInfo )
- : KIO::Job( showProgressInfo ),
+ TDEIO::Slave* slave, const KURL& url, const AnnotationList& annotations, bool showProgressInfo )
+ : TDEIO::Job( showProgressInfo ),
mSlave( slave ),
mUrl( url ), mAnnotationList( annotations ), mAnnotationListIterator( mAnnotationList.begin() )
{
@@ -156,17 +156,17 @@ void AnnotationJobs::MultiSetAnnotationJob::slotStart()
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 );
+ TDEIO::Job* job = setAnnotation( mSlave, mUrl, attr.entry, attributes );
addSubjob( job );
} else { // done!
emitResult();
}
}
-void AnnotationJobs::MultiSetAnnotationJob::slotResult( KIO::Job *job )
+void AnnotationJobs::MultiSetAnnotationJob::slotResult( TDEIO::Job *job )
{
if ( job->error() ) {
- KIO::Job::slotResult( job ); // will set the error and emit result(this)
+ TDEIO::Job::slotResult( job ); // will set the error and emit result(this)
return;
}
subjobs.remove( job );
@@ -179,17 +179,17 @@ void AnnotationJobs::MultiSetAnnotationJob::slotResult( KIO::Job *job )
}
AnnotationJobs::MultiSetAnnotationJob* AnnotationJobs::multiSetAnnotation(
- KIO::Slave* slave, const KURL& url, const AnnotationList& annotations )
+ TDEIO::Slave* slave, const KURL& url, const AnnotationList& annotations )
{
return new MultiSetAnnotationJob( slave, url, annotations, false /*showProgressInfo*/ );
}
-AnnotationJobs::MultiUrlGetAnnotationJob::MultiUrlGetAnnotationJob( KIO::Slave* slave,
+AnnotationJobs::MultiUrlGetAnnotationJob::MultiUrlGetAnnotationJob( TDEIO::Slave* slave,
const KURL& baseUrl,
const TQStringList& paths,
const TQString& annotation )
- : KIO::Job( false ),
+ : TDEIO::Job( false ),
mSlave( slave ),
mUrl( baseUrl ),
mPathList( paths ),
@@ -207,17 +207,17 @@ void AnnotationJobs::MultiUrlGetAnnotationJob::slotStart()
attributes << "value";
KURL url(mUrl);
url.setPath( *mPathListIterator );
- KIO::Job* job = getAnnotation( mSlave, url, mAnnotation, attributes );
+ TDEIO::Job* job = getAnnotation( mSlave, url, mAnnotation, attributes );
addSubjob( job );
} else { // done!
emitResult();
}
}
-void AnnotationJobs::MultiUrlGetAnnotationJob::slotResult( KIO::Job *job )
+void AnnotationJobs::MultiUrlGetAnnotationJob::slotResult( TDEIO::Job *job )
{
if ( job->error() ) {
- KIO::Job::slotResult( job ); // will set the error and emit result(this)
+ TDEIO::Job::slotResult( job ); // will set the error and emit result(this)
return;
}
subjobs.remove( job );
@@ -241,7 +241,7 @@ TQMap<TQString, TQString> AnnotationJobs::MultiUrlGetAnnotationJob::annotations(
return mAnnotations;
}
-AnnotationJobs::MultiUrlGetAnnotationJob* AnnotationJobs::multiUrlGetAnnotation( KIO::Slave* slave,
+AnnotationJobs::MultiUrlGetAnnotationJob* AnnotationJobs::multiUrlGetAnnotation( TDEIO::Slave* slave,
const KURL& baseUrl,
const TQStringList& paths,
const TQString& annotation )