Vfs: Improve sync protocol entries for actions
authorChristian Kamm <mail@ckamm.de>
Fri, 8 Feb 2019 11:21:25 +0000 (12:21 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:41 +0000 (10:58 +0100)
commit910ccaf6001d6e9bd728d09b9acbcd614556f8e0
treeb1fab0c7b311da058e48ea0a2e6fafa73d28d8ab
parentf24687ec932ba6307c7c9f87e714004ba8a38949
Vfs: Improve sync protocol entries for actions

Creating a new virtual file and replacing a file with a virtual one now
have their own text in the protocol, not just "Downloaded".

To do this, the SyncFileItem type is kept as
ItemTypeVirtualFileDehydration for these actions. Added new code to
ensure the type isn't written to the database.

While looking at this, I've also added documentation on SyncFileItem's
_file, _renameTarget, _originalFile and destination() because some of
the semantics weren't clear.
src/libsync/progressdispatcher.cpp
src/libsync/propagatedownload.cpp
src/libsync/syncfileitem.cpp
src/libsync/syncfileitem.h
test/testsyncvirtualfiles.cpp