how to get the introspection xml?

dbus-send --type=method_call --print-reply --dest=vandenoever.strigi  /search org.freedesktop.DBus.Introspectable.Introspect

dbus-send --type=method_call --print-reply --dest=org.freedesktop.xesam.searcher /org/freedesktop/xesam/searcher/main org.freedesktop.DBus.Introspectable.Introspect

qdbusxml2cpp -p strigidbus -i strigitypes.h strigiinterface.xml

when seeing problems when running the test application, try running with QDBUS_DEBUG=1

other useful lines for debugging the message interpretation:

   QDBusMessage msg = strigi.getHits(query, 10, 0);
   qDebug() << msg.arguments().at(0).typeName();
   qDebug() << qvariant_cast<QDBusArgument>(msg.arguments().at(0)).currentSignature();
   qDebug() << QDBusMetaType::typeToSignature(qMetaTypeId<QList<StrigiHit> >());
   QDBusReply<QList<StrigiHit> > r = msg;//strigi.getHits(query, 10, 0);
