Re: [Dbus-cxx-devel] Array of String and Variants
Status: Beta
Brought to you by:
rvinyard
From: Rick L. V. Jr. <rvi...@cs...> - 2010-02-11 16:07:46
|
pan son wrote: > I do not see any example showing implementation if an object method > accepts > Variants or arrays of strings. > Moreover, the dbus-cxx-xml2cpp tool do not generate proxy methods for such > type of object methods. Variants aren't supported. Arrays are new enough that I'm not sure if the structure will support them. I've only tried primitives with arrays so far. > dbus-c++ use to support them by ::DBus::Variant and even std::map of > (string > , variant). > > Can anyone throw some light on this please? > Any help is highly appreciated. At some point I'd like dbus-cxx to also support those, but I haven't had time to come up with a clean implementation that I'm happy with. dbus-cxx is, for the most part, completely unrelated to dbus-c++. For anything in the dbus library that isn't supported by dbus-cxx (like variants) you would have to fall back to the dbus C library through the cobj() methods which returns a pointer to the underlying C object. But, if you wanted to implement Variants and or test/add an example of string arrays I'd be happy to accept a patch. --- Rick |