summaryrefslogtreecommitdiffstats
path: root/dcop/testdcop.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-09 20:12:21 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-09 20:12:21 -0500
commit2366375b23b770db27544720910e6c74093db638 (patch)
treea897add75ba96294a802b1670506648ed6cc0d01 /dcop/testdcop.cpp
parent76684764d9725f501d51331fb6c8f69684ce5b66 (diff)
downloadtdelibs-2366375b23b770db27544720910e6c74093db638.tar.gz
tdelibs-2366375b23b770db27544720910e6c74093db638.zip
Use tqtinterface-provided values for DCOP text types
This resolves Bug 994
Diffstat (limited to 'dcop/testdcop.cpp')
-rw-r--r--dcop/testdcop.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/dcop/testdcop.cpp b/dcop/testdcop.cpp
index 0de10d1cd..5e4cd00c7 100644
--- a/dcop/testdcop.cpp
+++ b/dcop/testdcop.cpp
@@ -57,7 +57,7 @@ bool MyDCOPObject::process(const TQCString &fun, const TQByteArray &data,
printf("Rect x = %d, y = %d, w = %d, h = %d\n", arg1.x(), arg1.y(), arg1.width(), arg1.height());
- replyType = "TQRect";
+ replyType = TQRECT_OBJECT_NAME_STRING;
TQDataStream reply( replyData, IO_WriteOnly );
TQRect r(10,20,100,200);
reply << r;
@@ -74,7 +74,7 @@ bool MyDCOPObject::process(const TQCString &fun, const TQByteArray &data,
tqDebug("countDown() countDownAction = %p", countDownAction);
if (countDownAction2)
{
- replyType = "TQString";
+ replyType = TQSTRING_OBJECT_NAME_STRING;
TQDataStream reply( replyData, IO_WriteOnly );
reply << TQString("Hey");
return true;
@@ -104,7 +104,7 @@ void MyDCOPObject::slotTimeout()
countDownCount--;
if (countDownCount == 0)
{
- TQCString replyType = "TQString";
+ TQCString replyType = TQSTRING_OBJECT_NAME_STRING;
TQByteArray replyData;
TQDataStream reply( replyData, IO_WriteOnly );
reply << TQString("Hello World");
@@ -123,7 +123,7 @@ void MyDCOPObject::slotTimeout2()
countDownCount2--;
if (countDownCount2 == 0)
{
- TQCString replyType = "TQString";
+ TQCString replyType = TQSTRING_OBJECT_NAME_STRING;
TQByteArray replyData;
TQDataStream reply( replyData, IO_WriteOnly );
reply << TQString("Hello World");
@@ -139,7 +139,7 @@ void MyDCOPObject::slotTimeout2()
QCStringList MyDCOPObject::functions()
{
QCStringList result = DCOPObject::functions();
- result << "TQRect canLaunchRockets(TQRect)";
+ result << TQRECT_OBJECT_NAME_STRING " canLaunchRockets(" TQRECT_OBJECT_NAME_STRING ")";
return result;
}