summaryrefslogtreecommitdiffstats
path: root/knode/knprotocolclient.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /knode/knprotocolclient.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'knode/knprotocolclient.cpp')
-rw-r--r--knode/knprotocolclient.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/knode/knprotocolclient.cpp b/knode/knprotocolclient.cpp
index 1d992d8a..4831087c 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);
}