Qt dbus not exporting the full dbus interface

smog zer smogzer at gmail.com
Mon Jun 1 16:53:16 PDT 2009


I found the problem.
I registered the adaptor instead of the instance, i.e. :
>    QDBusConnection::sessionBus().registerObject ( "/erf", this->hordeAdaptor );
instead of
>    QDBusConnection::sessionBus().registerObject ( "/erf", this->erfhorde );
Bye.

On Mon, Jun 1, 2009 at 8:09 PM, smog zer <smogzer at gmail.com> wrote:
> Hi fellow developers,
>
> I'm having some issues generating QT bindings, the thing is that i
> create the class and the adaptor
>
>
>    this->erfhorde = new Erfhorde();
>
>    this->hordeAdaptor = new ErfhordeAdaptor ( this->erfhorde );
>
>    QDBusConnection::sessionBus().registerObject ( "/erf", this->hordeAdaptor );
>    QDBusConnection::sessionBus().registerService ( "aaaa.rendering.erfhorde" );
>
>
> When i print the entity i only get the introspection and the
> properties interfaces, and not my own interface.
>
> <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
> <node>
>  <interface name="org.freedesktop.DBus.Properties">
>    <method name="Get">
>      <arg name="interface_name" type="s" direction="in"/>
>      <arg name="property_name" type="s" direction="in"/>
>      <arg name="value" type="v" direction="out"/>
>    </method>
>    <method name="Set">
>      <arg name="interface_name" type="s" direction="in"/>
>      <arg name="property_name" type="s" direction="in"/>
>      <arg name="value" type="v" direction="in"/>
>    </method>
>    <method name="GetAll">
>      <arg name="interface_name" type="s" direction="in"/>
>      <arg name="values" type="a{sv}" direction="out"/>
>      <annotation name="com.trolltech.QtDBus.QtTypeName.Out0"
> value="QVariantMap"/>    </method>
>  </interface>
>  <interface name="org.freedesktop.DBus.Introspectable">
>    <method name="Introspect">
>      <arg name="xml_data" type="s" direction="out"/>
>    </method>
>  </interface>
> </node>
>
> What could i be doing wrong ?
>
> --
> João Xavier
> @ smogzer_at_gmail.com
> W3 http://miarn.cjb.net
> Institute for Systems and Robotics
> University of Coimbra
>



-- 
João Xavier
@ smogzer_at_gmail.com
W3 http://miarn.cjb.net
Institute for Systems and Robotics
University of Coimbra


More information about the dbus mailing list