signals with adaptors and interfaces
Vitaly V. Ch
vitaly.v.ch at gmail.com
Mon Nov 12 09:43:50 PST 2007
On Nov 12, 2007 1:46 PM, Thiago Macieira <thiago at kde.org> wrote:
> Em Monday 12 November 2007 12:32:01 Vitaly V. Ch escreveu:
> > is adaptors class usable for catching/sending signals over dbus?
>
> "Yes" and "you probably don't want it".
>
> Adaptors are useful for sending signals over D-Bus.
Where I can see adecvate example which non-require editing of
generated adaptor class?
I want emit signal from method of class touched to qdbus as parent.
\\wbr Vitaly
> For receiving them, you
> should connect to your own class's slots, not to slots in adaptors. There's
> nothing technically wrong with connecting signals (of any type) to slots in
> adaptors, but it seems wrong to do so.
>
> > And is interface class usable for sending signal to dbus or only for
> > catching?
>
> You cannot emit signals for a proxy interface class. You can only emit signals
> from objects you have registered -- therefore, adaptors only.
>
> But you can connect to any proxy interface object's signals as if they were
> normal Qt signals.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> 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
>
>
More information about the dbus
mailing list