diff options
Diffstat (limited to 'kwin4/kwin4/kwin4proc.cpp')
-rw-r--r-- | kwin4/kwin4/kwin4proc.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kwin4/kwin4/kwin4proc.cpp b/kwin4/kwin4/kwin4proc.cpp index 604600ec..6a655f25 100644 --- a/kwin4/kwin4/kwin4proc.cpp +++ b/kwin4/kwin4/kwin4proc.cpp @@ -38,7 +38,7 @@ #define START_REK 1 // (0) 1:Nur Stellungsbewertung bei Level 1 // 0:Level 1 schon eine Rekursion -KComputer::KComputer() : QObject(0,0) +KComputer::KComputer() : TQObject(0,0) { InitField(); @@ -51,31 +51,31 @@ KComputer::KComputer() : QObject(0,0) for (i=0;i<strlen(s2);i++) startofrow[i]=s2[i]-'0'; - connect(&proc,SIGNAL(signalCommand(QDataStream &,int ,int ,int )), - this,SLOT(slotCommand(QDataStream & ,int ,int ,int ))); - connect(&proc,SIGNAL(signalInit(QDataStream &,int)), - this,SLOT(slotInit(QDataStream & ,int ))); - connect(&proc,SIGNAL(signalTurn(QDataStream &,bool )), - this,SLOT(slotTurn(QDataStream & ,bool ))); + connect(&proc,TQT_SIGNAL(signalCommand(TQDataStream &,int ,int ,int )), + this,TQT_SLOT(slotCommand(TQDataStream & ,int ,int ,int ))); + connect(&proc,TQT_SIGNAL(signalInit(TQDataStream &,int)), + this,TQT_SLOT(slotInit(TQDataStream & ,int ))); + connect(&proc,TQT_SIGNAL(signalTurn(TQDataStream &,bool )), + this,TQT_SLOT(slotTurn(TQDataStream & ,bool ))); fprintf(stderr, "----------------->\nKComputer::Computer\n"); } -void KComputer::slotInit(QDataStream &in,int id) +void KComputer::slotInit(TQDataStream &in,int id) { fprintf(stderr,"----------------->\nKComputer::slotInit\nid:%d\n",id); /* - QByteArray buffer; - QDataStream out(buffer,IO_WriteOnly); + TQByteArray buffer; + TQDataStream out(buffer,IO_WriteOnly); int msgid=KGameMessage::IdProcessQuery; out << (int)1; proc.sendSystemMessage(out,msgid,0); */ } -void KComputer::slotTurn(QDataStream &in,bool turn) +void KComputer::slotTurn(TQDataStream &in,bool turn) { - QByteArray buffer; - QDataStream out(buffer,IO_WriteOnly); + TQByteArray buffer; + TQDataStream out(buffer,IO_WriteOnly); fprintf(stderr,"----------------->\nKComputer::slotTurn\nturn:%d\n",turn); if (turn) { @@ -91,13 +91,13 @@ void KComputer::sendValue(long value) { Q_INT8 cid=1; // notifies our KGameIO that this is a value message int id=KGameMessage::IdProcessQuery; - QByteArray buffer; - QDataStream out(buffer,IO_WriteOnly); + TQByteArray buffer; + TQDataStream out(buffer,IO_WriteOnly); out << cid << value; proc.sendSystemMessage(out,id,0); } -long KComputer::think(QDataStream &in,QDataStream &out,bool hint) +long KComputer::think(TQDataStream &in,TQDataStream &out,bool hint) { Q_INT32 pl; Q_INT32 move; @@ -174,11 +174,11 @@ long KComputer::think(QDataStream &in,QDataStream &out,bool hint) return aktwert; } -void KComputer::slotCommand(QDataStream &in,int msgid,int receiver,int sender) +void KComputer::slotCommand(TQDataStream &in,int msgid,int receiver,int sender) { fprintf(stderr,"----------------->\nKComputer::slotCommand\nMsgid:%d\n",msgid); - QByteArray buffer; - QDataStream out(buffer,IO_WriteOnly); + TQByteArray buffer; + TQDataStream out(buffer,IO_WriteOnly); switch(msgid) { case 2: // hint |