On-demand downloading: Placeholder-file based prototype
authorChristian Kamm <mail@ckamm.de>
Wed, 13 Dec 2017 17:04:58 +0000 (18:04 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:57:43 +0000 (10:57 +0100)
commitf5cf03b6a61998f26cffcccb67aa4c75fdb32685
tree0842ad93ca446d8832ded4a5c844baaf0ea873a4
parentc50b1cc37cb4de749ae81d343fbfc822fe78f36a
On-demand downloading: Placeholder-file based prototype

- Controled by an option.
- New remote files start out as ItemTypePlaceholder, are created with a
  .owncloud extension.
- When their db entry is set to ItemTypePlaceholderDownload the next
  sync run will download them.
- Files that aren't in the placeholder state sync as usual.
- See test cases in testsyncplaceholders.

Missing:
- User ui for triggering placeholder file download
- Maybe: Going back from file to placeholder?
12 files changed:
src/csync/csync.h
src/csync/csync_private.h
src/csync/csync_reconcile.cpp
src/csync/csync_update.cpp
src/libsync/account.h
src/libsync/owncloudpropagator.cpp
src/libsync/owncloudpropagator.h
src/libsync/propagatedownload.cpp
src/libsync/propagatorjobs.cpp
src/libsync/syncengine.cpp
test/CMakeLists.txt
test/testsyncplaceholders.cpp [new file with mode: 0644]