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

T Lee Davidson t.lee.davidson at gmail.com
Mon Jan 29 09:45:33 CET 2018


Thanks, Fabien. I was really eager to dive in to that example, except ... I can't find it.

I looked at All software on the Farm, not just Examples. I even looked on the Wiki thinking it might be there. It might be, but
I don't see it.

Will you give me a clue?


-- 
Lee


On 01/29/2018 02:29 AM, Fabien Bodard wrote:
> 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 <mailto: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 <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 <https://lists.gambas-basic.org/listinfo/user>
> 
>     Hosted by https://www.hostsharing.net
> 
> 
> 
> 
> -- 
> Fabien Bodard
> 
> 
> 
> --------------------------------------------------
> 
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
> 
> Hosted by https://www.hostsharing.net
> 


More information about the User mailing list