summaryrefslogtreecommitdiffstats
path: root/knode/knprotocolclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'knode/knprotocolclient.h')
-rw-r--r--knode/knprotocolclient.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/knode/knprotocolclient.h b/knode/knprotocolclient.h
index e531a278..a17b6878 100644
--- a/knode/knprotocolclient.h
+++ b/knode/knprotocolclient.h
@@ -17,9 +17,9 @@
#ifndef KNPROTOCOLCLIENT_H
#define KNPROTOCOLCLIENT_H
-#include <qdatetime.h>
-#include <qthread.h>
-#include <qcstring.h>
+#include <tqdatetime.h>
+#include <tqthread.h>
+#include <tqcstring.h>
#include <knserverinfo.h>
@@ -28,7 +28,7 @@ class KNJobData;
struct in_addr;
-class KNProtocolClient : public QThread {
+class KNProtocolClient : public TQThread {
public:
enum threadSignal { TSworkDone=0, TSjobStarted=1, TSconnect=2, TSloadGrouplist=3,
@@ -66,18 +66,18 @@ class KNProtocolClient : public QThread {
virtual void closeConnection();
/** sends a command (one line), return code is written to rep */
- virtual bool sendCommand(const QCString &cmd, int &rep);
+ virtual bool sendCommand(const TQCString &cmd, int &rep);
/** checks return code and calls handleErrors() if necessary */
- bool sendCommandWCheck(const QCString &cmd, int rep);
+ bool sendCommandWCheck(const TQCString &cmd, int rep);
/** sends a message (multiple lines) */
- bool sendMsg(const QCString &msg);
+ bool sendMsg(const TQCString &msg);
/** reads next complete line of input */
bool getNextLine();
/** returns pointer to current line of input */
char* getCurrentLine() { return thisLine; };
/** receives a message (multiple lines) */
- bool getMsg(QStrList &msg);
+ bool getMsg(TQStrList &msg);
/** reads next line and returns the response code */
bool getNextResponse(int &rep);
/** checks return code and calls handleErrors() if necessary */
@@ -91,7 +91,7 @@ class KNProtocolClient : public QThread {
KNJobData *job;
KNServerInfo account;
/** handleErrors() adds this string to the error message */
- QString errorPrefix;
+ TQString errorPrefix;
int progressValue, predictedLines, doneLines;
bool byteCountMode;
@@ -102,7 +102,7 @@ class KNProtocolClient : public QThread {
bool waitForWrite();
void closeSocket();
/** sends str to the server */
- bool sendStr(const QCString &str);
+ bool sendStr(const TQCString &str);
/** removes start/stop signal */
void clearPipe();
@@ -114,7 +114,7 @@ class KNProtocolClient : public QThread {
int tcpSocket;
/** bytes in&out for the current connection */
int byteCount;
- QTime timer;
+ TQTime timer;
bool mTerminate;
};