It can be used to query information about the current notification server (vendor, name, version, notification spec version).
This will be used by the plasmoid and KCM to indicate when notifications are currently unavailable or provided by a different notification service from Plasma.
Also notify valid changing at runtime when ownership is lost and allow calling init() again to try reclaiming it.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R120:147debe3758f: [Notifications] Add ServerInfo class
Diff Detail
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.
libnotificationmanager/server_p.cpp | ||
---|---|---|
93–95 | Just noticed I can probably reuse the inhibition service watcher rather than do a wildcard watch here? |
libnotificationmanager/server_p.cpp | ||
---|---|---|
93–95 | Actually not, I misread the code and documentation:
So all is good \o/ |
Comment Actions
I would like to have something like this in KNotifications to be able to check which features/hints the server supports without doing the DBus stuff myself
Comment Actions
This is unrelated to this but yeah I'd like a KNotificationCapabilities class which is actually in the KNotificationV2 todo, see "new APIs section"