diff options
Diffstat (limited to 'kioslaves/sieve/sieve.cpp')
-rw-r--r-- | kioslaves/sieve/sieve.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kioslaves/sieve/sieve.cpp b/kioslaves/sieve/sieve.cpp index bc7811662..6d2f90b8b 100644 --- a/kioslaves/sieve/sieve.cpp +++ b/kioslaves/sieve/sieve.cpp @@ -245,14 +245,14 @@ bool kio_sieveProtocol::parseCapabilities(bool requestCapabilities/* = false*/) ksDebug() << "Looping receive" << endl; if (r.getType() == kio_sieveResponse::ACTION) { - if ( r.getAction().contains("ok", false) != -1 ) { + if ( r.getAction().tqcontains("ok", false) != -1 ) { ksDebug() << "Sieve server ready & awaiting authentication." << endl; break; } else ksDebug() << "Unknown action " << r.getAction() << "." << endl; } else if (r.getKey() == "IMPLEMENTATION") { - if (r.getVal().contains("sieve", false) != -1) { + if (r.getVal().tqcontains("sieve", false) != -1) { ksDebug() << "Connected to Sieve server: " << r.getVal() << endl; ret = true; setMetaData("implementation", r.getVal()); @@ -876,7 +876,7 @@ void kio_sieveProtocol::stat(const KURL& url) while(receiveData()) { if (r.getType() == kio_sieveResponse::ACTION) { - if (r.getAction().contains("OK", false) == 1) + if (r.getAction().tqcontains("OK", false) == 1) // Script list completed break; @@ -929,7 +929,7 @@ void kio_sieveProtocol::listDir(const KURL& url) while(receiveData()) { if (r.getType() == kio_sieveResponse::ACTION) { - if (r.getAction().contains("OK", false) == 1) + if (r.getAction().tqcontains("OK", false) == 1) // Script list completed. break; @@ -1082,13 +1082,13 @@ bool kio_sieveProtocol::authenticate() ksDebug() << "Preferred authentication method is " << mechusing << "." << endl; - TQString firstCommand = "AUTHENTICATE \"" + TQString::fromLatin1( mechusing ) + "\""; + TQString firstCommand = "AUTHENTICATE \"" + TQString::tqfromLatin1( mechusing ) + "\""; tmp.setRawData( out, outlen ); KCodecs::base64Encode( tmp, challenge ); tmp.resetRawData( out, outlen ); if ( !challenge.isEmpty() ) { firstCommand += " \""; - firstCommand += TQString::fromLatin1( challenge.data(), challenge.size() ); + firstCommand += TQString::tqfromLatin1( challenge.data(), challenge.size() ); firstCommand += "\""; } @@ -1222,7 +1222,7 @@ bool kio_sieveProtocol::receiveData(bool waitForData, TQCString *reparse) buffer[SIEVE_DEFAULT_RECIEVE_BUFFER-1] = '\0'; // strip LF/CR - interpret = TQCString(buffer).left(qstrlen(buffer) - 2); + interpret = TQCString(buffer).left(tqstrlen(buffer) - 2); } else { interpret = reparse->copy(); |