[Gambas-user] DBus - How are signal data converted to Gambas data?

T Lee Davidson t.lee.davidson at gmail.com
Sun Jan 28 21:14:42 CET 2018


On 01/28/2018 01:53 PM, Benoît Minisini wrote:
> Le 26/01/2018 à 16:26, Hans Lehmann a écrit :
[snip]
>>
>> *Therefore, my question: Which way do I have to go - certainly about the class DBusValues, whose documentation I do not
>> understand - in order to read out the values of all arguments safely and to map them to Gambas types?*
>>
[snip]
>>
> 
> I have update the DBus documentation page at http://gambaswiki.org/wiki/doc/dbus#t10 with the datatype mapping between Gambas
> and DBus.
> 
> It should help you.
> 

DBus Explorer, from the Software farm Examples, gives a good example of how DBus datatypes can be mapped to descriptive strings.

After reading and re-reading the documenation, I also am having difficulty understanding what specific use cases there might be
for DBusValues or even a possible implementation of a class inheriting DBusValues.

In the case of Hans' returned Argument[2], for example, why not just map it into a STRUCT and then extract values further from
that? Is DBusValues _only_ for the case in which one needs to implement a class to work with DBus instead of a procedural
implementation?


-- 
Lee


More information about the User mailing list