summaryrefslogtreecommitdiffstats
path: root/libkpimexchange/core/exchangeupload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkpimexchange/core/exchangeupload.cpp')
-rw-r--r--libkpimexchange/core/exchangeupload.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libkpimexchange/core/exchangeupload.cpp b/libkpimexchange/core/exchangeupload.cpp
index 50159fecf..4317a2565 100644
--- a/libkpimexchange/core/exchangeupload.cpp
+++ b/libkpimexchange/core/exchangeupload.cpp
@@ -139,7 +139,7 @@ void ExchangeUpload::tryExist()
kdDebug() << "Trying to see whether " << url.prettyURL() << " exists" << endl;
TQDomDocument doc;
- TQDomElement root = addElement( doc, doc, "DAV:", "proptqfind" );
+ TQDomElement root = addElement( doc, doc, "DAV:", "propfind" );
TQDomElement prop = addElement( doc, root, "DAV:", "prop" );
addElement( doc, prop, "DAV:", "displayname" );
addElement( doc, prop, "urn:schemas:calendar", "uid" );
@@ -256,7 +256,7 @@ void ExchangeUpload::startUpload( const KURL &url )
offsetString = TQString( "+%1:%2" ).tqarg(tzOffset/60, 2).tqarg( tzOffset%60, 2 );
else
offsetString = TQString( "-%1:%2" ).tqarg((-tzOffset)/60, 2).tqarg( (-tzOffset)%60, 2 );
- offsetString = offsetString.tqreplace( TQRegExp(" "), "0" );
+ offsetString = offsetString.replace( TQRegExp(" "), "0" );
kdDebug() << "Timezone offset: " << tzOffset << " : " << offsetString << endl;
kdDebug() << "ExchangeUpload::mTimeZoneId=" << mTimeZoneId << endl;
@@ -292,8 +292,8 @@ void ExchangeUpload::startUpload( const KURL &url )
KCal::ICalFormat *format = new KCal::ICalFormat();
TQString recurstr = format->toString( recurrence->defaultRRule() );
// Strip leading "RRULE\n :" and whitespace
- recurstr = recurstr.tqreplace( TQRegExp("^[A-Z]*[\\s]*:"), "").stripWhiteSpace();
- kdDebug() << "Recurrence rule after tqreplace: \"" << recurstr << "\"" << endl;
+ recurstr = recurstr.replace( TQRegExp("^[A-Z]*[\\s]*:"), "").stripWhiteSpace();
+ kdDebug() << "Recurrence rule after replace: \"" << recurstr << "\"" << endl;
delete format;
TQDomElement rrule = addElement( doc, prop, "urn:schemas:calendar:", "rrule" );
addElement( doc, rrule, "xml:", "v", recurstr );
@@ -360,8 +360,8 @@ void ExchangeUpload::slotPatchResult( KIO::Job *job )
.toElement();
kdDebug() << "status: " << status.text() << endl;
kdDebug() << "propstat: " << propstat.text() << endl;
- if ( ! ( status.text().tqcontains( "201" ) ||
- propstat.text().tqcontains( "200" ) ) )
+ if ( ! ( status.text().contains( "201" ) ||
+ propstat.text().contains( "200" ) ) )
emit finished( this, ExchangeClient::EventWriteError,
"Upload error response: \n" + response.toString() );
else