Using QtDBus with custom dispatching ?

Jacques Guillou jacques.guillou at gmail.com
Tue Mar 12 11:52:22 PDT 2013


Thank you, it seems to be working fine for me, even with Qt4.8.
But now, second part of my problem: How to handle an incoming DBUS signal
in a similar way (without using slots) ?

Best regards
Jacques




On Tue, Mar 12, 2013 at 2:12 AM, Thiago Macieira <thiago at kde.org> wrote:

> On segunda-feira, 11 de março de 2013 19.40.35, Jacques Guillou wrote:
> > Hello,
> >
> > I would like to use the classes of QtDBus without using the standard
> > dispatching mechanism based on objects' metadata.
> > Basically, when my application receives a DBUS message, I would need to
> > somehow get a reference to the corresponding QDBusMessage object, and
> > process that message by myself.
>
> Use QDBusVirtualObject. Unfortunately, I forgot to mark the documentation
> public for 5.0. It's there though.
>
> I've just submitted a change to make it public in 5.1. See
> https://codereview.qt-project.org/50647
>
> > Is there a way to do that ? Having a look at the code (Qt 4.8), it does
> not
> > look like this is feasible, since the QDBusMessage object reference seems
> > to be only visible from the QDBusConnectionPrivate class, but I may have
> > overseen something.
> > Any idea ?
>
> Preferably, upgrade to 5.0.
>
> The class does exist in 4.8 and is in a public header, but I don't
> remember if
> it had any outstanding bugs.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>    Software Architect - Intel Open Source Technology Center
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130312/a3de53e1/attachment.html>


More information about the dbus mailing list