From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkpimexchange/core/exchangedelete.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'libkpimexchange/core/exchangedelete.cpp') diff --git a/libkpimexchange/core/exchangedelete.cpp b/libkpimexchange/core/exchangedelete.cpp index 8495afa36..f88b22efd 100644 --- a/libkpimexchange/core/exchangedelete.cpp +++ b/libkpimexchange/core/exchangedelete.cpp @@ -18,8 +18,8 @@ Boston, MA 02110-1301, USA. */ -#include -#include +#include +#include #include #include @@ -48,7 +48,7 @@ using namespace KPIM; // recurrent appointments? Maybe, so we just look for Master or Single // instancetypes -ExchangeDelete::ExchangeDelete( KCal::Event* event, ExchangeAccount* account, QWidget* window ) : +ExchangeDelete::ExchangeDelete( KCal::Event* event, ExchangeAccount* account, TQWidget* window ) : mWindow( window ) { kdDebug() << "Created ExchangeDelete" << endl; @@ -63,9 +63,9 @@ ExchangeDelete::~ExchangeDelete() kdDebug() << "ExchangeDelete destructor" << endl; } -void ExchangeDelete::findUidSingleMaster( QString const& uid ) +void ExchangeDelete::findUidSingleMaster( TQString const& uid ) { - QString query = + TQString query = "SELECT \"DAV:href\", \"urn:schemas:calendar:uid\"\r\n" "FROM Scope('shallow traversal of \"\"')\r\n" "WHERE \"urn:schemas:calendar:uid\" = '" + uid + "'\r\n" @@ -74,27 +74,27 @@ void ExchangeDelete::findUidSingleMaster( QString const& uid ) KIO::DavJob* job = KIO::davSearch( mAccount->calendarURL(), "DAV:", "sql", query, false ); job->setWindow( mWindow ); - connect(job, SIGNAL(result( KIO::Job * )), this, SLOT(slotFindUidResult(KIO::Job *))); + connect(job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotFindUidResult(KIO::Job *))); } void ExchangeDelete::slotFindUidResult( KIO::Job * job ) { if ( job->error() ) { job->showErrorDialog( 0L ); - emit finished( this, ExchangeClient::CommunicationError, "IO Error: " + QString::number(job->error()) + ":" + job->errorString() ); + emit finished( this, ExchangeClient::CommunicationError, "IO Error: " + TQString::number(job->error()) + ":" + job->errorString() ); return; } - QDomDocument& response = static_cast( job )->response(); + TQDomDocument& response = static_cast( job )->response(); - QDomElement item = response.documentElement().firstChild().toElement(); - QDomElement hrefElement = item.namedItem( "href" ).toElement(); + TQDomElement item = response.documentElement().firstChild().toElement(); + TQDomElement hrefElement = item.namedItem( "href" ).toElement(); if ( item.isNull() || hrefElement.isNull() ) { // Not found emit finished( this, ExchangeClient::DeleteUnknownEventError, "UID of event to be deleted not found on server\n"+response.toString() ); return; } // Found the appointment's URL - QString href = hrefElement.text(); + TQString href = hrefElement.text(); KURL url(href); startDelete( toDAV( url ) ); @@ -104,7 +104,7 @@ void ExchangeDelete::startDelete( const KURL& url ) { KIO::SimpleJob* job = KIO::file_delete( url, false ); // no GUI job->setWindow( mWindow ); - connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotDeleteResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotDeleteResult( KIO::Job * ) ) ); } void ExchangeDelete::slotDeleteResult( KIO::Job* job ) @@ -112,10 +112,10 @@ void ExchangeDelete::slotDeleteResult( KIO::Job* job ) kdDebug() << "Finished Delete" << endl; if ( job->error() ) { job->showErrorDialog( 0L ); - emit finished( this, ExchangeClient::CommunicationError, "IO Error: " + QString::number(job->error()) + ":" + job->errorString() ); + emit finished( this, ExchangeClient::CommunicationError, "IO Error: " + TQString::number(job->error()) + ":" + job->errorString() ); return; } - emit finished( this, ExchangeClient::ResultOK, QString::null ); + emit finished( this, ExchangeClient::ResultOK, TQString::null ); } #include "exchangedelete.moc" -- cgit v1.2.1