[DBUS] Observer pattern design

Julien PUYDT julien.puydt at laposte.net
Mon May 23 11:35:42 PDT 2005


Claudio Takahasi a écrit :
> What is the correct design for a observer* pattern application using D-BUS?
> 
> Suppose a wireless connection manager, when the signal is weak or
> the link is down, the connection manager must notify all connected clients.
> Implement the other side(clients requiresting  services) is trivial. There
> are a lot of sample addressing this context. However, for a observer
> pattern I was not able to figure out how implement it. I think use polling 
> is NOT a interesting approach.
> 
> What are the possible implementations for this kind of D-BUS application? 

I would say that all observers connect do dbus and watch for signals 
from the subject. The subject sends signals on the bus when it changes 
state...

Snark on #gnomemeeting


More information about the dbus mailing list