Re: Re: help with tqt dbus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting




[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux