signals with adaptors and interfaces

Thiago Macieira thiago at kde.org
Mon Nov 12 03:46:30 PST 2007


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. 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071112/9010f9ac/attachment.pgp 


More information about the dbus mailing list