summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/imapparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/imap4/imapparser.cc')
-rw-r--r--kioslaves/imap4/imapparser.cc72
1 files changed, 36 insertions, 36 deletions
diff --git a/kioslaves/imap4/imapparser.cc b/kioslaves/imap4/imapparser.cc
index e4294bd06..0cd8938eb 100644
--- a/kioslaves/imap4/imapparser.cc
+++ b/kioslaves/imap4/imapparser.cc
@@ -273,7 +273,7 @@ imapParser::clientAuthenticate ( KIO::SlaveBase *slave, KIO::AuthInfo &ai,
TQString firstCommand = aAuth;
if ( !challenge.isEmpty() ) {
firstCommand += " ";
- firstCommand += TQString::fromLatin1( challenge.data(), challenge.size() );
+ firstCommand += TQString::tqfromLatin1( challenge.data(), challenge.size() );
}
cmd = sendCommand (new imapCommand ("AUTHENTICATE", firstCommand.latin1()));
@@ -349,11 +349,11 @@ imapParser::parseUntagged (parseString & result)
{
//the status responses
case 'B': // BAD or BYE
- if (qstrncmp(what, "BAD", what.size()) == 0)
+ if (tqstrncmp(what, "BAD", what.size()) == 0)
{
parseResult (what, result);
}
- else if (qstrncmp(what, "BYE", what.size()) == 0)
+ else if (tqstrncmp(what, "BYE", what.size()) == 0)
{
parseResult (what, result);
if ( sentQueue.count() ) {
@@ -370,7 +370,7 @@ imapParser::parseUntagged (parseString & result)
{
parseResult (what, result);
}
- else if (qstrncmp(what, "NAMESPACE", what.size()) == 0)
+ else if (tqstrncmp(what, "NAMESPACE", what.size()) == 0)
{
parseNamespace (result);
}
@@ -380,20 +380,20 @@ imapParser::parseUntagged (parseString & result)
if (what[1] == 'K' && what.size() == 2)
{
parseResult (what, result);
- } else if (qstrncmp(what, "OTHER-USER", 10) == 0) { // X-GET-OTHER-USER
+ } else if (tqstrncmp(what, "OTHER-USER", 10) == 0) { // X-GET-OTHER-USER
parseOtherUser (result);
- } else if (qstrncmp(what, "OUT-OF-OFFICE", 13) == 0) { // X-GET-OUT-OF-OFFICE
+ } else if (tqstrncmp(what, "OUT-OF-OFFICE", 13) == 0) { // X-GET-OUT-OF-OFFICE
parseOutOfOffice (result);
}
break;
case 'D':
- if (qstrncmp(what, "DELEGATE", 8) == 0) { // X-GET-DELEGATES
+ if (tqstrncmp(what, "DELEGATE", 8) == 0) { // X-GET-DELEGATES
parseDelegate (result);
}
break;
case 'P': // PREAUTH
- if (qstrncmp(what, "PREAUTH", what.size()) == 0)
+ if (tqstrncmp(what, "PREAUTH", what.size()) == 0)
{
parseResult (what, result);
currentState = ISTATE_LOGIN;
@@ -402,67 +402,67 @@ imapParser::parseUntagged (parseString & result)
// parse the other responses
case 'C': // CAPABILITY
- if (qstrncmp(what, "CAPABILITY", what.size()) == 0)
+ if (tqstrncmp(what, "CAPABILITY", what.size()) == 0)
{
parseCapability (result);
}
break;
case 'F': // FLAGS
- if (qstrncmp(what, "FLAGS", what.size()) == 0)
+ if (tqstrncmp(what, "FLAGS", what.size()) == 0)
{
parseFlags (result);
}
break;
case 'L': // LIST or LSUB or LISTRIGHTS
- if (qstrncmp(what, "LIST", what.size()) == 0)
+ if (tqstrncmp(what, "LIST", what.size()) == 0)
{
parseList (result);
}
- else if (qstrncmp(what, "LSUB", what.size()) == 0)
+ else if (tqstrncmp(what, "LSUB", what.size()) == 0)
{
parseLsub (result);
}
- else if (qstrncmp(what, "LISTRIGHTS", what.size()) == 0)
+ else if (tqstrncmp(what, "LISTRIGHTS", what.size()) == 0)
{
parseListRights (result);
}
break;
case 'M': // MYRIGHTS
- if (qstrncmp(what, "MYRIGHTS", what.size()) == 0)
+ if (tqstrncmp(what, "MYRIGHTS", what.size()) == 0)
{
parseMyRights (result);
}
break;
case 'S': // SEARCH or STATUS
- if (qstrncmp(what, "SEARCH", what.size()) == 0)
+ if (tqstrncmp(what, "SEARCH", what.size()) == 0)
{
parseSearch (result);
}
- else if (qstrncmp(what, "STATUS", what.size()) == 0)
+ else if (tqstrncmp(what, "STATUS", what.size()) == 0)
{
parseStatus (result);
}
break;
case 'A': // ACL or ANNOTATION
- if (qstrncmp(what, "ACL", what.size()) == 0)
+ if (tqstrncmp(what, "ACL", what.size()) == 0)
{
parseAcl (result);
}
- else if (qstrncmp(what, "ANNOTATION", what.size()) == 0)
+ else if (tqstrncmp(what, "ANNOTATION", what.size()) == 0)
{
parseAnnotation (result);
}
break;
case 'Q': // QUOTA or QUOTAROOT
- if ( what.size() > 5 && qstrncmp(what, "QUOTAROOT", what.size()) == 0)
+ if ( what.size() > 5 && tqstrncmp(what, "QUOTAROOT", what.size()) == 0)
{
parseQuotaRoot( result );
}
- else if (qstrncmp(what, "QUOTA", what.size()) == 0)
+ else if (tqstrncmp(what, "QUOTA", what.size()) == 0)
{
parseQuota( result );
}
@@ -485,18 +485,18 @@ imapParser::parseUntagged (parseString & result)
switch (what[0])
{
case 'E':
- if (qstrncmp(what, "EXISTS", what.size()) == 0)
+ if (tqstrncmp(what, "EXISTS", what.size()) == 0)
{
parseExists (number, result);
}
- else if (qstrncmp(what, "EXPUNGE", what.size()) == 0)
+ else if (tqstrncmp(what, "EXPUNGE", what.size()) == 0)
{
parseExpunge (number, result);
}
break;
case 'F':
- if (qstrncmp(what, "FETCH", what.size()) == 0)
+ if (tqstrncmp(what, "FETCH", what.size()) == 0)
{
seenUid = TQString::null;
parseFetch (number, result);
@@ -504,7 +504,7 @@ imapParser::parseUntagged (parseString & result)
break;
case 'S':
- if (qstrncmp(what, "STORE", what.size()) == 0) // deprecated store
+ if (tqstrncmp(what, "STORE", what.size()) == 0) // deprecated store
{
seenUid = TQString::null;
parseFetch (number, result);
@@ -512,7 +512,7 @@ imapParser::parseUntagged (parseString & result)
break;
case 'R':
- if (qstrncmp(what, "RECENT", what.size()) == 0)
+ if (tqstrncmp(what, "RECENT", what.size()) == 0)
{
parseRecent (number, result);
}
@@ -626,20 +626,20 @@ imapParser::parseResult (TQByteArray & result, parseString & rest,
{
case 'A':
if (command == "AUTHENTICATE")
- if (qstrncmp(result, "OK", result.size()) == 0)
+ if (tqstrncmp(result, "OK", result.size()) == 0)
currentState = ISTATE_LOGIN;
break;
case 'L':
if (command == "LOGIN")
- if (qstrncmp(result, "OK", result.size()) == 0)
+ if (tqstrncmp(result, "OK", result.size()) == 0)
currentState = ISTATE_LOGIN;
break;
case 'E':
if (command == "EXAMINE")
{
- if (qstrncmp(result, "OK", result.size()) == 0)
+ if (tqstrncmp(result, "OK", result.size()) == 0)
currentState = ISTATE_SELECT;
else
{
@@ -654,7 +654,7 @@ imapParser::parseResult (TQByteArray & result, parseString & rest,
case 'S':
if (command == "SELECT")
{
- if (qstrncmp(result, "OK", result.size()) == 0)
+ if (tqstrncmp(result, "OK", result.size()) == 0)
currentState = ISTATE_SELECT;
else
{
@@ -847,7 +847,7 @@ void imapParser::parseSearch (parseString & result)
void imapParser::parseStatus (parseString & inWords)
{
- lastStatus = imapInfo ();
+ lasStatus = imapInfo ();
parseLiteralC(inWords); // swallow the box
if (inWords.isEmpty() || inWords[0] != '(')
@@ -864,15 +864,15 @@ void imapParser::parseStatus (parseString & inWords)
if (parseOneNumber (inWords, value))
{
if (label == "MESSAGES")
- lastStatus.setCount (value);
+ lasStatus.setCount (value);
else if (label == "RECENT")
- lastStatus.setRecent (value);
+ lasStatus.setRecent (value);
else if (label == "UIDVALIDITY")
- lastStatus.setUidValidity (value);
+ lasStatus.setUidValidity (value);
else if (label == "UNSEEN")
- lastStatus.setUnseen (value);
+ lasStatus.setUnseen (value);
else if (label == "UIDNEXT")
- lastStatus.setUidNext (value);
+ lasStatus.setUidNext (value);
}
}
@@ -1675,7 +1675,7 @@ void imapParser::parseNamespace (parseString & result)
return;
TQString delimEmpty;
- if ( namespaceToDelimiter.contains( TQString::null ) )
+ if ( namespaceToDelimiter.tqcontains( TQString::null ) )
delimEmpty = namespaceToDelimiter[TQString::null];
namespaceToDelimiter.clear();