summaryrefslogtreecommitdiffstats
path: root/knode/knprotocolclient.h
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.h
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.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 e531a278b..a17b68782 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;
};