kdeconnect-kde/kded/plugins/notifications
2014-06-04 04:19:06 +00:00
..
CMakeLists.txt qDebug -> kDebug with namespaces 2013-11-06 22:16:55 +01:00
kdeconnect_notifications.desktop SVN_SILENT made messages (.desktop file) 2014-06-04 04:19:06 +00:00
notification.cpp qDebug -> kDebug with namespaces 2013-11-06 22:16:55 +01:00
notification.h Made some methods const 2014-04-05 20:05:22 +02:00
notificationsdbusinterface.cpp Commented a chunk of code for the future 2014-01-10 19:01:09 +01:00
notificationsdbusinterface.h Fixed file transfer 2013-09-27 00:01:59 +02:00
notificationsplugin.cpp use the correct catalog name 2014-01-28 02:08:34 +01:00
notificationsplugin.h Code review 2013-10-11 15:20:04 +02:00
README Documentation 2013-09-24 14:14:34 +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.