Are D-Bus signals received by the emitting app?

Thiago Macieira thiago at kde.org
Sat Sep 29 12:18:13 BST 2007


David Jarvie wrote:
>I'm attempting to write a unit test for some changes to the
> KSystemTimeZones class, but when the unit test emits a D-Bus signal, it
> is not picked up by the KSystemTimeZones instance which is instanciated
> within the unit test. When the same signal is emitted by ktimezoned, it
> is picked up by KSystemTimeZones in a different app. Can a D-Bus signal
> be received by the same app which emitted it? If not, is there any way
> round this so that the unit test instance can be made to think it's
> receiving the signal?

They are received if there's something listening for it.

Signal reception requires the event loop.
-- 
  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: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070929/6a3654da/attachment.sig>


More information about the kde-core-devel mailing list