kdeconnect-kde/kded/plugins/sharereceiver
Aleix Pol Gonzalez 5e151d185e Improved package dispatch to the different plugins
Before this patch, all plugins had to discard received packages that were
not for themselves. This could be a security problem (a plugin could sniff
other plugin's packages) and also adds some complexity and processing.

This patch makes the device instance aware of what services are required
by the different plugins and when a package is received the corresponding
plugins will get the package.

These services will be listed on the plugin's desktop file, so the user
can decide whether to enable a plugin.

Note that this only works for receiving, not sending.

REVIEW: 113210
2013-10-29 17:46:57 +01:00
..
autoclosingqfile.cpp Renamed plugin filetransfer -> sharereceiver 2013-10-01 03:12:32 +02:00
autoclosingqfile.h Renamed plugin filetransfer -> sharereceiver 2013-10-01 03:12:32 +02:00
CMakeLists.txt Renamed plugin filetransfer -> sharereceiver 2013-10-01 03:12:32 +02:00
kdeconnect_sharereceiver.desktop Improved package dispatch to the different plugins 2013-10-29 17:46:57 +01:00
README Renamed plugin filetransfer -> sharereceiver 2013-10-01 03:12:32 +02:00
sharereceiverplugin.cpp Improved package dispatch to the different plugins 2013-10-29 17:46:57 +01:00
sharereceiverplugin.h Code review 2013-10-11 15:20:04 +02: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.