diff options
Diffstat (limited to 'kresources/lib/groupwaredataadaptor.cpp')
-rw-r--r-- | kresources/lib/groupwaredataadaptor.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kresources/lib/groupwaredataadaptor.cpp b/kresources/lib/groupwaredataadaptor.cpp index da012b158..85dacdaa8 100644 --- a/kresources/lib/groupwaredataadaptor.cpp +++ b/kresources/lib/groupwaredataadaptor.cpp @@ -49,7 +49,7 @@ kdDebug() << "Final Path for new item: " << u.url() << endl; } else return baseurl; } -KIO::TransferJob *GroupwareUploadItem::createRawUploadJob( +TDEIO::TransferJob *GroupwareUploadItem::createRawUploadJob( GroupwareDataAdaptor *adaptor, const KURL &/*baseurl*/ ) { Q_ASSERT( adaptor ); @@ -60,7 +60,7 @@ KIO::TransferJob *GroupwareUploadItem::createRawUploadJob( if ( adaptor ) adaptor->adaptUploadUrl( upUrl ); kdDebug(7000) << "Uploading to: " << upUrl.prettyURL() << endl; - KIO::TransferJob *job = KIO::storedPut( dta.utf8(), upUrl, -1, true, + TDEIO::TransferJob *job = TDEIO::storedPut( dta.utf8(), upUrl, -1, true, false, false ); job->addMetaData( "PropagateHttpHeader", "true" ); if ( adaptor ) { @@ -69,12 +69,12 @@ KIO::TransferJob *GroupwareUploadItem::createRawUploadJob( return job; } -KIO::TransferJob *GroupwareUploadItem::createUploadNewJob( +TDEIO::TransferJob *GroupwareUploadItem::createUploadNewJob( GroupwareDataAdaptor *adaptor, const KURL &baseurl ) { kdDebug()<<"GroupwareUploadItem::createUploadNewJob, baseurl=" << baseurl.url() << endl; setUrl( adaptNewItemUrl( adaptor, baseurl ) ); - KIO::TransferJob *job = createRawUploadJob( adaptor, baseurl ); + TDEIO::TransferJob *job = createRawUploadJob( adaptor, baseurl ); if ( job ) { kdDebug() << "Adding If-None-Match " << endl; TQString header; @@ -88,11 +88,11 @@ kdDebug()<<"GroupwareUploadItem::createUploadNewJob, baseurl=" << baseurl.url() return job; } -KIO::TransferJob *GroupwareUploadItem::createUploadJob( +TDEIO::TransferJob *GroupwareUploadItem::createUploadJob( GroupwareDataAdaptor *adaptor, const KURL &baseurl ) { kdDebug()<<"GroupwareUploadItem::createUploadJob" << endl; - KIO::TransferJob *job = createRawUploadJob( adaptor, baseurl ); + TDEIO::TransferJob *job = createRawUploadJob( adaptor, baseurl ); if ( job && adaptor ) { kdDebug()<<"Adding If-Match header: " << adaptor->idMapper()->fingerprint( uid() ) << endl; TQString header; @@ -131,22 +131,22 @@ FolderLister::Entry::List GroupwareDataAdaptor::defaultFolders() return FolderLister::Entry::List(); } -KIO::TransferJob *GroupwareDataAdaptor::createUploadJob( const KURL &url, +TDEIO::TransferJob *GroupwareDataAdaptor::createUploadJob( const KURL &url, GroupwareUploadItem *item ) { if ( item ) { - KIO::TransferJob *job = item->createUploadJob( this, url ); + TDEIO::TransferJob *job = item->createUploadJob( this, url ); setUidForJob( job, item->uid() ); return job; } else return 0; } -KIO::TransferJob *GroupwareDataAdaptor::createUploadNewJob( const KURL &url, +TDEIO::TransferJob *GroupwareDataAdaptor::createUploadNewJob( const KURL &url, GroupwareUploadItem *item ) { kdDebug()<<"GroupwareDataAdaptor::createUploadNewJob, url=" << url.url() << endl; if ( item ) { - KIO::TransferJob *job = item->createUploadNewJob( this, url ); + TDEIO::TransferJob *job = item->createUploadNewJob( this, url ); setUidForJob( job, item->uid() ); return job; } else return 0; @@ -190,10 +190,10 @@ void GroupwareDataAdaptor::processDownloadListItem( const KURL &entry, } } -bool GroupwareDataAdaptor::interpretRemoveJob( KIO::Job *job, const TQString &/*jobData*/ ) +bool GroupwareDataAdaptor::interpretRemoveJob( TDEIO::Job *job, const TQString &/*jobData*/ ) { if ( !job ) return false; - KIO::DeleteJob *deljob = dynamic_cast<KIO::DeleteJob*>(job); + TDEIO::DeleteJob *deljob = dynamic_cast<TDEIO::DeleteJob*>(job); bool error = job->error(); const TQString err = job->errorString(); @@ -214,10 +214,10 @@ bool GroupwareDataAdaptor::interpretRemoveJob( KIO::Job *job, const TQString &/* } -bool GroupwareDataAdaptor::interpretUploadJob( KIO::Job *job, const TQString &/*jobData*/ ) +bool GroupwareDataAdaptor::interpretUploadJob( TDEIO::Job *job, const TQString &/*jobData*/ ) { kdDebug(7000) << "GroupwareDataAdaptor::interpretUploadJob " << endl; - KIO::TransferJob *trfjob = dynamic_cast<KIO::TransferJob*>(job); + TDEIO::TransferJob *trfjob = dynamic_cast<TDEIO::TransferJob*>(job); bool error = job->error(); const TQString err = job->errorString(); @@ -236,11 +236,11 @@ bool GroupwareDataAdaptor::interpretUploadJob( KIO::Job *job, const TQString &/* } } -bool GroupwareDataAdaptor::interpretUploadNewJob( KIO::Job *job, const TQString &/*jobData*/ ) +bool GroupwareDataAdaptor::interpretUploadNewJob( TDEIO::Job *job, const TQString &/*jobData*/ ) { // TODO: How does the incidence mapper know the old/new ids??? kdDebug(7000) << "GroupwareDataAdaptor::interpretUploadNewJob " << endl; - KIO::TransferJob *trfjob = dynamic_cast<KIO::TransferJob*>(job); + TDEIO::TransferJob *trfjob = dynamic_cast<TDEIO::TransferJob*>(job); bool error = job->error(); const TQString err = job->errorString(); @@ -259,7 +259,7 @@ bool GroupwareDataAdaptor::interpretUploadNewJob( KIO::Job *job, const TQString } } -TQString GroupwareDataAdaptor::uidFromJob( KIO::Job *job ) const +TQString GroupwareDataAdaptor::uidFromJob( TDEIO::Job *job ) const { kdDebug()<<"GroupwareDataAdaptor::uidFromJob( "<<job<<")"<<endl; if ( mJobUIDMap.contains( job ) ) { @@ -270,7 +270,7 @@ kdDebug()<<"GroupwareDataAdaptor::uidFromJob( "<<job<<")"<<endl; } } -void GroupwareDataAdaptor::setUidForJob( KIO::Job *job, const TQString &uid ) +void GroupwareDataAdaptor::setUidForJob( TDEIO::Job *job, const TQString &uid ) { if ( uid.isEmpty() ) { mJobUIDMap.remove( job ); |