summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/lib/internal.h')
-rw-r--r--libksirtet/lib/internal.h38
1 files changed, 19 insertions, 19 deletions
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 <qtimer.h>
-#include <qstringlist.h>
+#include <tqtimer.h>
+#include <tqstringlist.h>
#include "socket.h"
#include "mp_interface.h"
@@ -14,12 +14,12 @@ class RemoteHostData;
class Local
{
public:
- Local(MPInterface *_interface, QValueList<MPInterface::Data> &_boards)
+ Local(MPInterface *_interface, TQValueList<MPInterface::Data> &_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<MPInterface::Data> boards;
+ TQValueList<MPInterface::Data> 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<MPInterface::Data> &_boards,
- const QPtrList<RemoteHostData> &rhd);
+ Network(MPInterface *_interface, TQValueList<MPInterface::Data> &_boards,
+ const TQPtrList<RemoteHostData> &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<RemoteData> remotes;
+ TQValueList<RemoteData> 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<MPInterface::Data> &_boards, uint _interval);
+ TQValueList<MPInterface::Data> &_boards, uint _interval);
WritingStream *globalStream() { return &stream; }
@@ -115,8 +115,8 @@ class NetworkServer : public Network, public Server
public:
NetworkServer(MPInterface *_interface,
- QValueList<MPInterface::Data> &_boards,
- const QPtrList<RemoteHostData> &rhd, uint _interval);
+ TQValueList<MPInterface::Data> &_boards,
+ const TQPtrList<RemoteHostData> &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<MPInterface::Data> &_boards,
- const QPtrList<RemoteHostData> &rhd)
+ Client(MPInterface *_interface, TQValueList<MPInterface::Data> &_boards,
+ const TQPtrList<RemoteHostData> &rhd)
: Network(_interface, _boards, rhd) {}
uint nbPlayers() const { return Local::nbPlayers(); }