diff options
Diffstat (limited to 'libkpimexchange/core/exchangeaccount.cpp')
-rw-r--r-- | libkpimexchange/core/exchangeaccount.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libkpimexchange/core/exchangeaccount.cpp b/libkpimexchange/core/exchangeaccount.cpp index a974f2645..01ca1f02c 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; |