summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kgameprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kgameprocess.cpp')
-rw-r--r--libkdegames/kgame/kgameprocess.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkdegames/kgame/kgameprocess.cpp b/libkdegames/kgame/kgameprocess.cpp
index ffbf0936..9dcc66c0 100644
--- a/libkdegames/kgame/kgameprocess.cpp
+++ b/libkdegames/kgame/kgameprocess.cpp
@@ -52,8 +52,8 @@ KGameProcess::KGameProcess() : TQObject(0,0)
mMessageIO=new KMessageFilePipe(this,&rFile,&wFile);
// mMessageClient=new KMessageClient(this);
// mMessageClient->setServer(mMessageIO);
-// connect (mMessageClient, TQT_SIGNAL(broadcastReceived(const TQByteArray&, Q_UINT32)),
-// this, TQT_SLOT(receivedMessage(const TQByteArray&, Q_UINT32)));
+// connect (mMessageClient, TQT_SIGNAL(broadcastReceived(const TQByteArray&, TQ_UINT32)),
+// this, TQT_SLOT(receivedMessage(const TQByteArray&, TQ_UINT32)));
connect (mMessageIO, TQT_SIGNAL(received(const TQByteArray&)),
this, TQT_SLOT(receivedMessage(const TQByteArray&)));
fprintf(stderr,"KGameProcess::constructor %p %p\n",&rFile,&wFile);
@@ -88,7 +88,7 @@ bool KGameProcess::exec(int argc, char *argv[])
// TQByteArray buffer;
// TQDataStream wstream(buffer,IO_WriteOnly);
// then stream data into the stream and call this function
-void KGameProcess::sendSystemMessage(TQDataStream &stream,int msgid,Q_UINT32 receiver)
+void KGameProcess::sendSystemMessage(TQDataStream &stream,int msgid,TQ_UINT32 receiver)
{
fprintf(stderr,"KGameProcess::sendMessage id=%d recv=%d",msgid,receiver);
TQByteArray a;
@@ -107,7 +107,7 @@ void KGameProcess::sendSystemMessage(TQDataStream &stream,int msgid,Q_UINT32 rec
if (mMessageIO) mMessageIO->send(a);
}
-void KGameProcess::sendMessage(TQDataStream &stream,int msgid,Q_UINT32 receiver)
+void KGameProcess::sendMessage(TQDataStream &stream,int msgid,TQ_UINT32 receiver)
{
sendSystemMessage(stream,msgid+KGameMessage::IdUser,receiver);
}
@@ -133,19 +133,19 @@ void KGameProcess::receivedMessage(const TQByteArray& receiveBuffer)
{
TQDataStream stream(receiveBuffer, IO_ReadOnly);
int msgid;
- Q_UINT32 sender;
- Q_UINT32 receiver;
+ TQ_UINT32 sender;
+ TQ_UINT32 receiver;
KGameMessage::extractHeader(stream, sender, receiver, msgid);
fprintf(stderr,"------ receiveNetworkTransmission(): id=%d sender=%d,recv=%d\n",msgid,sender,receiver);
switch(msgid)
{
case KGameMessage::IdTurn:
- Q_INT8 b;
+ TQ_INT8 b;
stream >> b;
emit signalTurn(stream,(bool)b);
break;
case KGameMessage::IdIOAdded:
- Q_INT16 id;
+ TQ_INT16 id;
stream >> id;
emit signalInit(stream,(int)id);
break;