kdeconnect-kde/plugins/notifications
David Kahles aefa51fa86 Remove notifications from plasmoid, if the notifications plugin gets disabled
Therefore notify the client that we're deleting all notifications.
Otherwise the client wouldn't notice this and the notifications would still
be available in the plasmoid.

REVIEW: 127582
2016-04-06 02:30:50 +02:00
..
CMakeLists.txt notifications: synchronize icons if possible and requested 2016-01-11 20:12:43 +01:00
kdeconnect_notifications.json SVN_SILENT made messages (.desktop file) - always resolve ours 2016-01-05 13:22:15 +00:00
kdeconnect_notifications_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2016-03-03 09:54:08 +00:00
notification.cpp Use id instead of a pointer in the dismissRequested signal and slot. 2015-10-17 15:32:13 -07:00
notification.h Use id instead of a pointer in the dismissRequested signal and slot. 2015-10-17 15:32:13 -07:00
notification_debug.h Fix various krazy2 warnings 2015-08-21 22:38:54 +06:00
notifications_config.cpp notifications: synchronize icons if possible and requested 2016-01-11 20:12:43 +01:00
notifications_config.h notifications: allow to configure how to sync desktop notifications 2015-12-05 23:23:22 +01:00
notifications_config.ui notifications: synchronize icons if possible and requested 2016-01-11 20:12:43 +01:00
notificationsdbusinterface.cpp Remove notifications from plasmoid, if the notifications plugin gets disabled 2016-04-06 02:30:50 +02:00
notificationsdbusinterface.h Remove notifications from plasmoid, if the notifications plugin gets disabled 2016-04-06 02:30:50 +02:00
notificationslistener.cpp notifications: synchronize icons if possible and requested 2016-01-11 20:12:43 +01:00
notificationslistener.h Fix compilation and a couple of warnings 2015-12-07 03:21:35 +01:00
notificationsplugin.cpp notifications: add initial support for desktop-to-xxx notifications 2015-12-05 23:23:22 +01:00
notificationsplugin.h tests: add test-case for NotificationsListener 2015-12-05 23:23:22 +01:00
notifyingapplication.cpp notifications: allow to configure how to sync desktop notifications 2015-12-05 23:23:22 +01:00
notifyingapplication.h notifications: allow to configure how to sync desktop notifications 2015-12-05 23:23:22 +01:00
notifyingapplicationmodel.cpp notifications: allow to configure how to sync desktop notifications 2015-12-05 23:23:22 +01:00
notifyingapplicationmodel.h notifications: allow to configure how to sync desktop notifications 2015-12-05 23:23:22 +01:00
README Move the plugins into a different top-ĺevel directory 2014-06-14 16:34:11 +02:00

This plugin listens to packages with type "kdeconnect.notification" that will
contain all the information of the other device notifications.

The other device will report us every notification that is created or dismissed,
so we can keep in sync a local list of notifications.

At the beginning we can request the already existing notifications by sending a
package with the boolean "request" set to true.

The received packages will contain the following fields:

"id" (string): A unique notification id.
"appName" (string): The app that generated the notification
"ticker" (string): The title or headline of the notification.
"isClearable" (boolean): True if we can request to dismiss the notification.
"isCancel" (boolean): True if the notification was dismissed in the peer device.
"requestAnswer" (boolean): True if this is an answer to a "request" package.

Additionally the package can contain a payload with the icon of the notification
in PNG format.

The content of these fields is used to display the notifications to the user.
Note that if we receive a second notification with the same "id", we should
update the existent notification instead of creating a new one.

If the user dismisses a notification from this device, we have to request the
other device to remove it. This is done by sending a package with the fields
"id" set to the id of the notification we want to dismiss and a boolean "cancel"
set to true. The other device will answer with a notification package with
"isCancel" set to true when it is dismissed.