diff options
Diffstat (limited to 'knode/knnntpclient.cpp')
-rw-r--r-- | knode/knnntpclient.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/knode/knnntpclient.cpp b/knode/knnntpclient.cpp index efc3b18c3..8cedae08e 100644 --- a/knode/knnntpclient.cpp +++ b/knode/knnntpclient.cpp @@ -61,7 +61,7 @@ void KNNntpClient::processJob() break; default: #ifndef NDEBUG - qDebug("knode: KNNntpClient::processJob(): mismatched job"); + tqDebug("knode: KNNntpClient::processJob(): mismatched job"); #endif break; } @@ -108,7 +108,7 @@ void KNNntpClient::doFetchGroups() s = strchr(line,' '); if(!s) { #ifndef NDEBUG - qDebug("knode: retrieved broken group-line - ignoring"); + tqDebug("knode: retrieved broken group-line - ignoring"); #endif } else { s[0] = 0; // cut string @@ -175,7 +175,7 @@ void KNNntpClient::doFetchGroups() while (*s != '\0' && *s != '\t' && *s != ' ') s++; if (*s == '\0') { #ifndef NDEBUG - qDebug("knode: retrieved broken group-description - ignoring"); + tqDebug("knode: retrieved broken group-description - ignoring"); #endif } else { s[0] = 0; // terminate groupname @@ -244,7 +244,7 @@ void KNNntpClient::doCheckNewGroups() s = strchr(line,' '); if(!s) { #ifndef NDEBUG - qDebug("knode: retrieved broken group-line - ignoring"); + tqDebug("knode: retrieved broken group-line - ignoring"); #endif } else { s[0] = 0; // cut string @@ -297,7 +297,7 @@ void KNNntpClient::doCheckNewGroups() while (*s !=- '\0' && *s != '\t' && *s != ' ') s++; if (*s == '\0') { #ifndef NDEBUG - qDebug("knode: retrieved broken group-description - ignoring"); + tqDebug("knode: retrieved broken group-description - ignoring"); #endif } else { while (*s == ' ' || *s == '\t') s++; // go on to the description @@ -378,17 +378,17 @@ void KNNntpClient::doFetchNewHeaders() oldlast=target->lastNr(); toFetch=last-oldlast; - //qDebug("knode: last %d oldlast %d toFetch %d\n",last,oldlast,toFetch); + //tqDebug("knode: last %d oldlast %d toFetch %d\n",last,oldlast,toFetch); if(toFetch<=0) { - //qDebug("knode: No new Articles in group\n"); + //tqDebug("knode: No new Articles in group\n"); target->setLastNr(last); // don't get stuck when the article numbers wrap return; } if(toFetch>target->maxFetch()) { toFetch=target->maxFetch(); - //qDebug("knode: Fetching only %d articles\n",toFetch); + //tqDebug("knode: Fetching only %d articles\n",toFetch); } progressValue = 100; @@ -413,7 +413,7 @@ void KNNntpClient::doFetchNewHeaders() } } - //qDebug("knode: KNNntpClient::doFetchNewHeaders() : xover %d-%d", last-toFetch+1, last); + //tqDebug("knode: KNNntpClient::doFetchNewHeaders() : xover %d-%d", last-toFetch+1, last); cmd.sprintf("xover %d-%d",last-toFetch+1,last); if (!sendCommand(cmd,rep)) return; @@ -512,7 +512,7 @@ void KNNntpClient::doPostArticle() if (rep==223) { // 223 n <a> article retrieved - request text separately #ifndef NDEBUG - qDebug("knode: STAT successful, we have probably already sent this article."); + tqDebug("knode: STAT successful, we have probably already sent this article."); #endif return; // the article is already on the server, lets put it silently into the send folder } @@ -529,7 +529,7 @@ void KNNntpClient::doPostArticle() art->messageID()->from7BitString(s.mid(start,end-start+1)); art->assemble(); #ifndef NDEBUG - qDebug("knode: using the message-id recommended by the server: %s",s.mid(start,end-start+1).data()); + tqDebug("knode: using the message-id recommended by the server: %s",s.mid(start,end-start+1).data()); #endif } } @@ -595,7 +595,7 @@ bool KNNntpClient::openConnection() if (rep==500) { #ifndef NDEBUG - qDebug("knode: \"MODE READER\" command not recognized."); + tqDebug("knode: \"MODE READER\" command not recognized."); #endif } else if ( ( rep < 200 ) || ( rep > 299 ) ) { // RFC977: 2xx - Command ok @@ -607,7 +607,7 @@ bool KNNntpClient::openConnection() // logon now, some newsserver send a incomplete group list otherwise if (account.needsLogon() && !account.user().isEmpty()) { - //qDebug("knode: user: %s",account.user().latin1()); + //tqDebug("knode: user: %s",account.user().latin1()); TQCString command = "AUTHINFO USER "; command += account.user().local8Bit(); @@ -615,7 +615,7 @@ bool KNNntpClient::openConnection() return false; if (rep==381) { // 381 PASS required - //qDebug("knode: Password required"); + //tqDebug("knode: Password required"); if (!account.pass().length()) { job->setErrorString(i18n("Authentication failed.\nCheck your username and password.")); @@ -623,7 +623,7 @@ bool KNNntpClient::openConnection() return false; } - //qDebug("knode: pass: %s",account.pass().latin1()); + //tqDebug("knode: pass: %s",account.pass().latin1()); command = "AUTHINFO PASS "; command += account.pass().local8Bit(); @@ -632,11 +632,11 @@ bool KNNntpClient::openConnection() if (rep==281) { // 281 authorization success #ifndef NDEBUG - qDebug("knode: Authorization successful"); + tqDebug("knode: Authorization successful"); #endif } else { #ifndef NDEBUG - qDebug("knode: Authorization failed"); + tqDebug("knode: Authorization failed"); #endif job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine())); job->setAuthError(true); @@ -646,12 +646,12 @@ bool KNNntpClient::openConnection() } else { if (rep==281) { // 281 authorization success #ifndef NDEBUG - qDebug("knode: Authorization successful"); + tqDebug("knode: Authorization successful"); #endif } else { if ((rep==482)||(rep==500)) { //482 Authentication rejected #ifndef NDEBUG - qDebug("knode: Authorization failed"); // we don't care, the server can refuse the info + tqDebug("knode: Authorization failed"); // we don't care, the server can refuse the info #endif } else { handleErrors(); @@ -675,7 +675,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; if (rep==480) { // 480 requesting authorization - //qDebug("knode: Authorization requested"); + //tqDebug("knode: Authorization requested"); if (!account.user().length()) { job->setErrorString(i18n("Authentication failed.\nCheck your username and password.")); @@ -684,7 +684,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; } - //qDebug("knode: user: %s",account.user().data()); + //tqDebug("knode: user: %s",account.user().data()); TQCString command = "AUTHINFO USER "; command += account.user().local8Bit(); @@ -692,7 +692,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; if (rep==381) { // 381 PASS required - //qDebug("knode: Password required"); + //tqDebug("knode: Password required"); if (!account.pass().length()) { job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine())); @@ -701,7 +701,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; } - //qDebug("knode: pass: %s",account.pass().data()); + //tqDebug("knode: pass: %s",account.pass().data()); command = "AUTHINFO PASS "; command += account.pass().local8Bit(); @@ -711,7 +711,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) if (rep==281) { // 281 authorization success #ifndef NDEBUG - qDebug("knode: Authorization successful"); + tqDebug("knode: Authorization successful"); #endif if (!KNProtocolClient::sendCommand(cmd,rep)) // retry the original command return false; |