From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/kde/mcop-dcop/mcopdcopobject.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'arts/kde/mcop-dcop/mcopdcopobject.cpp') diff --git a/arts/kde/mcop-dcop/mcopdcopobject.cpp b/arts/kde/mcop-dcop/mcopdcopobject.cpp index f1d1acad5..fcd5be95f 100644 --- a/arts/kde/mcop-dcop/mcopdcopobject.cpp +++ b/arts/kde/mcop-dcop/mcopdcopobject.cpp @@ -23,8 +23,8 @@ //#include #include -#include -#include +#include +#include using namespace std; @@ -34,10 +34,10 @@ using namespace std; class MCOPDCOPObjectPrivate { public: - QMap dynamicFunctions; + TQMap dynamicFunctions; }; -MCOPDCOPObject::MCOPDCOPObject(QCString name) : DCOPObject(name) +MCOPDCOPObject::MCOPDCOPObject(TQCString name) : DCOPObject(name) { d = new MCOPDCOPObjectPrivate(); } @@ -51,14 +51,14 @@ QCStringList MCOPDCOPObject::functionsDynamic() { QCStringList returnList; - QMap::iterator it; + TQMap::iterator it; for(it = d->dynamicFunctions.begin(); it != d->dynamicFunctions.end(); ++it) returnList.append(it.key()); return returnList; } -Arts::Buffer *MCOPDCOPObject::callFunction(MCOPEntryInfo *entry, QCString ifaceName, const QByteArray &data) +Arts::Buffer *MCOPDCOPObject::callFunction(MCOPEntryInfo *entry, TQCString ifaceName, const TQByteArray &data) { Arts::Object workingObject = Arts::SubClass(string(ifaceName)); Arts::DynamicRequest request(workingObject); @@ -71,11 +71,11 @@ Arts::Buffer *MCOPDCOPObject::callFunction(MCOPEntryInfo *entry, QCString ifaceN QCStringList::iterator it; for(it = list.begin(); it != list.end(); ++it) { - QCString param = *it; + TQCString param = *it; kdDebug() << "PARAM: " << param << endl; - QDataStream argStream(data, IO_ReadOnly); + TQDataStream argStream(data, IO_ReadOnly); if(param == "long") request.param(MCOPDCOPTools::getLong(argStream)); @@ -94,16 +94,16 @@ Arts::Buffer *MCOPDCOPObject::callFunction(MCOPEntryInfo *entry, QCString ifaceN return newBuffer; } -bool MCOPDCOPObject::processDynamic(const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData) +bool MCOPDCOPObject::processDynamic(const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData) { - QMap::iterator it; + TQMap::iterator it; for(it = d->dynamicFunctions.begin(); it != d->dynamicFunctions.end(); ++it) { MCOPEntryInfo *entry = it.data(); if((entry->functionName() + entry->signature()) == fun) { - QCString type = entry->functionType(); + TQCString type = entry->functionType(); if(type == "void") { @@ -116,9 +116,9 @@ bool MCOPDCOPObject::processDynamic(const QCString &fun, const QByteArray &data, } else if(type == "string") { - replyType = "QCString"; + replyType = "TQCString"; - QDataStream reply(replyData, IO_WriteOnly); + TQDataStream reply(replyData, IO_WriteOnly); reply << "fooo!"; } else if(type == "long") @@ -135,7 +135,7 @@ bool MCOPDCOPObject::processDynamic(const QCString &fun, const QByteArray &data, delete result; } - QDataStream reply(replyData, IO_WriteOnly); + TQDataStream reply(replyData, IO_WriteOnly); reply << returnCode; } @@ -146,7 +146,7 @@ bool MCOPDCOPObject::processDynamic(const QCString &fun, const QByteArray &data, return false; } -void MCOPDCOPObject::addDynamicFunction(QCString value, MCOPEntryInfo *entry) +void MCOPDCOPObject::addDynamicFunction(TQCString value, MCOPEntryInfo *entry) { d->dynamicFunctions.insert(value, entry); } -- cgit v1.2.1