> On 10/02/10 11:18 PM, 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.
>>
>> 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.
>>
>> thanks,
>> Pan Son
Julien Bonjean wrote:
> Hi Pan,
>
> AFAIK Variants and arrays are not supported by this library.
> Regards,
>
> Julien Bonjean
>
Variants aren't supported yet, but you should be able to use DBus arrays
on messages with a std::vector of primitives. std::string might work but I
haven't tested it yet.
It's not much of an example, but the unit tests:
call_message_append_extract_iterator_array_int()
call_message_iterator_insertion_extraction_operator_array_int()
in unit-tests/messageiteratortests.cpp should give some insight.
---
Rick
|