Observer pattern design

Ross Burton ross at burtonini.com
Mon May 23 11:29:49 PDT 2005


On Mon, 2005-05-23 at 15:06 -0300, Claudio Takahasi wrote:
> 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? 

Send a signal when the state changes?

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the dbus mailing list