kdeconnect-kde/plugins/share
Erik Duisters b6c15289f5 Combine multiple upload jobs into a single KCompositeJob so only 1 notification will be shown
Summary:
Combine multiple upload jobs for files into a single KCompositeJob so only 1 notification will be shown
Includes changes introduced in D16279

Test Plan:
1. Share of multiple files is performed using 1 composite job

   Setup:
	- Select multiple (big) files in dolphin and share with an Android device
   Result:
	- The files will be transferred using 1 CompositeUploadJob and showing only 1 notification

2. Share of file while another share is already running adds job to existing composite job

   Setup:
	- Select multiple (big) files in dolphin and share with an Android device
	- Share an additional file with the same Android device
   Result:
	- The files are all transferred using 1 CompositeUploadJob and showing only 1 notification
	- The notification is updated after adding the last file

3. Other packets are transmitted as usual

   Setup:
        - Setup sharing desktop notification with device
	- Share a big file with an Android device
	- Generate a desktop notification (eg. sending or receiving an email)

   Result:
	- Notification packet is send immediately

Reviewers: #kde_connect, nicolasfella, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, apol, nicolasfella, broulik, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17081
2018-11-30 08:26:00 +01:00
..
CMakeLists.txt Clean-up requirements: cmake 3.0, qt 5.7, use min versions, deduplicate KF5 2018-03-17 23:34:33 +01:00
kdeconnect_share.json SVN_SILENT made messages (.desktop file) - always resolve ours 2018-11-21 05:40:27 +01:00
kdeconnect_share_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2018-11-21 05:40:27 +01:00
README Move the plugins into a different top-ĺevel directory 2014-06-14 16:34:11 +02:00
share_config.cpp share plugin: path display 2017-10-03 21:48:30 +02:00
share_config.h Make member variable names, & placement and * placement more coherent 2017-09-03 21:45:08 +02:00
share_config.ui add xgettext:no-c-format not to confuse i18n() 2015-04-15 17:45:16 +02:00
share_debug.h Fix various krazy2 warnings 2015-08-21 22:38:54 +06:00
shareplugin.cpp Combine multiple upload jobs into a single KCompositeJob so only 1 notification will be shown 2018-11-30 08:26:00 +01:00
shareplugin.h Combine multiple upload jobs into a single KCompositeJob so only 1 notification will be shown 2018-11-30 08:26:00 +01:00

It receives a packages with type kdeconnect.share. If they have a payload
attached, it will download it as a file with the filename set in the field
"filename" (string). If that field is not set it should generate a filename.

If the content transferred is text, it can be sent in a field "text" (string)
instead of an attached payload. In that case, this plugin opens a text editor
with the content instead of saving it as a file.

If the content transferred is a url, it can be sent in a field "url" (string).
In that case, this plugin opens that url in the default browser.