kdeconnect-kde/plugins/notifications
Nicolas Fella b1310bf1d1 [sendreplydialog] Move focus on tab
Currently pressing tab inserts a tab character. To enable keyboard navigation it should however focus the next item in the focus chain (the send button). Given that this is a simple reply to a text message and not a fully fledged text editor there's probably no need to insert a tab character anyway

CCBUG: 441742
(cherry picked from commit ee85a5d56e)
2021-09-26 19:29:54 +02:00
..
CMakeLists.txt Clean up unneeded JSON parameter in kcoreaddons_add_plugin 2021-06-28 20:33:52 +02:00
kdeconnect_notifications.json SVN_SILENT made messages (.desktop file) - always resolve ours 2021-09-02 02:18:25 +00:00
notification.cpp Mark notifications as resident 2021-03-19 08:05:29 +00:00
notification.h Make use of KNotification's quick reply feature 2021-03-17 14:29:08 +01:00
notificationsplugin.cpp Fix notification reply window activation and focus 2021-03-20 21:50:42 +01:00
notificationsplugin.h [plugins/notifications] Merge notificationsdbusinterface and notificationsplugin 2020-10-18 21:42:06 +00:00
README Improve notificationsplugin README 2018-06-30 23:05:38 +02:00
sendreplydialog.cpp [sendreplydialog] Submit on enter, enter newline on shift+enter 2021-09-23 15:37:00 +02:00
sendreplydialog.h [sendreplydialog] Submit on enter, enter newline on shift+enter 2021-09-23 15:37:00 +02:00
sendreplydialog.ui [sendreplydialog] Move focus on tab 2021-09-26 19:29:54 +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, for compatibility with older Android versions.
"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.
"title" (string): The title of the notification.
"text" (string): The text/content of the notification.
"requestReplyId" (string): Used to reply to messages.
"silent" (bool): Handle this notification silent, i.e. don't show a notification, but show it in the plasmoid.

Additionally the package can contain a payload with the icon of the notification
in PNG format. If there another field will be present:

"payloadHash" (string): MD5 hash of the payload. Used as a filename to store the payload.

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", the existing notification is updated.

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.