Em sexta-feira, 26 de agosto de 2016, às 20:04:08 PDT, Martin Koller escreveu:
> Hi,
> 
> In QDBusConnection there are several connect() methods which check the
> signature of the signal against the connected slot.
> Since I'd like to implement a scripting possibility around this, I'd need
> the possibility to either be able to receive all QDBusMessages (at least
> from DBus signals) or a way where the slot just gets all arguments via a
> single QList<QVariant> parameter (from QDBusMessage::arguments()).
> 
> Is there currently a way to achieve this ?

Yes. Make your slot take one parameter only: QDBusMessage.

> I found qDBusAddSpyHook - probably this is what I'm looking for ?
> Or what was the reason to have this function ?

Don't use that function. I expect that there is exactly one application using 
the spy hook and that's kded. I will not support anyone else using it.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to