[haiku-development] Re: Notification Server?

  • From: Bryan Varner <bryan@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 23 May 2007 16:07:14 -0400

Stephan Assmus wrote:
Hi,

I think it should be done. To address the problem and fears that DarkWyrm and others have mentioned, I suggest to introduce a non-optional "importance" parameter to be handled to the notification function. This way the programmer is forced to conciously decide what the importance level of the message is. For the configuration of the server, I suggest a two way filter. The simple configuration would be the level of importance below which messages are suppressed. Additionally to that, the user should be allowed to suppress messages of certain applications. To make this easy, the GUI for that should list all known applications which have send notifications up to this point.
DarkWyrm and others, do you think this would address your concerns?

Best regards,
-Stephan


Why not just have applications register a system notification event, similar to how the system sounds are registered? I think it makes sense to use the same mechanism style for consistency across API's. Additionally, a change I'd love to see in the sound control panel is the ability to discern what application registered a sound. :-)

-Bryan


Other related posts: