https://bugs.kde.org/show_bug.cgi?id=390876
When multiple files from the phone are received a FileTransferJob for each is started. These jobs should be batched together into a [[ https://api.kde.org/frameworks/kcoreaddons/html/classKCompositeJob.html | KCompositejob ]].
Relevant modules: SharePlugin on Desktop and Android, FileTransferJob class from core
Requires research about Jobs in KDE Frameworks/KIO
Possible approach:
Each file is transferred in its own NetworkPacket, because there is only room for one payload per packet. One could either
- allow more than one payload per NetworkPacket, would require changes to NetworkPacket on both sides without breaking existing code
- add some information to the NetworkPacket to indicate which Filetransfers should be batched together