summaryrefslogtreecommitdiffstats
path: root/libkpimexchange/core/exchangedelete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkpimexchange/core/exchangedelete.cpp')
-rw-r--r--libkpimexchange/core/exchangedelete.cpp28
1 files changed, 14 insertions, 14 deletions
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 <qstring.h>
-#include <qregexp.h>
+#include <tqstring.h>
+#include <tqregexp.h>
#include <kurl.h>
#include <kdebug.h>
@@ -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<KIO::DavJob *>( job )->response();
+ TQDomDocument& response = static_cast<KIO::DavJob *>( 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"