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 --- lskat/lskatproc/KChildConnect.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lskat/lskatproc/KChildConnect.cpp') diff --git a/lskat/lskatproc/KChildConnect.cpp b/lskat/lskatproc/KChildConnect.cpp index 0308a3f0..6ea4b973 100644 --- a/lskat/lskatproc/KChildConnect.cpp +++ b/lskat/lskatproc/KChildConnect.cpp @@ -20,7 +20,7 @@ #include "KChildConnect.moc" KChildConnect::KChildConnect() - : QObject(0,0) + : TQObject(0,0) { input_pending=false; inputbuffer=""; @@ -38,14 +38,14 @@ KR_STATUS KChildConnect::QueryStatus() // Communication with process bool KChildConnect::SendMsg(KEMessage *msg) { - QString sendstring=msg->ToString(); + TQString sendstring=msg->ToString(); // Debug only - if (msg->HasKey(QCString("KLogSendMsg"))) + if (msg->HasKey(TQCString("KLogSendMsg"))) { char *p; int size; FILE *fp; - msg->GetData(QCString("KLogSendMsg"),p,size); + msg->GetData(TQCString("KLogSendMsg"),p,size); if (p && (fp=fopen(p,"a")) ) { fprintf(fp,"------------------------------------\n"); @@ -58,7 +58,7 @@ bool KChildConnect::SendMsg(KEMessage *msg) } // Send string to parent -bool KChildConnect::Send(QString str) +bool KChildConnect::Send(TQString str) { if (!str || str.length()<1) return true; // no need to send crap printf("%s",str.latin1()); @@ -66,11 +66,11 @@ bool KChildConnect::Send(QString str) return true; } -void KChildConnect::Receive(QString input) +void KChildConnect::Receive(TQString input) { // Cut out CR int len,pos; - QString tmp; + TQString tmp; // Call us recursive until there are no CR left @@ -86,14 +86,14 @@ void KChildConnect::Receive(QString input) } // printf(" ---> KChildConnect::Receive: '%s'\n",(const char *)input); - if (input==QString(KEMESSAGE_HEAD) && !input_pending) + if (input==TQString(KEMESSAGE_HEAD) && !input_pending) { input_pending=true; inputcache.clear(); return ; } if (!input_pending) return ; // ignore - if (input!=QString(KEMESSAGE_TAIL)) + if (input!=TQString(KEMESSAGE_TAIL)) { inputcache.append(input.latin1()); return; @@ -104,7 +104,7 @@ void KChildConnect::Receive(QString input) char *it; for (it=inputcache.first();it!=0;it=inputcache.next()) { - msg->AddString(QCString(it)); + msg->AddString(TQCString(it)); } // printf("+- CHILDprocess:: GOT MESSAGE::Emmiting slotReceiveMsg\n"); -- cgit v1.2.1