diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch) | |
tree | 766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kioslaves/sieve | |
parent | 469cc56a805bd3d6940d54adbef554877c29853c (diff) | |
download | tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslaves/sieve')
-rw-r--r-- | kioslaves/sieve/sieve.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kioslaves/sieve/sieve.cpp b/kioslaves/sieve/sieve.cpp index 781e37ca5..8e6a5bcd7 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().tqcontains("ok", false) != -1 ) { + if ( r.getAction().contains("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().tqcontains("sieve", false) != -1) { + if (r.getVal().contains("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().tqcontains("OK", false) == 1) + if (r.getAction().contains("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().tqcontains("OK", false) == 1) + if (r.getAction().contains("OK", false) == 1) // Script list completed. break; @@ -1237,10 +1237,10 @@ bool kio_sieveProtocol::receiveData(bool waitForData, TQCString *reparse) { // expecting {quantity} start = 0; - end = interpret.tqfind("+}", start + 1); + end = interpret.find("+}", start + 1); // some older versions of Cyrus enclose the literal size just in { } instead of { +} if ( end == -1 ) - end = interpret.tqfind('}', start + 1); + end = interpret.find('}', start + 1); bool ok = false; r.setQuantity(interpret.mid(start + 1, end - start - 1).toUInt( &ok )); @@ -1263,7 +1263,7 @@ bool kio_sieveProtocol::receiveData(bool waitForData, TQCString *reparse) start = 0; - end = interpret.tqfind(34, start + 1); + end = interpret.find(34, start + 1); if (end == -1) { ksDebug() << "Possible insufficient buffer size." << endl; r.setKey(interpret.right(interpret.length() - start)); @@ -1272,7 +1272,7 @@ bool kio_sieveProtocol::receiveData(bool waitForData, TQCString *reparse) r.setKey(interpret.mid(start + 1, end - start - 1)); - start = interpret.tqfind(34, end + 1); + start = interpret.find(34, end + 1); if (start == -1) { if ((int)interpret.length() > end) // skip " and space @@ -1281,7 +1281,7 @@ bool kio_sieveProtocol::receiveData(bool waitForData, TQCString *reparse) return true; } - end = interpret.tqfind(34, start + 1); + end = interpret.find(34, start + 1); if (end == -1) { ksDebug() << "Possible insufficient buffer size." << endl; r.setVal(interpret.right(interpret.length() - start)); |