From 86d8364ac704bdc8ad2dfcf52307d9626cfac567 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:37:21 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- libkpimexchange/core/exchangeaccount.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libkpimexchange/core/exchangeaccount.cpp') diff --git a/libkpimexchange/core/exchangeaccount.cpp b/libkpimexchange/core/exchangeaccount.cpp index 0f15b1005..7b67a5529 100644 --- a/libkpimexchange/core/exchangeaccount.cpp +++ b/libkpimexchange/core/exchangeaccount.cpp @@ -179,7 +179,7 @@ bool ExchangeAccount::authenticate( int windowId ) kdDebug() << "Authenticating to base URL: " << baseURL().prettyURL() << endl; - KIO::AuthInfo info; + TDEIO::AuthInfo info; info.url = baseURL(); info.username = mAccount; info.password = mPassword; @@ -194,7 +194,7 @@ bool ExchangeAccount::authenticate( int windowId ) stream << info << windowId; dcopClient->send( "kded", "kpasswdserver", - "addAuthInfo(KIO::AuthInfo, long int)", params ); + "addAuthInfo(TDEIO::AuthInfo, long int)", params ); dcopClient->detach(); delete dcopClient; @@ -237,13 +237,13 @@ void ExchangeAccount::calcFolderURLs() mError = false; - KIO::DavJob* job = KIO::davPropFind( baseURL(), doc, "1", false ); + TDEIO::DavJob* job = TDEIO::davPropFind( baseURL(), doc, "1", false ); job->addMetaData( "errorPage", "false" ); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), - TQT_SLOT( slotFolderResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), + TQT_SLOT( slotFolderResult( TDEIO::Job * ) ) ); } -void ExchangeAccount::slotFolderResult( KIO::Job *job ) +void ExchangeAccount::slotFolderResult( TDEIO::Job *job ) { kdDebug() << "ExchangeAccount::slotFolderResult()" << endl; if ( job->error() ) { @@ -254,7 +254,7 @@ void ExchangeAccount::slotFolderResult( KIO::Job *job ) mError = true; return; } - TQDomDocument &response = static_cast( job )->response(); + TQDomDocument &response = static_cast( job )->response(); TQDomElement prop = response.documentElement().namedItem( "response" ) .namedItem( "propstat" ).namedItem( "prop" ).toElement(); @@ -297,14 +297,14 @@ TQString ExchangeAccount::tryMailbox( const TQString &_url, const TQString &user url.setPass( password ); TQString tmpFile; - if ( !KIO::NetAccess::download( url, tmpFile, 0 ) ) { + if ( !TDEIO::NetAccess::download( url, tmpFile, 0 ) ) { kdWarning() << "Trying to find mailbox failed: not able to download " << url.prettyURL() << endl; return TQString(); } TQFile file( tmpFile ); if ( !file.open( IO_ReadOnly ) ) { kdWarning() << "Trying to find mailbox failed: not able to open temp file " << tmpFile << endl; - KIO::NetAccess::removeTempFile( tmpFile ); + TDEIO::NetAccess::removeTempFile( tmpFile ); return TQString(); } @@ -332,7 +332,7 @@ TQString ExchangeAccount::tryMailbox( const TQString &_url, const TQString &user } file.close(); - KIO::NetAccess::removeTempFile( tmpFile ); + TDEIO::NetAccess::removeTempFile( tmpFile ); return result; } -- cgit v1.2.1