Hi,

In documentation of DBus in qt: Declaring Slots in D-Bus Adaptors information about QDBusMessage parameter can be found.

I need access to this parameter to be able post errors instead standard output.
According to this documentation it should look like this (more or less):
Qt Code:
  1. class SomeAdaptor : public: QDBusAbstractAdaptor
  2. {
  3. Q_OBJECT
  4. Q_CLASSINFO("D-Bus Interface", "org.some.dbus.iterface.name")
  5. Q_CLASSINFO("D-Bus Introspection", ""
  6. " <interface name=\"org.some.dbus.iterface.name\">\n"
  7. " <method name=\"myMethod\">\n"
  8. " <arg direction=\"in\" type=\"u\" name=\"in\"/>\n"
  9. " <arg direction=\"out\" type=\"b\" name=\"out1\"/>\n"
  10. " <arg direction=\"out\" type=\"s\" name=\"out2\"/>\n"
  11. " </method>\n"
  12. "")
  13.  
  14. public:
  15. .... // standard stuff
  16.  
  17. public Q_SLOTS:
  18. bool myMethod(uint in, QString &out2); // this version works
  19. bool myMethod(uint in, const QDBusMessege &messege, QString &out2); // this version doesn't work
  20. }
To copy to clipboard, switch view to plain text mode 
First version of myMethod slot works perfectly! Data are received and send back.
But when this method is replaced with second version, it doesn't work (client is unable to call method).
Now what should I do to make it work?
Should I correct xml data in Q_CLASSINFO("D-Bus Introspection"? If yes, than how?
Or maybe my declaration of slot is incorrect?
Documentations says that this argument should be between input and output arguments like in my example.