summaryrefslogtreecommitdiffstats
path: root/libkpimexchange/core/exchangeaccount.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkpimexchange/core/exchangeaccount.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkpimexchange/core/exchangeaccount.cpp')
-rw-r--r--libkpimexchange/core/exchangeaccount.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libkpimexchange/core/exchangeaccount.cpp b/libkpimexchange/core/exchangeaccount.cpp
index a974f264..01ca1f02 100644
--- a/libkpimexchange/core/exchangeaccount.cpp
+++ b/libkpimexchange/core/exchangeaccount.cpp
@@ -217,7 +217,7 @@ void ExchangeAccount::calcFolderURLs()
{
kdDebug() << "ExchangeAccount::calcFolderURLs" << endl;
TQDomDocument doc;
- TQDomElement root = addElement( doc, doc, "DAV:", "propfind" );
+ TQDomElement root = addElement( doc, doc, "DAV:", "proptqfind" );
TQDomElement prop = addElement( doc, root, "DAV:", "prop" );
addElement( doc, prop, "urn:schemas:httpmail:", "calendar" );
// For later use:
@@ -299,13 +299,13 @@ TQString ExchangeAccount::tryMailbox( const TQString &_url, const TQString &user
TQString tmpFile;
if ( !KIO::NetAccess::download( url, tmpFile, 0 ) ) {
kdWarning() << "Trying to find mailbox failed: not able to download " << url.prettyURL() << endl;
- return TQString::null;
+ 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 );
- return TQString::null;
+ return TQString();
}
TQTextStream stream( &file );
@@ -313,10 +313,10 @@ TQString ExchangeAccount::tryMailbox( const TQString &_url, const TQString &user
TQString result;
while ( !stream.eof() ) {
line = stream.readLine(); // line of text excluding '\n'
- int pos = line.find( "<BASE href=\"", 0, FALSE );
+ int pos = line.tqfind( "<BASE href=\"", 0, FALSE );
if ( pos < 0 )
continue;
- int end = line.find( "\"", pos+12, FALSE );
+ int end = line.tqfind( "\"", pos+12, FALSE );
if ( pos < 0 ) {
kdWarning() << "Strange, found no closing quote in " << line << endl;
continue;