summaryrefslogtreecommitdiffstats
path: root/libkpimexchange/core/exchangemonitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkpimexchange/core/exchangemonitor.cpp')
-rw-r--r--libkpimexchange/core/exchangemonitor.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libkpimexchange/core/exchangemonitor.cpp b/libkpimexchange/core/exchangemonitor.cpp
index c9f8c627..531a2417 100644
--- a/libkpimexchange/core/exchangemonitor.cpp
+++ b/libkpimexchange/core/exchangemonitor.cpp
@@ -129,11 +129,11 @@ ExchangeMonitor::~ExchangeMonitor()
if ( ! mSubscriptionMap.isEmpty() ) {
TQString headers = "Subscription-ID: " + makeIDString( mSubscriptionMap.keys() );
kdDebug() << "Subsubscribing all watches, headers:" << endl << headers << endl;
- KIO::DavJob *job = new KIO::DavJob( mAccount->calendarURL(), (int) KIO::DAV_UNSUBSCRIBE, TQString(), false );
+ TDEIO::DavJob *job = new TDEIO::DavJob( mAccount->calendarURL(), (int) TDEIO::DAV_UNSUBSCRIBE, TQString(), false );
job->addMetaData( "customHTTPHeader", headers );
// Can't do, this is a destructor!
// job->addMetaData( "PropagateHttpHeader", "true" );
- // connect(job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotUnsubscribeResult(KIO::Job *)));
+ // connect(job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(slotUnsubscribeResult(TDEIO::Job *)));
}
kdDebug() << "Finished ExchangeMonitor destructor" << endl;
@@ -158,10 +158,10 @@ void ExchangeMonitor::addWatch( const KURL &url, int mode, int depth )
kdDebug() << "Headers: " << headers << endl;
KURL myURL = toDAV( url );
- KIO::DavJob *job = new KIO::DavJob( myURL, (int) KIO::DAV_SUBSCRIBE, TQString(), false );
+ TDEIO::DavJob *job = new TDEIO::DavJob( myURL, (int) TDEIO::DAV_SUBSCRIBE, TQString(), false );
job->addMetaData( "customHTTPHeader", headers );
job->addMetaData( "PropagateHttpHeader", "true" );
- connect(job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotSubscribeResult(KIO::Job *)));
+ connect(job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(slotSubscribeResult(TDEIO::Job *)));
}
void ExchangeMonitor::removeWatch( const KURL &url )
@@ -179,13 +179,13 @@ void ExchangeMonitor::removeWatch( const KURL &url )
void ExchangeMonitor::removeWatch( ID id )
{
- KIO::DavJob *job = new KIO::DavJob( mAccount->calendarURL(), (int) KIO::DAV_UNSUBSCRIBE, TQString(), false );
+ TDEIO::DavJob *job = new TDEIO::DavJob( mAccount->calendarURL(), (int) TDEIO::DAV_UNSUBSCRIBE, TQString(), false );
job->addMetaData( "customHTTPHeader", "Subscription-id: " + TQString::number( id ));
job->addMetaData( "PropagateHttpHeader", "true" );
- connect(job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotUnsubscribeResult(KIO::Job *)));
+ connect(job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(slotUnsubscribeResult(TDEIO::Job *)));
}
-void ExchangeMonitor::slotSubscribeResult( KIO::Job * job )
+void ExchangeMonitor::slotSubscribeResult( TDEIO::Job * job )
{
if ( job->error() ) {
job->showErrorDialog( 0L );
@@ -245,7 +245,7 @@ void ExchangeMonitor::slotSubscribeResult( KIO::Job * job )
mSubscriptionMap.insert( id, url );
}
-void ExchangeMonitor::slotUnsubscribeResult( KIO::Job * job )
+void ExchangeMonitor::slotUnsubscribeResult( TDEIO::Job * job )
{
if ( job->error() ) {
job->showErrorDialog( 0L );
@@ -253,7 +253,7 @@ void ExchangeMonitor::slotUnsubscribeResult( KIO::Job * job )
return;
}
- TQDomDocument& response = static_cast<KIO::DavJob *>( job )->response();
+ TQDomDocument& response = static_cast<TDEIO::DavJob *>( job )->response();
kdDebug() << "UNSUBSCRIBE result: " << endl << response.toString() << endl;
TQDomElement status = response.documentElement().namedItem( "response" ).namedItem( "status" ).toElement();
@@ -321,19 +321,19 @@ void ExchangeMonitor::poll( const IDList& IDs ) {
// }
// confirm it
- KIO::DavJob *job = new KIO::DavJob( mAccount->calendarURL(), (int) KIO::DAV_POLL, TQString(), false );
+ TDEIO::DavJob *job = new TDEIO::DavJob( mAccount->calendarURL(), (int) TDEIO::DAV_POLL, TQString(), false );
job->addMetaData( "customHTTPHeader", "Subscription-ID: " + makeIDString( IDs ) );
- connect(job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotPollResult(KIO::Job *)));
+ connect(job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(slotPollResult(TDEIO::Job *)));
}
-void ExchangeMonitor::slotPollResult( KIO::Job * job )
+void ExchangeMonitor::slotPollResult( TDEIO::Job * job )
{
if ( job->error() ) {
job->showErrorDialog( 0L );
emit error( ExchangeClient::CommunicationError, "IO Error: " + TQString::number(job->error()) + ":" + job->errorString() );
return;
}
- TQDomDocument& response = static_cast<KIO::DavJob *>( job )->response();
+ TQDomDocument& response = static_cast<TDEIO::DavJob *>( job )->response();
kdDebug() << "POLL result: " << endl << response.toString() << endl;
// Multiple results!
@@ -366,12 +366,12 @@ void ExchangeMonitor::slotRenewTimer()
{
kdDebug() << "ExchangeMonitor::slotRenewTimer()" << endl;
- KIO::DavJob *job = new KIO::DavJob( mAccount->calendarURL(), (int) KIO::DAV_SUBSCRIBE, TQString(), false );
+ TDEIO::DavJob *job = new TDEIO::DavJob( mAccount->calendarURL(), (int) TDEIO::DAV_SUBSCRIBE, TQString(), false );
job->addMetaData( "customHTTPHeader", "Subscription-id: " + makeIDString( mSubscriptionMap.keys() ) );
- connect(job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotRenewResult(KIO::Job *)));
+ connect(job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(slotRenewResult(TDEIO::Job *)));
}
-void ExchangeMonitor::slotRenewResult( KIO::Job* job )
+void ExchangeMonitor::slotRenewResult( TDEIO::Job* job )
{
if ( job->error() ) {
job->showErrorDialog( 0L );