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

Fabien Bodard gambas.fr at gmail.com
Mon Jan 29 08:29:37 CET 2018


The best example is gb.dbus.trayicon... It show really how to use
DBusVariant and structures.

2018-01-28 21:14 GMT+01:00 T Lee Davidson <t.lee.davidson at gmail.com>:

> 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
>
> --------------------------------------------------
>
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
>
> Hosted by https://www.hostsharing.net
>



-- 
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180129/52fec810/attachment.html>


More information about the User mailing list