Hooks in Base Code

Giles Jones giles.jones at zen.co.uk
Thu Jul 19 00:44:04 CEST 2007

On 18 Jul 2007, at 23:21, Jim McDonald wrote:
> To clarify, I'm thinking not of getting in the way of the basics of  
> things like gsmd, which should handle the fact that there is an  
> incoming call and also pick up the caller ID if present, but what  
> openmoko does as a result of this information.  Given the fact that  
> there is an incoming call from number 555-123-4567 what should the  
> 'phone do?  Should it silently ignore the call, send it straight to  
> voicemail (either operator or on the 'phone itself), use a specific  
> ringtone for the user, even shut down entirely (some sort of "if I  
> ring my 'phone from this number then nuke it" option!).  The point  
> is, there are lots of possibilities and we don't want them all  
> sitting inside gsmd, it makes more sense for them to be external  
> modules that can be chained together in a clean fashion without  
> requiring direct access to something as sensitive as gsmd.  At  
> least, that's my take on it.

If it's just notifications then you can have a notification daemon  
which any application can register it's events with. The preferences  
for this would allow something like Play Sound, Display Message,  
Flash backlight, Vibrate, Power off, Run script, Run command or do  

More information about the community mailing list