KNotifyConfigWidget: add disableAllSounds() method
Review Request #127926 - Created May 15, 2016 and submitted
This saves a lot of clicking compared to selecting each event in the list and unchecking the "Play sound" checkbox, something I have to do any time I set up a new computer (for me or around the office). CCBUG: 157272
I'm calling this method from a button in the KCM: http://www.davidfaure.fr/2016/kcmnotify.diff
My initial idea was a "disable all sounds for all event sources" button, but the underlying classes don't make this easy to support (I'd have to literally set every item as current in the combo, leading to a strange user-visible automation happening). Disabling all sounds for the current event source (app) is already quite a time saver.
Plus this way the change isn't saved yet, it can still be cancelled by pressing Cancel, like any other change -except- selecting another app.
A better approach I think would be to have a simple checkbox, store
that in a config and then have KNotification/NotifyByAudio simply
do nothing if that config/value is present.
Or even have KNotificationManager::notify(..) skip audio action.