From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libksirtet/lib/internal.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'libksirtet/lib/internal.h') diff --git a/libksirtet/lib/internal.h b/libksirtet/lib/internal.h index 4dece16a..cc74fbc4 100644 --- a/libksirtet/lib/internal.h +++ b/libksirtet/lib/internal.h @@ -1,8 +1,8 @@ #ifndef INTERNAL_H #define INTERNAL_H -#include -#include +#include +#include #include "socket.h" #include "mp_interface.h" @@ -14,12 +14,12 @@ class RemoteHostData; class Local { public: - Local(MPInterface *_interface, QValueList &_boards) + Local(MPInterface *_interface, TQValueList &_boards) : interface(_interface), ios(_boards.count()), boards(_boards) {} virtual ~Local() {} virtual uint nbPlayers() const { return boards.count(); } - virtual QString playerName(uint i) const { return boards[i].name; } + virtual TQString playerName(uint i) const { return boards[i].name; } virtual IOBuffer *ioBuffer(uint i) const { return ios[i]; } virtual void writeData(bool inverse); virtual WritingStream *globalStream() { return 0; } @@ -33,7 +33,7 @@ class Local void treatData(); private: - QValueList boards; + TQValueList boards; }; //----------------------------------------------------------------------------- @@ -45,7 +45,7 @@ class Server protected: WritingStream stream; - QTimer timer, ctimer; + TQTimer timer, ctimer; virtual void timeout() = 0; void serverTimeout(); @@ -56,17 +56,17 @@ class Server }; //----------------------------------------------------------------------------- -class Network : public QObject, public Local +class Network : public TQObject, public Local { Q_OBJECT public: - Network(MPInterface *_interface, QValueList &_boards, - const QPtrList &rhd); + Network(MPInterface *_interface, TQValueList &_boards, + const TQPtrList &rhd); virtual ~Network(); virtual uint nbPlayers() const; - QString playerName(uint i) const; + TQString playerName(uint i) const; IOBuffer *ioBuffer(uint i) const; protected slots: @@ -79,24 +79,24 @@ class Network : public QObject, public Local Socket *socket; BufferArray *array; bool received; - QStringList names; + TQStringList names; }; - QValueList remotes; + TQValueList remotes; void readError(uint i); void writeError(uint i); void brokeError(uint i); - void disconnectHost(uint i, const QString &msg); + void disconnectHost(uint i, const TQString &msg); }; //----------------------------------------------------------------------------- -class LocalServer : public QObject, public Local, public Server +class LocalServer : public TQObject, public Local, public Server { Q_OBJECT public: LocalServer(MPInterface *_interface, - QValueList &_boards, uint _interval); + TQValueList &_boards, uint _interval); WritingStream *globalStream() { return &stream; } @@ -115,8 +115,8 @@ class NetworkServer : public Network, public Server public: NetworkServer(MPInterface *_interface, - QValueList &_boards, - const QPtrList &rhd, uint _interval); + TQValueList &_boards, + const TQPtrList &rhd, uint _interval); void writeData(bool inverse); WritingStream *globalStream() { return &stream; } @@ -139,8 +139,8 @@ class Client : public Network Q_OBJECT public: - Client(MPInterface *_interface, QValueList &_boards, - const QPtrList &rhd) + Client(MPInterface *_interface, TQValueList &_boards, + const TQPtrList &rhd) : Network(_interface, _boards, rhd) {} uint nbPlayers() const { return Local::nbPlayers(); } -- cgit v1.2.1