Sharing files to the Android bluetooth backend now works. The code is asynchronous now too.
Details
Details
- Reviewers
apol - Group Reviewers
KDE Connect - Commits
- R224:1b570d4719e4: Make bluetooth payload upload work & asynchronous
I tested several files, and they all get transferred correctly. The socket gets destroyed correctly too.
Diff Detail
Diff Detail
- Repository
- R224 KDE Connect
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I'll do some more testing with the current changes, to make sure edge cases are handled correctly.
core/backends/bluetooth/bluetoothuploadjob.cpp | ||
---|---|---|
114 | We'll get called again if more bytes are written, so it eventually either disconnects (when some error happens) or all bytes have been written. Either case, we'll close it and destroy the job. |
Comment Actions
Looks good to me, definitely a step forward.
core/backends/bluetooth/bluetoothuploadjob.cpp | ||
---|---|---|
110 | Just connect to closeConnection, let's not add cruft, makes for readability. |