Properly clean up scopes when deregistering a subscriber.

Authored by dfaure on Feb 2 2019, 5:21 PM.

Description

Properly clean up scopes when deregistering a subscriber.

Summary:
It was done "by hand", for only a few setters; use apply() to do this
consistently for all of them.

New unittest notificationmanagertest
This requires adding a special mode for unittests in AkThread, to be
able to call methods in NotificationManager from the main thread.

Test Plan: bin/notificationmanagertest

Reviewers: dvratil

Subscribers: kde-pim

Differential Revision: https://phabricator.kde.org/D18672

Details

Committed
dfaureFeb 5 2019, 8:24 PM
Differential Revision
D18672: Properly clean up scopes when deregistering a subscriber.
Parents
R165:87a155b85080: Fix "QIODevice::read" warnings.
Branches
Unknown
Tags
Unknown