summaryrefslogtreecommitdiffstats
path: root/arts/kde/mcop-dcop/kmcop.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /arts/kde/mcop-dcop/kmcop.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/kde/mcop-dcop/kmcop.cpp')
-rw-r--r--arts/kde/mcop-dcop/kmcop.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/arts/kde/mcop-dcop/kmcop.cpp b/arts/kde/mcop-dcop/kmcop.cpp
index 22e19dc9d..1eb14f0f3 100644
--- a/arts/kde/mcop-dcop/kmcop.cpp
+++ b/arts/kde/mcop-dcop/kmcop.cpp
@@ -23,8 +23,8 @@
#include <klocale.h>
#include <dcopclient.h>
-#include <qvaluelist.h>
-#include <qcstring.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
#include <kartsdispatcher.h>
#include <soundserver.h>
@@ -43,7 +43,7 @@ class KMCOPPrivate
{
public:
MCOPInfo mcopInfo;
- QPtrList<MCOPDCOPObject> list;
+ TQPtrList<MCOPDCOPObject> list;
};
int main(int argc, char **argv)
@@ -74,7 +74,7 @@ int main(int argc, char **argv)
return app.exec();
}
-KMCOP::KMCOP() : QObject(), DCOPObject("arts")
+KMCOP::KMCOP() : TQObject(), DCOPObject("arts")
{
d = new KMCOPPrivate();
d->mcopInfo = Reference("global:Arts_MCOPInfo");
@@ -91,10 +91,10 @@ int KMCOP::objectCount()
return d->mcopInfo.objectCount();
}
-QCString KMCOP::correctType(const QCString &str)
+TQCString KMCOP::correctType(const TQCString &str)
{
if(str == "string")
- return "QCString";
+ return "TQCString";
return str;
}
@@ -106,7 +106,7 @@ void KMCOP::addInterfacesHackHackHack()
if(!obj.isNull())
{
- QCString interfaceName = obj._interfaceName().c_str();
+ TQCString interfaceName = obj._interfaceName().c_str();
if(interfaceName != "Arts::TraderOffer")
{
@@ -121,21 +121,21 @@ void KMCOP::addInterfacesHackHackHack()
vector<MethodDef>::iterator ifaceMethodsIterator;
for(ifaceMethodsIterator = ifaceMethods.begin(); ifaceMethodsIterator != ifaceMethods.end(); ifaceMethodsIterator++)
{
- QCString function, signature;
+ TQCString function, signature;
MCOPEntryInfo *entry = new MCOPEntryInfo();
MethodDef currentMethod = *ifaceMethodsIterator;
vector<ParamDef> currentParameters = currentMethod.signature;
- QCString newType = correctType(QCString(currentMethod.type.c_str()));
+ TQCString newType = correctType(TQCString(currentMethod.type.c_str()));
entry->setFunctionType(newType);
- entry->setFunctionName(QCString(currentMethod.name.c_str()));
+ entry->setFunctionName(TQCString(currentMethod.name.c_str()));
- function = entry->functionType() + QCString(" ") + entry->functionName() + QCString("(");
+ function = entry->functionType() + TQCString(" ") + entry->functionName() + TQCString("(");
- signature = QCString("(");
+ signature = TQCString("(");
QCStringList signatureList;
@@ -145,20 +145,20 @@ void KMCOP::addInterfacesHackHackHack()
ParamDef parameter = *methodParametersIterator;
if(methodParametersIterator != currentParameters.begin())
{
- function += QCString(", ");
- signature += QCString(",");
+ function += TQCString(", ");
+ signature += TQCString(",");
}
- QCString correctParameter = correctType(QCString(parameter.type.c_str()));
+ TQCString correctParameter = correctType(TQCString(parameter.type.c_str()));
function += correctParameter;
signature += correctParameter;
- signatureList.append(QCString(parameter.type.c_str()));
+ signatureList.append(TQCString(parameter.type.c_str()));
}
- function += QCString(")");
- signature += QCString(")");
+ function += TQCString(")");
+ signature += TQCString(")");
entry->setSignature(signature);
entry->setSignatureList(signatureList);