summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/lib/internal.cpp')
-rw-r--r--libksirtet/lib/internal.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libksirtet/lib/internal.cpp b/libksirtet/lib/internal.cpp
index c7b69f9e..f8b34085 100644
--- a/libksirtet/lib/internal.cpp
+++ b/libksirtet/lib/internal.cpp
@@ -1,7 +1,7 @@
#include "internal.h"
#include "internal.moc"
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <klocale.h>
#include "mp_interface.h"
@@ -67,17 +67,17 @@ void Server::serverTimeout()
//-----------------------------------------------------------------------------
Network::Network(MPInterface *_interface,
- QValueList<MPInterface::Data> &_boards,
- const QPtrList<RemoteHostData> &rhd)
+ TQValueList<MPInterface::Data> &_boards,
+ const TQPtrList<RemoteHostData> &rhd)
: Local(_interface, _boards)
{
RemoteData rd;
- QPtrListIterator<RemoteHostData> it(rhd);
+ TQPtrListIterator<RemoteHostData> it(rhd);
for (; it.current(); ++it) {
rd.socket = it.current()->socket;
rd.socket->notifier()->setEnabled(TRUE);
- connect(rd.socket->notifier(), SIGNAL(activated(int)),
- SLOT(notifier(int)));
+ connect(rd.socket->notifier(), TQT_SIGNAL(activated(int)),
+ TQT_SLOT(notifier(int)));
uint nb = it.current()->bds.count();
Q_ASSERT( nb>=1 );
rd.array = new BufferArray(nb);
@@ -102,7 +102,7 @@ uint Network::nbPlayers() const
return nb;
}
-QString Network::playerName(uint i) const
+TQString Network::playerName(uint i) const
{
uint l = Local::nbPlayers();
if ( i<l ) return Local::playerName(i);
@@ -111,7 +111,7 @@ QString Network::playerName(uint i) const
if ( i<(l+ll) ) return remotes[k].names[i-l];
l += ll;
}
- return QString::null; // dummy
+ return TQString::null; // dummy
}
IOBuffer *Network::ioBuffer(uint i) const
@@ -141,7 +141,7 @@ void Network::brokeError(uint i)
disconnectHost(i, i18n("Link broken"));
}
-void Network::disconnectHost(uint i, const QString &msg)
+void Network::disconnectHost(uint i, const TQString &msg)
{
delete remotes[i].socket;
delete remotes[i].array;
@@ -151,24 +151,24 @@ void Network::disconnectHost(uint i, const QString &msg)
//-----------------------------------------------------------------------------
LocalServer::LocalServer(MPInterface *_interface,
- QValueList<MPInterface::Data> &_boards,
+ TQValueList<MPInterface::Data> &_boards,
uint _interval)
: Local(_interface, _boards), Server(_interval)
{
- connect(&timer, SIGNAL(timeout()), SLOT(timeoutSlot()));
- connect(&ctimer, SIGNAL(timeout()), SLOT(congestionTimeoutSlot()));
+ connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutSlot()));
+ connect(&ctimer, TQT_SIGNAL(timeout()), TQT_SLOT(congestionTimeoutSlot()));
serverTimeout();
}
//-----------------------------------------------------------------------------
NetworkServer::NetworkServer(MPInterface *_interface,
- QValueList<MPInterface::Data> &_boards,
- const QPtrList<RemoteHostData> &rhd, uint _interval)
+ TQValueList<MPInterface::Data> &_boards,
+ const TQPtrList<RemoteHostData> &rhd, uint _interval)
: Network(_interface, _boards, rhd), Server(_interval),
nbReceived(remotes.count())
{
- connect(&timer, SIGNAL(timeout()), SLOT(timeoutSlot()));
- connect(&ctimer, SIGNAL(timeout()), SLOT(congestionTimeoutSlot()));
+ connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutSlot()));
+ connect(&ctimer, TQT_SIGNAL(timeout()), TQT_SLOT(congestionTimeoutSlot()));
// to catch unexpected data
for (uint i=0; i<remotes.count(); i++) remotes[i].received = TRUE;
nbReceived = remotes.count();