summaryrefslogtreecommitdiffstats
path: root/kresources/slox/kabcresourceslox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/slox/kabcresourceslox.cpp')
-rw-r--r--kresources/slox/kabcresourceslox.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kresources/slox/kabcresourceslox.cpp b/kresources/slox/kabcresourceslox.cpp
index 6412de4a0..b83c0b957 100644
--- a/kresources/slox/kabcresourceslox.cpp
+++ b/kresources/slox/kabcresourceslox.cpp
@@ -40,7 +40,7 @@
using namespace KABC;
-ResourceSlox::ResourceSlox( const KConfig *config )
+ResourceSlox::ResourceSlox( const TDEConfig *config )
: ResourceCached( config ), SloxBase( this )
{
init();
@@ -115,12 +115,12 @@ ResourceSlox::~ResourceSlox()
kdDebug() << "KABC::~ResourceSlox() done" << endl;
}
-void ResourceSlox::readConfig( const KConfig * )
+void ResourceSlox::readConfig( const TDEConfig * )
{
mPrefs->readConfig();
}
-void ResourceSlox::writeConfig( KConfig *config )
+void ResourceSlox::writeConfig( TDEConfig *config )
{
kdDebug() << "ResourceSlox::writeConfig() " << endl;
kdDebug() << mPrefs->url() << endl;
@@ -206,11 +206,11 @@ bool ResourceSlox::asyncLoad()
kdDebug() << "REQUEST CONTACTS: \n" << doc.toString( 2 ) << endl;
- mDownloadJob = KIO::davPropFind( url, doc, "0", false );
- connect( mDownloadJob, TQT_SIGNAL( result( KIO::Job * ) ),
- TQT_SLOT( slotResult( KIO::Job * ) ) );
- connect( mDownloadJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
- TQT_SLOT( slotProgress( KIO::Job *, unsigned long ) ) );
+ mDownloadJob = TDEIO::davPropFind( url, doc, "0", false );
+ connect( mDownloadJob, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ TQT_SLOT( slotResult( TDEIO::Job * ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long ) ),
+ TQT_SLOT( slotProgress( TDEIO::Job *, unsigned long ) ) );
mDownloadProgress = KPIM::ProgressManager::instance()->createProgressItem(
KPIM::ProgressManager::getUniqueID(), i18n("Downloading contacts") );
@@ -223,7 +223,7 @@ bool ResourceSlox::asyncLoad()
return true;
}
-void ResourceSlox::slotResult( KIO::Job *job )
+void ResourceSlox::slotResult( TDEIO::Job *job )
{
kdDebug() << "ResourceSlox::slotResult()" << endl;
@@ -288,7 +288,7 @@ void ResourceSlox::slotResult( KIO::Job *job )
emit loadingFinished( this );
}
-void ResourceSlox::slotUploadResult( KIO::Job *job )
+void ResourceSlox::slotUploadResult( TDEIO::Job *job )
{
kdDebug() << "ResourceSlox::slotUploadResult()" << endl;
@@ -519,11 +519,11 @@ void ResourceSlox::uploadContacts()
url.setUser( mPrefs->user() );
url.setPass( mPrefs->password() );
- mUploadJob = KIO::davPropPatch( url, doc, false );
- connect( mUploadJob, TQT_SIGNAL( result( KIO::Job * ) ),
- TQT_SLOT( slotUploadResult( KIO::Job * ) ) );
- connect( mUploadJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
- TQT_SLOT( slotProgress( KIO::Job *, unsigned long ) ) );
+ mUploadJob = TDEIO::davPropPatch( url, doc, false );
+ connect( mUploadJob, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ TQT_SLOT( slotUploadResult( TDEIO::Job * ) ) );
+ connect( mUploadJob, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long ) ),
+ TQT_SLOT( slotProgress( TDEIO::Job *, unsigned long ) ) );
mUploadProgress = KPIM::ProgressManager::instance()->createProgressItem(
KPIM::ProgressManager::getUniqueID(), i18n("Uploading contacts") );
@@ -641,7 +641,7 @@ void KABC::ResourceSlox::createAddressFields( TQDomDocument &doc, TQDomElement &
WebdavHandler::addSloxElement( this, doc, parent, prefix + fieldName( Country ), addr.country() );
}
-void ResourceSlox::slotProgress( KIO::Job *job, unsigned long percent )
+void ResourceSlox::slotProgress( TDEIO::Job *job, unsigned long percent )
{
if ( mDownloadProgress && job == mDownloadJob )
mDownloadProgress->setProgress( percent );