summaryrefslogtreecommitdiffstats
path: root/kdict/dict.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kdict/dict.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/dict.h')
-rw-r--r--kdict/dict.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/kdict/dict.h b/kdict/dict.h
index adb87ed9..53e5db3d 100644
--- a/kdict/dict.h
+++ b/kdict/dict.h
@@ -20,8 +20,8 @@
#define _DICT_H_
#include <pthread.h>
-#include <qptrlist.h>
-#include <qsocketnotifier.h>
+#include <tqptrlist.h>
+#include <tqsocketnotifier.h>
class QSocketNotifier;
struct in_addr;
@@ -65,29 +65,29 @@ public:
ErrMsgTooLong
};
- JobData(QueryType Ntype,bool NnewServer,QString const& Nserver,int Nport,
- int NidleHold, int Ntimeout, int NpipeSize, QString const& Nencoding, bool NAuthEnabled,
- QString const& Nuser, QString const& Nsecret, unsigned int NheadLayout);
+ JobData(QueryType Ntype,bool NnewServer,TQString const& Nserver,int Nport,
+ int NidleHold, int Ntimeout, int NpipeSize, TQString const& Nencoding, bool NAuthEnabled,
+ TQString const& Nuser, TQString const& Nsecret, unsigned int NheadLayout);
QueryType type;
ErrType error;
bool canceled;
int numFetched;
- QString result;
- QStringList matches;
+ TQString result;
+ TQStringList matches;
- QString query;
- QStringList defines;
+ TQString query;
+ TQStringList defines;
bool newServer;
- QString server;
+ TQString server;
int port, timeout, pipeSize, idleHold;
- QString encoding;
+ TQString encoding;
bool authEnabled;
- QString user, secret;
- QStringList databases,strategies;
- QString strategy;
+ TQString user, secret;
+ TQStringList databases,strategies;
+ TQString strategy;
unsigned int headLayout;
};
@@ -134,16 +134,16 @@ private:
void handleErrors();
void resultAppend(const char* str);
- void resultAppend(QString str);
+ void resultAppend(TQString str);
JobData *job;
char *input;
- QCString cmdBuffer;
+ TQCString cmdBuffer;
const unsigned int inputSize;
char *thisLine, *nextLine, *inputEnd;
int fdPipeIn,fdPipeOut; //IPC-Pipes to/from async thread
int tcpSocket,timeout,idleHold;
- QTextCodec *codec;
+ TQTextCodec *codec;
};
@@ -163,10 +163,10 @@ public slots:
void serverChanged(); // inform the client when server settings get changed
void stop(); // cancel all pending jobs
- void define(const QString &query);
- void getDefinitions(QStringList query);
- void match(const QString &query);
- void showDbInfo(const QString &db); // fetch detailed db info
+ void define(const TQString &query);
+ void getDefinitions(TQStringList query);
+ void match(const TQString &query);
+ void showDbInfo(const TQString &db); // fetch detailed db info
void showDatabases(); // fetch misc. info...
void showStrategies();
void showInfo();
@@ -175,10 +175,10 @@ public slots:
signals:
void infoReady(); // updateServer done
- void resultReady(const QString &result, const QString &query); // define done
- void matchReady(const QStringList &result); // match done
- void started(const QString &message); // Client is active now, activate indicator
- void stopped(const QString &message); // Client is now halted, deactivate indicator
+ void resultReady(const TQString &result, const TQString &query); // define done
+ void matchReady(const TQStringList &result); // match done
+ void started(const TQString &message); // Client is active now, activate indicator
+ void stopped(const TQString &message); // Client is now halted, deactivate indicator
private slots:
@@ -186,16 +186,16 @@ private slots:
private:
- JobData* generateQuery(JobData::QueryType type, QString query);
+ JobData* generateQuery(JobData::QueryType type, TQString query);
void insertJob(JobData* job); // insert in job list, if nesscary cancel/remove previous jobs
void startClient(); // send start signal
void cleanPipes(); // empty the pipes, so that notifier stops firing
- QSocketNotifier *notifier;
+ TQSocketNotifier *notifier;
int fdPipeIn[2],fdPipeOut[2]; //IPC-Pipes to/from async thread
pthread_t threadID;
DictAsyncClient *client;
- QPtrList<JobData> jobList;
+ TQPtrList<JobData> jobList;
bool newServer,clientDoneInProgress;
};