trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2018

Re: Re: help with tqt dbus

From: deloptes <deloptes@...>
Date: Thu, 31 May 2018 11:31:34 +0200
Michele Calgaro wrote:

> I will try to take a look at this during the weekend and give some
> feedback.

If it helps I looked further into dbus documentation and dbus-1-tqt

so the signature for output of GetManagedObjects is a{oa{sa{sv}}}

it looks like the first a{ is ignored, but if I ask the reply for it's type
it says Map ...

from my sample code
...
    kdDebug() << "reply.front().type() : " << reply.front().typeName() <<
endl;

    bool ok = false;
    TQValueList<TQT_DBusData> list = reply.front().toTQValueList(&ok);
    if (!ok) kdDebug() << "toTQValueList failed" << endl;
    else kdDebug() << "toTQValueList worked" << endl;
    if (!ok) return -1;

says

reply.front().type() : Map
toTQValueList failed

I tracked this down to TQT_DBusMarshall::parseSignature()

it evidently ignores the first a{ and consequently returns only the last oa{

I think I should file a bug now, but will wait for you to confirm and I will
write some code to construct reconstruct TQT_DBusData wih signature
a{oa{sa{sv}}}.

regards