[Interest] QtDBus interface design question

Roland Winklmeier roland.m.winklmeier at gmail.com
Fri Nov 8 19:11:32 CET 2013


Hi mandeep,

thanks for the answer. I was a little bit concerned, since I also want
to have the possibility to sort the table, but with transfering only
strings, I  would loose the operator< () implementation. But I think I
can workaround that, by passing an enum with the sort order and let the
sender to the sorting already.

I'm going to do some benchmarks, how fast each of the "solutions" are
and choose the quickest.

Maybe some DBus interface design expert can suggest something else
meanwhile.

BR,
Roland

Am 08.11.2013 08:53, schrieb Mandeep Sandhu:
>> The only solution I can imagine is to pass the entire table in one DBus
>> message, but how. I cannot pass the objects itself, because I cannot
> 
> How about returning an "array" of "string"s in the method call? Both
> are valid DBus types and you could probably concatenate the various
> properties using a delimiter and tokenize them at the receiver end.
> 
> I'm no dbus expert and have mostly used QtDbus to communicate with
> existing services, like NetworkManager etc, so CMIIW! :)
> 
> HTH,
> -mandeep
> 
>> transfer an QObject via DBus. Creating plain structs and pass them is an
>> option but is rather dirty to me.
>>
>> How are DBus experts handling this? I know our DBus interface is quite
>> complex and most others are far easier, but there must be a solution.
>> I'm still a DBus noob, so any hint how to change the design would be
>> very very welcome.
>>
>> Thanks very much
>> Roland
>>
>>
>>
>>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list