Add a notication service to inhibit certain notifications based on metadata
ClosedPublic

Authored by davidedmundson on Dec 4 2016, 11:44 PM.

Details

Summary

Sometimes we get notifications for events that are also displayed by
Plasma, giving us some rather annoying popups.

This patch provides a service on the notification dataengine so that
other plasmoids can block the notification applet from processing those
notifications.

Intended use case is for the network manager plasomid to not show a
notification whilst the dialog is open, as notifications come from kded.

However it's kept generic enough that other plasmoids can filter on
other hints, such as category or desktop file.

Test Plan

Wrote relevant patch for plasma-nm
Didn't get notification toggling a network whilst the popup was open
Did after I closed the popup

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson retitled this revision from to Add a notication service to inhibit certain notifications based on metadata.
davidedmundson updated this object.
davidedmundson edited the test plan for this revision. (Show Details)
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptDec 4 2016, 11:44 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.Dec 5 2016, 12:19 PM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Dec 5 2016, 12:19 PM
This revision was automatically updated to reflect the committed changes.