diff options
Diffstat (limited to 'knode/knprotocolclient.cpp')
-rw-r--r-- | knode/knprotocolclient.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/knode/knprotocolclient.cpp b/knode/knprotocolclient.cpp index 1d992d8a3..4831087c9 100644 --- a/knode/knprotocolclient.cpp +++ b/knode/knprotocolclient.cpp @@ -166,7 +166,7 @@ void KNProtocolClient::waitForWork() if (isConnected()) // connection is ready processJob(); } - errorPrefix = QString::null; + errorPrefix = TQString::null; clearPipe(); } @@ -235,7 +235,7 @@ void KNProtocolClient::closeConnection() int ret = KSocks::self()->select(FD_SETSIZE, NULL, &fdsW, NULL, &tv); if (ret > 0) { // we can write... - QCString cmd = "QUIT\r\n"; + TQCString cmd = "QUIT\r\n"; int todo = cmd.length(); KSocks::self()->write(tcpSocket,&cmd.data()[0],todo); } @@ -244,7 +244,7 @@ void KNProtocolClient::closeConnection() // sends a command (one line), return code is written to rep -bool KNProtocolClient::sendCommand(const QCString &cmd, int &rep) +bool KNProtocolClient::sendCommand(const TQCString &cmd, int &rep) { if (!sendStr(cmd + "\r\n")) return false; @@ -255,7 +255,7 @@ bool KNProtocolClient::sendCommand(const QCString &cmd, int &rep) // checks return code and calls handleErrors() if necessary -bool KNProtocolClient::sendCommandWCheck(const QCString &cmd, int rep) +bool KNProtocolClient::sendCommandWCheck(const TQCString &cmd, int rep) { int code; @@ -270,11 +270,11 @@ bool KNProtocolClient::sendCommandWCheck(const QCString &cmd, int rep) // sends a message (multiple lines) -bool KNProtocolClient::sendMsg(const QCString &msg) +bool KNProtocolClient::sendMsg(const TQCString &msg) { const char *line = msg.data(); const char *end; - QCString buffer; + TQCString buffer; size_t length; char inter[10000]; @@ -382,7 +382,7 @@ bool KNProtocolClient::getNextLine() // receives a message (multiple lines) -bool KNProtocolClient::getMsg(QStrList &msg) +bool KNProtocolClient::getMsg(TQStrList &msg) { char *line; @@ -469,7 +469,7 @@ bool KNProtocolClient::waitForRead() if (ret == -1) { // select failed if (job) { - QString str = i18n("Communication error:\n"); + TQString str = i18n("Communication error:\n"); str += strerror(errno); job->setErrorString(str); } @@ -531,7 +531,7 @@ bool KNProtocolClient::waitForWrite() if (ret == -1) { // select failed if (job) { - QString str = i18n("Communication error:\n"); + TQString str = i18n("Communication error:\n"); str += strerror(errno); job->setErrorString(str); } @@ -579,7 +579,7 @@ void KNProtocolClient::closeSocket() // sends str to the server -bool KNProtocolClient::sendStr(const QCString &str) +bool KNProtocolClient::sendStr(const TQCString &str) { int ret; int todo = str.length(); @@ -591,7 +591,7 @@ bool KNProtocolClient::sendStr(const QCString &str) ret = KSocks::self()->write(tcpSocket,&str.data()[done],todo); if (ret <= 0) { if (job) { - QString str = i18n("Communication error:\n"); + TQString str = i18n("Communication error:\n"); str += strerror(errno); job->setErrorString(str); } |