Ticket #155 (assigned enhancement)
Move all popup notifications settings to the KNotify dialog
| Reported by: | amroth | Owned by: | valerio |
|---|---|---|---|
| Priority: | major | Milestone: | kmess-2.0 |
| Component: | KDE integration | Version: | 1.5-pre2 |
| Keywords: | Cc: |
Description
I think I've found a way to merge all popups and sounds settings. That would be a lot easier than having to configure notifications from two very different places (account settings and Configure Notifications dialog).
Since recently I've moved all KNotify code to the kmess/notification/ classes, it would even be a lot simpler to implement.
- First the user sets the KNotify dialog to display messageboxes, passive or not we can avoid to care. Of course we would set the KNotify defaults accordingly to our current popup balloons default settings.
- Then, in the Notification* classes, we 'override' the KNotifyClient::event() call:
- Collect all settings for the event we need to send, by using KNotifyClient::getPresentation() and KNotifyClient::getFile()
- Check from the presentation bitfields if the messagebox presentation mode is on.
- Delete from the presentation bitfields the Messagebox and Passivepopup modes if set.
- Call KNotifyClient::userEvent() to send the original event with the usual message, sound, presentation etc but of course without the messagebox presentation modes.
- If the messagebox presentation mode was set, popup our custom balloon.
Change History
Note: See
TracTickets for help on using
tickets.
