On 06/23/2010 04:39 AM, Patrick Ohly wrote:
On Wed, 2010-06-23 at 11:35 +0100, [email protected] wrote:
Do the DBus bindings for Qt (QDbus) work on MeeGo?  It has some nice
features like an interface compiler (qdbusxml2cpp).
That depends on the content of the XML interface definition and how it
is installed.

How we do it in SyncEvolution is:
       * .xml files go into /usr/share/dbus-1/interfaces/ as part of the
         development package.
       * These files need<annotation name="com.trolltech.QtDBus...">
         elements for the more complex types.
       * dbus-binding-tool for glib-dbus does not like annotations in
         <signal>  specifications, so we filter out the annotations when
         building the GTK sync-ui.

But I'm far from being an expert on this. I don't know whether all
projects with D-Bus interfaces already have the necessary QDBus
annotations.

This only happens when the signature is more complex then what qdbusxml2cpp understands. I've created a bunch of proxies for such things as udisks and libsocialweb, and I have found a few of signatures that confused the tool, but so for nothing that i needed (i.e. i just comment out the method/signal in the xml and re-run the tool.)

So far I've hit:
* a(ssxa{ss})
* a{ss}
* a(td)
* a(ssbbbubbbbbbbb)

...but i haven't filed a Qt bug yet.

    --rusty

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to