Vfs: Add 'availability', a simplified, user-facing pin state #7111
authorChristian Kamm <mail@ckamm.de>
Wed, 3 Apr 2019 08:53:04 +0000 (10:53 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:47 +0000 (10:58 +0100)
commitdcf34316fdff1dae3f2aa41ff7f822232c74dfdd
tree33fea0370fe93bb1672579fc3d7131b7a874240e
parent590db285419ab3eeae8f7f87542fa1642ec4fad3
Vfs: Add 'availability', a simplified, user-facing pin state #7111

The idea is that the user's question is "is this folder's data available
offline?" and not "does this folder have AlwaysLocal pin state?".
The the answers to the two questions can differ: an always-local
folder can have subitems that are not always-local and are dehydrated.

The new availability enum intends to describe the answer to the user's
actual question and can be derived from pin states. If pin states aren't
stored in the database the way of calculating availability will depend
on the vfs plugin.
src/common/pinstate.h
src/common/syncjournaldb.cpp
src/common/syncjournaldb.h
src/common/vfs.cpp
src/common/vfs.h
src/gui/accountsettings.cpp
src/gui/socketapi.cpp
src/libsync/vfs/suffix/vfs_suffix.cpp
src/libsync/vfs/suffix/vfs_suffix.h
test/testsyncjournaldb.cpp
test/testsyncvirtualfiles.cpp