diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kioslaves/imap4/imap4.cc | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslaves/imap4/imap4.cc')
-rw-r--r-- | kioslaves/imap4/imap4.cc | 314 |
1 files changed, 157 insertions, 157 deletions
diff --git a/kioslaves/imap4/imap4.cc b/kioslaves/imap4/imap4.cc index eeef10fd4..1cfd56027 100644 --- a/kioslaves/imap4/imap4.cc +++ b/kioslaves/imap4/imap4.cc @@ -78,9 +78,9 @@ extern "C" { } #endif -#include <qbuffer.h> -#include <qdatetime.h> -#include <qregexp.h> +#include <tqbuffer.h> +#include <tqdatetime.h> +#include <tqregexp.h> #include <kprotocolmanager.h> #include <kmessagebox.h> #include <kdebug.h> @@ -161,7 +161,7 @@ sigchld_handler (int signo) } } -IMAP4Protocol::IMAP4Protocol (const QCString & pool, const QCString & app, bool isSSL):TCPSlaveBase ((isSSL ? 993 : 143), +IMAP4Protocol::IMAP4Protocol (const TQCString & pool, const TQCString & app, bool isSSL):TCPSlaveBase ((isSSL ? 993 : 143), (isSSL ? IMAP_SSL_PROTOCOL : IMAP_PROTOCOL), pool, app, isSSL), imapParser (), mimeIO (), outputBuffer(outputCache) { @@ -172,7 +172,7 @@ IMAP4Protocol::IMAP4Protocol (const QCString & pool, const QCString & app, bool readBufferLen = 0; cacheOutput = false; decodeContent = false; - mTimeOfLastNoop = QDateTime(); + mTimeOfLastNoop = TQDateTime(); } IMAP4Protocol::~IMAP4Protocol () @@ -186,7 +186,7 @@ IMAP4Protocol::get (const KURL & _url) { if (!makeLogin()) return; kdDebug(7116) << "IMAP4::get - " << _url.prettyURL() << endl; - QString aBox, aSequence, aType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aType, aSection, aValidity, aDelimiter, aInfo; enum IMAP_TYPE aEnum = parseURL (_url, aBox, aSection, aType, aSequence, aValidity, aDelimiter, aInfo); if (aEnum != ITYPE_ATTACH) @@ -227,7 +227,7 @@ IMAP4Protocol::get (const KURL & _url) // * Otherwise, it specifies the exact data items to request. In this case, all // the logic is in the app. - QString aUpper = aSection.upper(); + TQString aUpper = aSection.upper(); if (aUpper.find ("STRUCTURE") != -1) { aSection = "BODYSTRUCTURE"; @@ -267,26 +267,26 @@ IMAP4Protocol::get (const KURL & _url) ("Content-Type: multipart/digest; boundary=\"IMAPDIGEST\"\r\n", 55); if (selectInfo.recentAvailable ()) outputLineStr ("X-Recent: " + - QString::number(selectInfo.recent ()) + "\r\n"); + TQString::number(selectInfo.recent ()) + "\r\n"); if (selectInfo.countAvailable ()) - outputLineStr ("X-Count: " + QString::number(selectInfo.count ()) + + outputLineStr ("X-Count: " + TQString::number(selectInfo.count ()) + "\r\n"); if (selectInfo.unseenAvailable ()) outputLineStr ("X-Unseen: " + - QString::number(selectInfo.unseen ()) + "\r\n"); + TQString::number(selectInfo.unseen ()) + "\r\n"); if (selectInfo.uidValidityAvailable ()) outputLineStr ("X-uidValidity: " + - QString::number(selectInfo.uidValidity ()) + + TQString::number(selectInfo.uidValidity ()) + "\r\n"); if (selectInfo.uidNextAvailable ()) outputLineStr ("X-UidNext: " + - QString::number(selectInfo.uidNext ()) + "\r\n"); + TQString::number(selectInfo.uidNext ()) + "\r\n"); if (selectInfo.flagsAvailable ()) - outputLineStr ("X-Flags: " + QString::number(selectInfo.flags ()) + + outputLineStr ("X-Flags: " + TQString::number(selectInfo.flags ()) + "\r\n"); if (selectInfo.permanentFlagsAvailable ()) outputLineStr ("X-PermanentFlags: " + - QString::number(selectInfo.permanentFlags ()) + "\r\n"); + TQString::number(selectInfo.permanentFlags ()) + "\r\n"); if (selectInfo.readWriteAvailable ()) { if (selectInfo.readWrite()) { outputLine ("X-Access: Read/Write\r\n", 22); @@ -295,7 +295,7 @@ IMAP4Protocol::get (const KURL & _url) } } outputLine ("\r\n", 2); - flushOutput(QString::null); + flushOutput(TQString::null); cacheOutput = false; } @@ -304,11 +304,11 @@ IMAP4Protocol::get (const KURL & _url) if (aSequence != "0:0") { - QString contentEncoding; + TQString contentEncoding; if (aEnum == ITYPE_ATTACH && decodeContent) { // get the MIME header and fill getLastHandled() - QString mySection = aSection; + TQString mySection = aSection; mySection.replace("]", ".MIME]"); cmd = sendCommand (imapCommand::clientFetch (aSequence, mySection)); do @@ -356,15 +356,15 @@ IMAP4Protocol::get (const KURL & _url) cacheOutput = true; if (cache && cache->getUid () != 0) outputLineStr ("X-UID: " + - QString::number(cache->getUid ()) + "\r\n"); + TQString::number(cache->getUid ()) + "\r\n"); if (cache && cache->getSize () != 0) outputLineStr ("X-Length: " + - QString::number(cache->getSize ()) + "\r\n"); + TQString::number(cache->getSize ()) + "\r\n"); if (cache && !cache->getDate ().isEmpty()) outputLineStr ("X-Date: " + cache->getDate () + "\r\n"); if (cache && cache->getFlags () != 0) outputLineStr ("X-Flags: " + - QString::number(cache->getFlags ()) + "\r\n"); + TQString::number(cache->getFlags ()) + "\r\n"); } else cacheOutput = true; if ( lastone && !decodeContent ) lastone->outputPart (*this); @@ -385,7 +385,7 @@ IMAP4Protocol::get (const KURL & _url) } // just to keep everybody happy when no data arrived - data (QByteArray ()); + data (TQByteArray ()); finished (); relayEnabled = false; @@ -407,7 +407,7 @@ IMAP4Protocol::listDir (const KURL & _url) return; } - QString myBox, mySequence, myLType, mySection, myValidity, myDelimiter, myInfo; + TQString myBox, mySequence, myLType, mySection, myValidity, myDelimiter, myInfo; // parseURL with caching enum IMAP_TYPE myType = parseURL (_url, myBox, mySection, myLType, mySequence, myValidity, @@ -417,7 +417,7 @@ IMAP4Protocol::listDir (const KURL & _url) if (myType == ITYPE_DIR || myType == ITYPE_DIR_AND_BOX) { - QString listStr = myBox; + TQString listStr = myBox; imapCommand *cmd; if (!listStr.isEmpty () && !listStr.endsWith(myDelimiter) && @@ -436,7 +436,7 @@ IMAP4Protocol::listDir (const KURL & _url) (myLType == "LSUB" || myLType == "LSUBNOCHECK"))); if (cmd->result () == "OK") { - QString mailboxName; + TQString mailboxName; UDSEntry entry; UDSAtom atom; KURL aURL = _url; @@ -448,13 +448,13 @@ IMAP4Protocol::listDir (const KURL & _url) if (myLType == "LSUB") { // fire the same command as LIST to check if the box really exists - QValueList<imapList> listResponsesSave = listResponses; + TQValueList<imapList> listResponsesSave = listResponses; doCommand (imapCommand::clientList ("", listStr, false)); - for (QValueListIterator < imapList > it = listResponsesSave.begin (); + for (TQValueListIterator < imapList > it = listResponsesSave.begin (); it != listResponsesSave.end (); ++it) { bool boxOk = false; - for (QValueListIterator < imapList > it2 = listResponses.begin (); + for (TQValueListIterator < imapList > it2 = listResponses.begin (); it2 != listResponses.end (); ++it2) { if ((*it2).name() == (*it).name()) @@ -474,7 +474,7 @@ IMAP4Protocol::listDir (const KURL & _url) } else // LIST or LSUBNOCHECK { - for (QValueListIterator < imapList > it = listResponses.begin (); + for (TQValueListIterator < imapList > it = listResponses.begin (); it != listResponses.end (); ++it) { doListEntry (aURL, myBox, (*it), (mySection != "FOLDERONLY")); @@ -495,12 +495,12 @@ IMAP4Protocol::listDir (const KURL & _url) && myLType != "LIST" && myLType != "LSUB" && myLType != "LSUBNOCHECK") { KURL aURL = _url; - aURL.setQuery (QString::null); - const QString encodedUrl = aURL.url(0, 106); // utf-8 + aURL.setQuery (TQString::null); + const TQString encodedUrl = aURL.url(0, 106); // utf-8 if (!_url.query ().isEmpty ()) { - QString query = KURL::decode_string (_url.query ()); + TQString query = KURL::decode_string (_url.query ()); query = query.right (query.length () - 1); if (!query.isEmpty()) { @@ -519,15 +519,15 @@ IMAP4Protocol::listDir (const KURL & _url) } completeQueue.removeRef (cmd); - QStringList list = getResults (); + TQStringList list = getResults (); int stretch = 0; if (selectInfo.uidNextAvailable ()) - stretch = QString::number(selectInfo.uidNext ()).length (); + stretch = TQString::number(selectInfo.uidNext ()).length (); UDSEntry entry; imapCache fake; - for (QStringList::ConstIterator it = list.begin(); it != list.end(); + for (TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it) { fake.setUid((*it).toULong()); @@ -566,7 +566,7 @@ IMAP4Protocol::listDir (const KURL & _url) KURL newUrl = _url; newUrl.setPath ("/" + myBox + ";UIDVALIDITY=" + - QString::number(selectInfo.uidValidity ())); + TQString::number(selectInfo.uidValidity ())); kdDebug(7116) << "IMAP4::listDir - redirecting to " << newUrl.prettyURL() << endl; redirection (newUrl); @@ -579,7 +579,7 @@ IMAP4Protocol::listDir (const KURL & _url) int stretch = 0; if (selectInfo.uidNextAvailable ()) - stretch = QString::number(selectInfo.uidNext ()).length (); + stretch = TQString::number(selectInfo.uidNext ()).length (); // kdDebug(7116) << selectInfo.uidNext() << "d used to stretch " << stretch << endl; UDSEntry entry; @@ -622,8 +622,8 @@ IMAP4Protocol::listDir (const KURL & _url) } void -IMAP4Protocol::setHost (const QString & _host, int _port, - const QString & _user, const QString & _pass) +IMAP4Protocol::setHost (const TQString & _host, int _port, + const TQString & _user, const TQString & _pass) { if (myHost != _host || myPort != _port || myUser != _user || myPass != _pass) { // what's the point of doing 4 string compares to avoid 4 string copies? @@ -638,7 +638,7 @@ IMAP4Protocol::setHost (const QString & _host, int _port, } void -IMAP4Protocol::parseRelay (const QByteArray & buffer) +IMAP4Protocol::parseRelay (const TQByteArray & buffer) { if (relayEnabled) { // relay data immediately @@ -665,7 +665,7 @@ IMAP4Protocol::parseRelay (ulong len) } -bool IMAP4Protocol::parseRead(QByteArray & buffer, ulong len, ulong relay) +bool IMAP4Protocol::parseRead(TQByteArray & buffer, ulong len, ulong relay) { char buf[8192]; while (buffer.size() < len) @@ -681,7 +681,7 @@ bool IMAP4Protocol::parseRead(QByteArray & buffer, ulong len, ulong relay) } if (relay > buffer.size()) { - QByteArray relayData; + TQByteArray relayData; ssize_t relbuf = relay - buffer.size(); int currentRelay = QMIN(relbuf, readLen); relayData.setRawData(buf, currentRelay); @@ -689,7 +689,7 @@ bool IMAP4Protocol::parseRead(QByteArray & buffer, ulong len, ulong relay) relayData.resetRawData(buf, currentRelay); } { - QBuffer stream (buffer); + TQBuffer stream (buffer); stream.open (IO_WriteOnly); stream.at (buffer.size ()); stream.writeBlock (buf, readLen); @@ -700,7 +700,7 @@ bool IMAP4Protocol::parseRead(QByteArray & buffer, ulong len, ulong relay) } -bool IMAP4Protocol::parseReadLine (QByteArray & buffer, ulong relay) +bool IMAP4Protocol::parseReadLine (TQByteArray & buffer, ulong relay) { if (myHost.isEmpty()) return FALSE; @@ -712,7 +712,7 @@ bool IMAP4Protocol::parseReadLine (QByteArray & buffer, ulong relay) if (copyLen < readBufferLen) copyLen++; if (relay > 0) { - QByteArray relayData; + TQByteArray relayData; if (copyLen < (ssize_t) relay) relay = copyLen; @@ -723,7 +723,7 @@ bool IMAP4Protocol::parseReadLine (QByteArray & buffer, ulong relay) } // append to buffer { - QBuffer stream (buffer); + TQBuffer stream (buffer); stream.open (IO_WriteOnly); stream.at (buffer.size ()); @@ -776,7 +776,7 @@ IMAP4Protocol::put (const KURL & _url, int, bool, bool) { kdDebug(7116) << "IMAP4::put - " << _url.prettyURL() << endl; // KIO::TCPSlaveBase::put(_url,permissions,overwrite,resume); - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; enum IMAP_TYPE aType = parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); @@ -796,14 +796,14 @@ IMAP4Protocol::put (const KURL & _url, int, bool, bool) } else { - QPtrList < QByteArray > bufferList; + TQPtrList < TQByteArray > bufferList; int length = 0; int result; // Loop until we got 'dataEnd' do { - QByteArray *buffer = new QByteArray (); + TQByteArray *buffer = new TQByteArray (); dataReq (); // Request for data result = readData (*buffer); if (result > 0) @@ -832,7 +832,7 @@ IMAP4Protocol::put (const KURL & _url, int, bool, bool) bool sendOk = true; ulong wrote = 0; - QByteArray *buffer; + TQByteArray *buffer; // send data to server while (!bufferList.isEmpty () && sendOk) { @@ -874,7 +874,7 @@ IMAP4Protocol::put (const KURL & _url, int, bool, bool) { if (hasCapability("UIDPLUS")) { - QString uid = cmd->resultInfo(); + TQString uid = cmd->resultInfo(); if (uid.find("APPENDUID") != -1) { uid = uid.section(" ", 2, 2); @@ -911,7 +911,7 @@ void IMAP4Protocol::mkdir (const KURL & _url, int) { kdDebug(7116) << "IMAP4::mkdir - " << _url.prettyURL() << endl; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL(_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); kdDebug(7116) << "IMAP4::mkdir - create " << aBox << endl; imapCommand *cmd = doCommand (imapCommand::clientCreate(aBox)); @@ -961,8 +961,8 @@ void IMAP4Protocol::copy (const KURL & src, const KURL & dest, int, bool overwrite) { kdDebug(7116) << "IMAP4::copy - [" << (overwrite ? "Overwrite" : "NoOverwrite") << "] " << src.prettyURL() << " -> " << dest.prettyURL() << endl; - QString sBox, sSequence, sLType, sSection, sValidity, sDelimiter, sInfo; - QString dBox, dSequence, dLType, dSection, dValidity, dDelimiter, dInfo; + TQString sBox, sSequence, sLType, sSection, sValidity, sDelimiter, sInfo; + TQString dBox, dSequence, dLType, dSection, dValidity, dDelimiter, dInfo; enum IMAP_TYPE sType = parseURL (src, sBox, sSection, sLType, sSequence, sValidity, sDelimiter, sInfo); enum IMAP_TYPE dType = @@ -979,8 +979,8 @@ IMAP4Protocol::copy (const KURL & src, const KURL & dest, int, bool overwrite) { KURL testDir = dest; - QString subDir = dBox.right (dBox.length () - dBox.findRev ('/')); - QString topDir = dBox.left (sub); + TQString subDir = dBox.right (dBox.length () - dBox.findRev ('/')); + TQString topDir = dBox.left (sub); testDir.setPath ("/" + topDir); dType = parseURL (testDir, topDir, dSection, dLType, dSequence, dValidity, @@ -1048,7 +1048,7 @@ IMAP4Protocol::copy (const KURL & src, const KURL & dest, int, bool overwrite) } else { if (hasCapability("UIDPLUS")) { - QString uid = cmd->resultInfo(); + TQString uid = cmd->resultInfo(); if (uid.find("COPYUID") != -1) { uid = uid.section(" ", 2, 3); @@ -1071,7 +1071,7 @@ void IMAP4Protocol::del (const KURL & _url, bool isFile) { kdDebug(7116) << "IMAP4::del - [" << (isFile ? "File" : "NoFile") << "] " << _url.prettyURL() << endl; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; enum IMAP_TYPE aType = parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); @@ -1201,7 +1201,7 @@ IMAP4Protocol::del (const KURL & _url, bool isFile) * Note that the namespace can be empty * Unsubscribe: data = 'U' + URL (KURL) * Subscribe: data = 'u' + URL (KURL) - * Change the status: data = 'S' + URL (KURL) + Flags (QCString) + * Change the status: data = 'S' + URL (KURL) + Flags (TQCString) * ACL commands: data = 'A' + command + URL (KURL) + command-dependent args * AnnotateMore commands: data = 'M' + 'G'et/'S'et + URL + entry + command-dependent args * Search: data = 'E' + URL (KURL) @@ -1209,12 +1209,12 @@ IMAP4Protocol::del (const KURL & _url, bool isFile) * Custom command: data = 'X' + 'N'ormal/'E'xtended + command + command-dependent args */ void -IMAP4Protocol::special (const QByteArray & aData) +IMAP4Protocol::special (const TQByteArray & aData) { kdDebug(7116) << "IMAP4Protocol::special" << endl; if (!makeLogin()) return; - QDataStream stream(aData, IO_ReadOnly); + TQDataStream stream(aData, IO_ReadOnly); int tmp; stream >> tmp; @@ -1264,7 +1264,7 @@ IMAP4Protocol::special (const QByteArray & aData) // unsubscribe KURL _url; stream >> _url; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); imapCommand *cmd = doCommand(imapCommand::clientUnsubscribe(aBox)); if (cmd->result () != "OK") @@ -1285,7 +1285,7 @@ IMAP4Protocol::special (const QByteArray & aData) // subscribe KURL _url; stream >> _url; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); imapCommand *cmd = doCommand(imapCommand::clientSubscribe(aBox)); if (cmd->result () != "OK") @@ -1341,15 +1341,15 @@ IMAP4Protocol::special (const QByteArray & aData) { // status KURL _url; - QCString newFlags; + TQCString newFlags; stream >> _url >> newFlags; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); if (!assureBox(aBox, false)) return; // make sure we only touch flags we know - QCString knownFlags = "\\SEEN \\ANSWERED \\FLAGGED \\DRAFT"; + TQCString knownFlags = "\\SEEN \\ANSWERED \\FLAGGED \\DRAFT"; const imapInfo info = getSelected(); if ( info.permanentFlagsAvailable() && (info.permanentFlags() & imapInfo::User) ) { knownFlags += " KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED"; @@ -1386,10 +1386,10 @@ IMAP4Protocol::special (const QByteArray & aData) // seen KURL _url; bool seen; - QCString newFlags; + TQCString newFlags; stream >> _url >> seen; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); if ( !assureBox(aBox, true) ) // read-only because changing SEEN should be possible even then return; @@ -1426,24 +1426,24 @@ IMAP4Protocol::special (const QByteArray & aData) } default: kdWarning(7116) << "Unknown command in special(): " << tmp << endl; - error( ERR_UNSUPPORTED_ACTION, QString(QChar(tmp)) ); + error( ERR_UNSUPPORTED_ACTION, TQString(TQChar(tmp)) ); break; } } void -IMAP4Protocol::specialACLCommand( int command, QDataStream& stream ) +IMAP4Protocol::specialACLCommand( int command, TQDataStream& stream ) { // All commands start with the URL to the box KURL _url; stream >> _url; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); switch( command ) { case 'S': // SETACL { - QString user, acl; + TQString user, acl; stream >> user >> acl; kdDebug(7116) << "SETACL " << aBox << " " << user << " " << acl << endl; imapCommand *cmd = doCommand(imapCommand::clientSetACL(aBox, user, acl)); @@ -1462,7 +1462,7 @@ IMAP4Protocol::specialACLCommand( int command, QDataStream& stream ) } case 'D': // DELETEACL { - QString user; + TQString user; stream >> user; kdDebug(7116) << "DELETEACL " << aBox << " " << user << endl; imapCommand *cmd = doCommand(imapCommand::clientDeleteACL(aBox, user)); @@ -1503,7 +1503,7 @@ IMAP4Protocol::specialACLCommand( int command, QDataStream& stream ) case 'L': // LISTRIGHTS { // Do we need this one? It basically shows which rights are tied together, but that's all? - error( ERR_UNSUPPORTED_ACTION, QString(QChar(command)) ); + error( ERR_UNSUPPORTED_ACTION, TQString(TQChar(command)) ); break; } case 'M': // MYRIGHTS @@ -1518,7 +1518,7 @@ IMAP4Protocol::specialACLCommand( int command, QDataStream& stream ) .arg(cmd->resultInfo())); return; } - QStringList lst = getResults(); + TQStringList lst = getResults(); kdDebug(7116) << "myrights results: " << lst << endl; if ( !lst.isEmpty() ) { Q_ASSERT( lst.count() == 1 ); @@ -1529,17 +1529,17 @@ IMAP4Protocol::specialACLCommand( int command, QDataStream& stream ) } default: kdWarning(7116) << "Unknown special ACL command:" << command << endl; - error( ERR_UNSUPPORTED_ACTION, QString(QChar(command)) ); + error( ERR_UNSUPPORTED_ACTION, TQString(TQChar(command)) ); } } void -IMAP4Protocol::specialSearchCommand( QDataStream& stream ) +IMAP4Protocol::specialSearchCommand( TQDataStream& stream ) { kdDebug(7116) << "IMAP4Protocol::specialSearchCommand" << endl; KURL _url; stream >> _url; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); if (!assureBox(aBox, false)) return; @@ -1553,7 +1553,7 @@ IMAP4Protocol::specialSearchCommand( QDataStream& stream ) return; } completeQueue.removeRef(cmd); - QStringList lst = getResults(); + TQStringList lst = getResults(); kdDebug(7116) << "IMAP4Protocol::specialSearchCommand '" << aSection << "' returns " << lst << endl; infoMessage( lst.join( " " ) ); @@ -1562,11 +1562,11 @@ IMAP4Protocol::specialSearchCommand( QDataStream& stream ) } void -IMAP4Protocol::specialCustomCommand( QDataStream& stream ) +IMAP4Protocol::specialCustomCommand( TQDataStream& stream ) { kdDebug(7116) << "IMAP4Protocol::specialCustomCommand" << endl; - QString command, arguments; + TQString command, arguments; int type; stream >> type; stream >> command >> arguments; @@ -1588,7 +1588,7 @@ IMAP4Protocol::specialCustomCommand( QDataStream& stream ) return; } completeQueue.removeRef(cmd); - QStringList lst = getResults(); + TQStringList lst = getResults(); kdDebug(7116) << "IMAP4Protocol::specialCustomCommand '" << command << ":" << arguments << "' returns " << lst << endl; @@ -1602,13 +1602,13 @@ IMAP4Protocol::specialCustomCommand( QDataStream& stream ) */ if ( type == 'E' ) { kdDebug(7116) << "IMAP4Protocol::specialCustomCommand: extended mode" << endl; - imapCommand *cmd = sendCommand (imapCommand::clientCustom( command, QString() )); + imapCommand *cmd = sendCommand (imapCommand::clientCustom( command, TQString() )); while ( !parseLoop () ) ; // see if server is waiting if (!cmd->isComplete () && !getContinuation ().isEmpty ()) { - const QByteArray buffer = arguments.utf8(); + const TQByteArray buffer = arguments.utf8(); // send data to server bool sendOk = (write (buffer.data (), buffer.size ()) == (ssize_t)buffer.size ()); @@ -1632,7 +1632,7 @@ IMAP4Protocol::specialCustomCommand( QDataStream& stream ) completeQueue.removeRef (cmd); - QStringList lst = getResults(); + TQStringList lst = getResults(); kdDebug(7116) << "IMAP4Protocol::specialCustomCommand: returns " << lst << endl; infoMessage( lst.join( " " ) ); @@ -1641,12 +1641,12 @@ IMAP4Protocol::specialCustomCommand( QDataStream& stream ) } void -IMAP4Protocol::specialAnnotateMoreCommand( int command, QDataStream& stream ) +IMAP4Protocol::specialAnnotateMoreCommand( int command, TQDataStream& stream ) { // All commands start with the URL to the box KURL _url; stream >> _url; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); switch( command ) { @@ -1654,10 +1654,10 @@ IMAP4Protocol::specialAnnotateMoreCommand( int command, QDataStream& stream ) { // Params: // KURL URL of the mailbox - // QString entry (should be an actual entry name, no % or *; empty for server entries) - // QMap<QString,QString> attributes (name and value) - QString entry; - QMap<QString, QString> attributes; + // TQString entry (should be an actual entry name, no % or *; empty for server entries) + // TQMap<TQString,TQString> attributes (name and value) + TQString entry; + TQMap<TQString, TQString> attributes; stream >> entry >> attributes; kdDebug(7116) << "SETANNOTATION " << aBox << " " << entry << " " << attributes.count() << " attributes" << endl; imapCommand *cmd = doCommand(imapCommand::clientSetAnnotation(aBox, entry, attributes)); @@ -1678,10 +1678,10 @@ IMAP4Protocol::specialAnnotateMoreCommand( int command, QDataStream& stream ) { // Params: // KURL URL of the mailbox - // QString entry (should be an actual entry name, no % or *; empty for server entries) - // QStringList attributes (list of attributes to be retrieved, possibly with % or *) - QString entry; - QStringList attributeNames; + // TQString entry (should be an actual entry name, no % or *; empty for server entries) + // TQStringList attributes (list of attributes to be retrieved, possibly with % or *) + TQString entry; + TQStringList attributeNames; stream >> entry >> attributeNames; kdDebug(7116) << "GETANNOTATION " << aBox << " " << entry << " " << attributeNames << endl; imapCommand *cmd = doCommand(imapCommand::clientGetAnnotation(aBox, entry, attributeNames)); @@ -1704,21 +1704,21 @@ IMAP4Protocol::specialAnnotateMoreCommand( int command, QDataStream& stream ) } default: kdWarning(7116) << "Unknown special annotate command:" << command << endl; - error( ERR_UNSUPPORTED_ACTION, QString(QChar(command)) ); + error( ERR_UNSUPPORTED_ACTION, TQString(TQChar(command)) ); } } void -IMAP4Protocol::specialQuotaCommand( int command, QDataStream& stream ) +IMAP4Protocol::specialQuotaCommand( int command, TQDataStream& stream ) { // All commands start with the URL to the box KURL _url; stream >> _url; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, aInfo); switch( command ) { - case 'R': // GETQUOTAROOT + case 'R': // GEQUOTAROOT { kdDebug(7116) << "QUOTAROOT " << aBox << endl; imapCommand *cmd = doCommand(imapCommand::clientGetQuotaroot( aBox ) ); @@ -1734,21 +1734,21 @@ IMAP4Protocol::specialQuotaCommand( int command, QDataStream& stream ) finished(); break; } - case 'G': // GETQUOTA + case 'G': // GEQUOTA { - kdDebug(7116) << "GETQUOTA command" << endl; + kdDebug(7116) << "GEQUOTA command" << endl; kdWarning(7116) << "UNIMPLEMENTED" << endl; break; } - case 'S': // SETQUOTA + case 'S': // SEQUOTA { - kdDebug(7116) << "SETQUOTA command" << endl; + kdDebug(7116) << "SEQUOTA command" << endl; kdWarning(7116) << "UNIMPLEMENTED" << endl; break; } default: kdWarning(7116) << "Unknown special quota command:" << command << endl; - error( ERR_UNSUPPORTED_ACTION, QString(QChar(command)) ); + error( ERR_UNSUPPORTED_ACTION, TQString(TQChar(command)) ); } } @@ -1756,8 +1756,8 @@ void IMAP4Protocol::rename (const KURL & src, const KURL & dest, bool overwrite) { kdDebug(7116) << "IMAP4::rename - [" << (overwrite ? "Overwrite" : "NoOverwrite") << "] " << src.prettyURL() << " -> " << dest.prettyURL() << endl; - QString sBox, sSequence, sLType, sSection, sValidity, sDelimiter, sInfo; - QString dBox, dSequence, dLType, dSection, dValidity, dDelimiter, dInfo; + TQString sBox, sSequence, sLType, sSection, sValidity, sDelimiter, sInfo; + TQString dBox, dSequence, dLType, dSection, dValidity, dDelimiter, dInfo; enum IMAP_TYPE sType = parseURL (src, sBox, sSection, sLType, sSequence, sValidity, sDelimiter, sInfo, false); enum IMAP_TYPE dType = @@ -1815,11 +1815,11 @@ IMAP4Protocol::slave_status () { bool connected = (getState() != ISTATE_NO) && isConnectionValid(); kdDebug(7116) << "IMAP4::slave_status " << connected << endl; - slaveStatus ( connected ? myHost : QString::null, connected ); + slaveStatus ( connected ? myHost : TQString::null, connected ); } void -IMAP4Protocol::dispatch (int command, const QByteArray & data) +IMAP4Protocol::dispatch (int command, const TQByteArray & data) { kdDebug(7116) << "IMAP4::dispatch - command=" << command << endl; KIO::TCPSlaveBase::dispatch (command, data); @@ -1829,7 +1829,7 @@ void IMAP4Protocol::stat (const KURL & _url) { kdDebug(7116) << "IMAP4::stat - " << _url.prettyURL() << endl; - QString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; + TQString aBox, aSequence, aLType, aSection, aValidity, aDelimiter, aInfo; // parseURL with caching enum IMAP_TYPE aType = parseURL (_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter, @@ -1857,7 +1857,7 @@ IMAP4Protocol::stat (const KURL & _url) setState(ISTATE_LOGIN); } bool ok = false; - QString cmdInfo; + TQString cmdInfo; if (aType == ITYPE_MSG || aType == ITYPE_ATTACH) ok = true; else @@ -1873,7 +1873,7 @@ IMAP4Protocol::stat (const KURL & _url) imapCommand *cmd = doCommand (imapCommand::clientList ("", aBox)); if (cmd->result () == "OK") { - for (QValueListIterator < imapList > it = listResponses.begin (); + for (TQValueListIterator < imapList > it = listResponses.begin (); it != listResponses.end (); ++it) { if (aBox == (*it).name ()) found = true; @@ -1890,7 +1890,7 @@ IMAP4Protocol::stat (const KURL & _url) || (aSection == "UNSEEN" && getStatus().unseenAvailable())) { atom.m_uds = UDS_SIZE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = (aSection == "UIDNEXT") ? getStatus().uidNext() : getStatus().unseen(); entry.append(atom); @@ -1924,7 +1924,7 @@ IMAP4Protocol::stat (const KURL & _url) KURL newUrl = _url; newUrl.setPath ("/" + aBox + ";UIDVALIDITY=" + - QString::number(validity)); + TQString::number(validity)); kdDebug(7116) << "IMAP4::stat - redirecting to " << newUrl.prettyURL() << endl; redirection (newUrl); } @@ -1953,7 +1953,7 @@ IMAP4Protocol::stat (const KURL & _url) { case ITYPE_DIR: atom.m_uds = UDS_FILE_TYPE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = S_IFDIR; entry.append (atom); break; @@ -1961,7 +1961,7 @@ IMAP4Protocol::stat (const KURL & _url) case ITYPE_BOX: case ITYPE_DIR_AND_BOX: atom.m_uds = UDS_FILE_TYPE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = S_IFDIR; entry.append (atom); break; @@ -1969,7 +1969,7 @@ IMAP4Protocol::stat (const KURL & _url) case ITYPE_MSG: case ITYPE_ATTACH: atom.m_uds = UDS_FILE_TYPE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = S_IFREG; entry.append (atom); break; @@ -2007,7 +2007,7 @@ void IMAP4Protocol::closeConnection() completeQueue.clear(); sentQueue.clear(); lastHandled = 0; - currentBox = QString::null; + currentBox = TQString::null; readBufferLen = 0; } @@ -2033,13 +2033,13 @@ bool IMAP4Protocol::makeLogin () unhandled.clear (); if (!alreadyConnected) while (!parseLoop ()) ; //get greeting - QString greeting; + TQString greeting; if (!unhandled.isEmpty()) greeting = unhandled.first().stripWhiteSpace(); unhandled.clear (); //get rid of it cmd = doCommand (new imapCommand ("CAPABILITY", "")); kdDebug(7116) << "IMAP4: setHost: capability" << endl; - for (QStringList::Iterator it = imapCapabilities.begin (); + for (TQStringList::Iterator it = imapCapabilities.begin (); it != imapCapabilities.end (); ++it) { kdDebug(7116) << "'" << (*it) << "'" << endl; @@ -2057,7 +2057,7 @@ bool IMAP4Protocol::makeLogin () if (metaData("nologin") == "on") return TRUE; - if (myTLS == "on" && !hasCapability(QString("STARTTLS"))) + if (myTLS == "on" && !hasCapability(TQString("STARTTLS"))) { error(ERR_COULD_NOT_LOGIN, i18n("The server does not support TLS.\n" "Disable this security feature to connect unencrypted.")); @@ -2065,7 +2065,7 @@ bool IMAP4Protocol::makeLogin () return false; } if ((myTLS == "on" || (canUseTLS() && myTLS != "off")) && - hasCapability(QString("STARTTLS"))) + hasCapability(TQString("STARTTLS"))) { imapCommand *cmd = doCommand (imapCommand::clientStartTLS()); if (cmd->result () == "OK") @@ -2076,7 +2076,7 @@ bool IMAP4Protocol::makeLogin () { kdDebug(7116) << "TLS mode has been enabled." << endl; imapCommand *cmd2 = doCommand (new imapCommand ("CAPABILITY", "")); - for (QStringList::Iterator it = imapCapabilities.begin (); + for (TQStringList::Iterator it = imapCapabilities.begin (); it != imapCapabilities.end (); ++it) { kdDebug(7116) << "'" << (*it) << "'" << endl; @@ -2092,14 +2092,14 @@ bool IMAP4Protocol::makeLogin () } if (myAuth.isEmpty () || myAuth == "*") { - if (hasCapability (QString ("LOGINDISABLED"))) { + if (hasCapability (TQString ("LOGINDISABLED"))) { error (ERR_COULD_NOT_LOGIN, i18n("LOGIN is disabled by the server.")); closeConnection(); return false; } } else { - if (!hasCapability (QString ("AUTH=") + myAuth)) { + if (!hasCapability (TQString ("AUTH=") + myAuth)) { error (ERR_COULD_NOT_LOGIN, i18n("The authentication method %1 is not " "supported by the server.").arg(myAuth)); closeConnection(); @@ -2107,7 +2107,7 @@ bool IMAP4Protocol::makeLogin () } } - if ( greeting.contains( QRegExp( "Cyrus IMAP4 v2.1" ) ) ) { + if ( greeting.contains( TQRegExp( "Cyrus IMAP4 v2.1" ) ) ) { removeCapability( "ANNOTATEMORE" ); } @@ -2120,7 +2120,7 @@ bool IMAP4Protocol::makeLogin () kdDebug(7116) << "IMAP4::makeLogin - open_PassDlg said user=" << myUser << " pass=xx" << endl; - QString resultInfo; + TQString resultInfo; if (myAuth.isEmpty () || myAuth == "*") { if (myUser.isEmpty () || myPass.isEmpty ()) { @@ -2161,7 +2161,7 @@ bool IMAP4Protocol::makeLogin () cmd = doCommand( imapCommand::clientList("", "") ); if (cmd->result () == "OK") { - QValueListIterator < imapList > it = listResponses.begin(); + TQValueListIterator < imapList > it = listResponses.begin(); if ( it == listResponses.end() ) { // empty answer - this is a buggy imap server @@ -2175,13 +2175,13 @@ bool IMAP4Protocol::makeLogin () } if ( it != listResponses.end() ) { - namespaceToDelimiter[QString::null] = (*it).hierarchyDelimiter(); + namespaceToDelimiter[TQString::null] = (*it).hierarchyDelimiter(); kdDebug(7116) << "makeLogin - delimiter for empty ns='" << (*it).hierarchyDelimiter() << "'" << endl; if ( !hasCapability("NAMESPACE") ) { // server does not support namespaces - QString nsentry = QString::number( 0 ) + "==" + TQString nsentry = TQString::number( 0 ) + "==" + (*it).hierarchyDelimiter(); imapNamespaces.append( nsentry ); } @@ -2196,10 +2196,10 @@ bool IMAP4Protocol::makeLogin () } void -IMAP4Protocol::parseWriteLine (const QString & aStr) +IMAP4Protocol::parseWriteLine (const TQString & aStr) { //kdDebug(7116) << "Writing: " << aStr << endl; - QCString writer = aStr.utf8(); + TQCString writer = aStr.utf8(); int len = writer.length(); // append CRLF if necessary @@ -2251,15 +2251,15 @@ IMAP4Protocol::doListEntry (const KURL & _url, int stretch, imapCache * cache, bool withFlags, bool withSubject) { KURL aURL = _url; - aURL.setQuery (QString::null); - const QString encodedUrl = aURL.url(0, 106); // utf-8 + aURL.setQuery (TQString::null); + const TQString encodedUrl = aURL.url(0, 106); // utf-8 doListEntry(encodedUrl, stretch, cache, withFlags, withSubject); } void -IMAP4Protocol::doListEntry (const QString & encodedUrl, int stretch, imapCache * cache, +IMAP4Protocol::doListEntry (const TQString & encodedUrl, int stretch, imapCache * cache, bool withFlags, bool withSubject) { if (cache) @@ -2269,7 +2269,7 @@ IMAP4Protocol::doListEntry (const QString & encodedUrl, int stretch, imapCache * entry.clear (); - const QString uid = QString::number(cache->getUid()); + const TQString uid = TQString::number(cache->getUid()); atom.m_uds = UDS_NAME; atom.m_str = uid; @@ -2296,7 +2296,7 @@ IMAP4Protocol::doListEntry (const QString & encodedUrl, int stretch, imapCache * entry.append (atom); atom.m_uds = UDS_FILE_TYPE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = S_IFREG; entry.append (atom); @@ -2322,18 +2322,18 @@ IMAP4Protocol::doListEntry (const QString & encodedUrl, int stretch, imapCache * } void -IMAP4Protocol::doListEntry (const KURL & _url, const QString & myBox, +IMAP4Protocol::doListEntry (const KURL & _url, const TQString & myBox, const imapList & item, bool appendPath) { KURL aURL = _url; - aURL.setQuery (QString::null); + aURL.setQuery (TQString::null); UDSEntry entry; UDSAtom atom; int hdLen = item.hierarchyDelimiter().length(); { // mailboxName will be appended to the path if appendPath is true - QString mailboxName = item.name (); + TQString mailboxName = item.name (); // some beautification if (mailboxName.find (myBox) == 0 && mailboxName.length() > myBox.length()) @@ -2379,7 +2379,7 @@ IMAP4Protocol::doListEntry (const KURL & _url, const QString & myBox, // explicitly set this as a directory for KFileDialog atom.m_uds = UDS_FILE_TYPE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = S_IFDIR; entry.append (atom); } @@ -2393,7 +2393,7 @@ IMAP4Protocol::doListEntry (const KURL & _url, const QString & myBox, // explicitly set this as a directory for KFileDialog atom.m_uds = UDS_FILE_TYPE; - atom.m_str = QString::null; + atom.m_str = TQString::null; atom.m_long = S_IFDIR; entry.append (atom); } @@ -2406,7 +2406,7 @@ IMAP4Protocol::doListEntry (const KURL & _url, const QString & myBox, } atom.m_uds = UDS_URL; - QString path = aURL.path(); + TQString path = aURL.path(); atom.m_str = aURL.url (0, 106); // utf-8 if (appendPath) { @@ -2446,10 +2446,10 @@ IMAP4Protocol::doListEntry (const KURL & _url, const QString & myBox, } enum IMAP_TYPE -IMAP4Protocol::parseURL (const KURL & _url, QString & _box, - QString & _section, QString & _type, QString & _uid, - QString & _validity, QString & _hierarchyDelimiter, - QString & _info, bool cache) +IMAP4Protocol::parseURL (const KURL & _url, TQString & _box, + TQString & _section, TQString & _type, TQString & _uid, + TQString & _validity, TQString & _hierarchyDelimiter, + TQString & _info, bool cache) { enum IMAP_TYPE retVal; retVal = ITYPE_UNKNOWN; @@ -2458,7 +2458,7 @@ IMAP4Protocol::parseURL (const KURL & _url, QString & _box, // kdDebug(7116) << "URL: query - '" << KURL::decode_string(_url.query()) << "'" << endl; // get the delimiter - QString myNamespace = namespaceForBox( _box ); + TQString myNamespace = namespaceForBox( _box ); kdDebug(7116) << "IMAP4::parseURL - namespace=" << myNamespace << endl; if ( namespaceToDelimiter.contains(myNamespace) ) { @@ -2487,7 +2487,7 @@ IMAP4Protocol::parseURL (const KURL & _url, QString & _box, cmd = doCommand (imapCommand::clientList ("", _box)); if (cmd->result () == "OK") { - for (QValueListIterator < imapList > it = listResponses.begin (); + for (TQValueListIterator < imapList > it = listResponses.begin (); it != listResponses.end (); ++it) { //kdDebug(7116) << "IMAP4::parseURL - checking " << _box << " to " << (*it).name() << endl; @@ -2576,7 +2576,7 @@ IMAP4Protocol::parseURL (const KURL & _url, QString & _box, } int -IMAP4Protocol::outputLine (const QCString & _str, int len) +IMAP4Protocol::outputLine (const TQCString & _str, int len) { if (len == -1) { len = _str.length(); @@ -2593,7 +2593,7 @@ IMAP4Protocol::outputLine (const QCString & _str, int len) return 0; } - QByteArray temp; + TQByteArray temp; bool relay = relayEnabled; relayEnabled = true; @@ -2605,7 +2605,7 @@ IMAP4Protocol::outputLine (const QCString & _str, int len) return 0; } -void IMAP4Protocol::flushOutput(QString contentEncoding) +void IMAP4Protocol::flushOutput(TQString contentEncoding) { // send out cached data to the application if (outputBufferIndex == 0) @@ -2615,7 +2615,7 @@ void IMAP4Protocol::flushOutput(QString contentEncoding) if (decodeContent) { // get the coding from the MIME header - QByteArray decoded; + TQByteArray decoded; if (contentEncoding.find("quoted-printable", 0, false) == 0) decoded = KCodecs::quotedPrintableDecode(outputCache); else if (contentEncoding.find("base64", 0, false) == 0) @@ -2623,7 +2623,7 @@ void IMAP4Protocol::flushOutput(QString contentEncoding) else decoded = outputCache; - QString mimetype = KMimeType::findByContent( decoded )->name(); + TQString mimetype = KMimeType::findByContent( decoded )->name(); kdDebug(7116) << "IMAP4::flushOutput - mimeType " << mimetype << endl; mimeType(mimetype); decodeContent = false; @@ -2654,7 +2654,7 @@ ssize_t IMAP4Protocol::myRead(void *data, ssize_t len) } bool -IMAP4Protocol::assureBox (const QString & aBox, bool readonly) +IMAP4Protocol::assureBox (const TQString & aBox, bool readonly) { if (aBox.isEmpty()) return false; @@ -2667,7 +2667,7 @@ IMAP4Protocol::assureBox (const QString & aBox, bool readonly) selectInfo = imapInfo(); cmd = doCommand (imapCommand::clientSelect (aBox, readonly)); bool ok = cmd->result() == "OK"; - QString cmdInfo = cmd->resultInfo(); + TQString cmdInfo = cmd->resultInfo(); completeQueue.removeRef (cmd); if (!ok) @@ -2676,7 +2676,7 @@ IMAP4Protocol::assureBox (const QString & aBox, bool readonly) cmd = doCommand (imapCommand::clientList ("", aBox)); if (cmd->result () == "OK") { - for (QValueListIterator < imapList > it = listResponses.begin (); + for (TQValueListIterator < imapList > it = listResponses.begin (); it != listResponses.end (); ++it) { if (aBox == (*it).name ()) found = true; @@ -2702,10 +2702,10 @@ IMAP4Protocol::assureBox (const QString & aBox, bool readonly) // Doing this means a server roundtrip and since assureBox is called // after every mail, we do it with a timeout. kdDebug(7116) << "IMAP4Protocol::assureBox - reusing box" << endl; - if ( mTimeOfLastNoop.secsTo( QDateTime::currentDateTime() ) > 10 ) { + if ( mTimeOfLastNoop.secsTo( TQDateTime::currentDateTime() ) > 10 ) { cmd = doCommand (imapCommand::clientNoop ()); completeQueue.removeRef (cmd); - mTimeOfLastNoop = QDateTime::currentDateTime(); + mTimeOfLastNoop = TQDateTime::currentDateTime(); kdDebug(7116) << "IMAP4Protocol::assureBox - noop timer fired" << endl; } } |