From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdict/dict.h | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kdict/dict.h') 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 -#include -#include +#include +#include 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 jobList; + TQPtrList jobList; bool newServer,clientDoneInProgress; }; -- cgit v1.2.1