org.freesmartphone.GSM.Network Signal Strength Signal

Michael 'Mickey' Lauer mickey at vanille-media.de
Mon Jun 30 23:46:11 CEST 2008


Hi,

> >> If introspection is a possible way to learn about listening processes,
> >> a similar signal could then be used for CellIDChanged. ophoned would
> >> even be in a position to switch on and off the generation of netreg
> >> unsolicited events from the modem.
> >
> > Yeah, that would be nice. Could you make a proposal for that on the dbus
> > list?
>
> The consense on #dbus seems to be that this is best handled by adding
> a subscribe method to the API, and then track the unique-names of all
> subscribed processes via NameOwnerChanged, then implement a ref-counting
> mechanism to understand if somebody is listening or not, and then only emit
> the signal, when there
> are listeners.
>
> This "tracking until client exits" feature could be implemented in a
> general way inside the dbus-bindings,
> as it would be useful in many other cases.

Hmm, that sounds pretty useful indeed.

> I will try to come up with some patches for dbus-python, hopefully
> soonisch...

Awesome, thanks!!

:M:



More information about the smartphones-standards mailing list