summaryrefslogtreecommitdiffstats
path: root/kresources/groupdav/groupdavglobals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/groupdav/groupdavglobals.cpp')
-rw-r--r--kresources/groupdav/groupdavglobals.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kresources/groupdav/groupdavglobals.cpp b/kresources/groupdav/groupdavglobals.cpp
index 896680e9e..5088bca96 100644
--- a/kresources/groupdav/groupdavglobals.cpp
+++ b/kresources/groupdav/groupdavglobals.cpp
@@ -37,7 +37,7 @@
#include <kio/davjob.h>
#include <kio/job.h>
-TQString GroupDavGlobals::extractFingerprint( KIO::Job *job, const TQString &/*jobData*/ )
+TQString GroupDavGlobals::extractFingerprint( TDEIO::Job *job, const TQString &/*jobData*/ )
{
const TQString& headers = job->queryMetaData( "HTTP-Headers" );
return WebdavHandler::getEtagFromHeaders( headers );
@@ -93,7 +93,7 @@ bool GroupDavGlobals::getFolderHasSubs( const TQDomNode &folderNode )
-KIO::Job *GroupDavGlobals::createListFoldersJob( const KURL &url )
+TDEIO::Job *GroupDavGlobals::createListFoldersJob( const KURL &url )
{
TQDomDocument doc;
TQDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
@@ -103,11 +103,11 @@ KIO::Job *GroupDavGlobals::createListFoldersJob( const KURL &url )
// WebdavHandler::addElement( doc, prop, "d:hassubs" );
kdDebug(7000) << "props: " << doc.toString() << endl;
- return KIO::davPropFind( url, doc, "1", false );
+ return TDEIO::davPropFind( url, doc, "1", false );
}
-KIO::TransferJob *GroupDavGlobals::createListItemsJob( const KURL &url )
+TDEIO::TransferJob *GroupDavGlobals::createListItemsJob( const KURL &url )
{
TQDomDocument doc;
TQDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" );
@@ -115,7 +115,7 @@ KIO::TransferJob *GroupDavGlobals::createListItemsJob( const KURL &url )
WebdavHandler::addDavElement( doc, prop, "getetag" );
// WebdavHandler::addDavElement( doc, prop, "getcontenttype" );
kdDebug(5800) << "props = "<< doc.toString() << endl;
- KIO::TransferJob *job = KIO::davPropFind( url, doc, "1", false );
+ TDEIO::TransferJob *job = TDEIO::davPropFind( url, doc, "1", false );
if ( job ) {
job->addMetaData( "accept", "text/xml" );
job->addMetaData( "customHTTPHeader", "accept-encoding: " );
@@ -124,11 +124,11 @@ KIO::TransferJob *GroupDavGlobals::createListItemsJob( const KURL &url )
}
-KIO::TransferJob *GroupDavGlobals::createDownloadJob( KPIM::GroupwareDataAdaptor *adaptor,
+TDEIO::TransferJob *GroupDavGlobals::createDownloadJob( KPIM::GroupwareDataAdaptor *adaptor,
const KURL &url, KPIM::FolderLister::ContentType /*ctype*/ )
{
kdDebug()<<"GroupDavGlobals::createDownloadJob, url="<<url.url()<<endl;
- KIO::TransferJob *job = KIO::get( url, false, false );
+ TDEIO::TransferJob *job = TDEIO::get( url, false, false );
if ( adaptor ) {
TQString mt = adaptor->mimeType();
job->addMetaData( "accept", mt );
@@ -138,7 +138,7 @@ kdDebug()<<"GroupDavGlobals::createDownloadJob, url="<<url.url()<<endl;
}
-KIO::Job *GroupDavGlobals::createRemoveJob( KPIM::GroupwareDataAdaptor *adaptor, const KURL &/*uploadurl*/,
+TDEIO::Job *GroupDavGlobals::createRemoveJob( KPIM::GroupwareDataAdaptor *adaptor, const KURL &/*uploadurl*/,
KPIM::GroupwareUploadItem *deletedItem )
{
if ( !deletedItem ) return 0;
@@ -147,10 +147,10 @@ KIO::Job *GroupDavGlobals::createRemoveJob( KPIM::GroupwareDataAdaptor *adaptor,
if ( adaptor ) {
adaptor->adaptUploadUrl( url );
}
- KIO::Job *delJob = 0;
+ TDEIO::Job *delJob = 0;
if ( !url.isEmpty() ) {
kdDebug(5700) << "Delete: " << url.url() << endl;
- delJob = KIO::file_delete( url, false );
+ delJob = TDEIO::file_delete( url, false );
}
if ( delJob && adaptor && adaptor->idMapper() ) {
kdDebug(5800 ) << "Adding If-Match metadata: " << adaptor->idMapper()->fingerprint( deletedItem->uid() ) << endl;
@@ -176,16 +176,16 @@ kdDebug() << "Deleting item at "<< url.url() << endl;
}
kdDebug(5700) << "Delete (Mod) : " << url.url() << endl;
}
- return KIO::file_del( urls, false, false );*/
+ return TDEIO::file_del( urls, false, false );*/
}
bool GroupDavGlobals::interpretListItemsJob( KPIM::GroupwareDataAdaptor *adaptor,
- KIO::Job *job )
+ TDEIO::Job *job )
{
- KIO::DavJob *davjob = dynamic_cast<KIO::DavJob *>(job);
+ TDEIO::DavJob *davjob = dynamic_cast<TDEIO::DavJob *>(job);
if ( !davjob ) {
return false;
@@ -225,7 +225,7 @@ bool GroupDavGlobals::interpretListItemsJob( KPIM::GroupwareDataAdaptor *adaptor
bool GroupDavGlobals::interpretCalendarDownloadItemsJob( KCal::CalendarAdaptor *adaptor,
- KIO::Job *job, const TQString &jobData )
+ TDEIO::Job *job, const TQString &jobData )
{
kdDebug(5800) << "GroupDavGlobals::interpretCalendarDownloadItemsJob, iCalendar=" << endl;
kdDebug(5800) << jobData << endl;
@@ -244,7 +244,7 @@ kdDebug(5800) << jobData << endl;
KCal::Incidence *inc = (raw.front())->clone();
if ( !inc ) return false;
- KIO::SimpleJob *sjob = dynamic_cast<KIO::SimpleJob *>(job);
+ TDEIO::SimpleJob *sjob = dynamic_cast<TDEIO::SimpleJob *>(job);
KURL remoteId;
if ( sjob ) remoteId = sjob->url();
TQString fingerprint = extractFingerprint( job, jobData );
@@ -259,7 +259,7 @@ kdDebug(5800) << jobData << endl;
bool GroupDavGlobals::interpretAddressBookDownloadItemsJob(
- KABC::AddressBookAdaptor *adaptor, KIO::Job *job, const TQString &jobData )
+ KABC::AddressBookAdaptor *adaptor, TDEIO::Job *job, const TQString &jobData )
{
kdDebug(5800) << "GroupDavGlobals::interpretAddressBookDownloadItemsJob, vCard=" << endl;
kdDebug(5800) << jobData << endl;
@@ -275,7 +275,7 @@ kdDebug(5800) << jobData << endl;
KABC::Addressee a = addrs.first();
- KIO::SimpleJob *sjob = dynamic_cast<KIO::SimpleJob*>(job);
+ TDEIO::SimpleJob *sjob = dynamic_cast<TDEIO::SimpleJob*>(job);
KURL remoteId;
if ( sjob ) remoteId = sjob->url();
TQString fingerprint = extractFingerprint( job, jobData );