RemotePermissions: Store in a class rather than in a QByteArray to save memory
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 19 Sep 2017 08:53:51 +0000 (10:53 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:35 +0000 (22:01 +0200)
commitf793de4629d3c40c423fe5c0ac8b2b1e5fe3981e
tree6b83def3b2901e365092e95537cd35f73af531d1
parentcd4908ac6ae7b2027973566b70747b67f1690967
RemotePermissions: Store in a class rather than in a QByteArray to save memory

Create a specific type that parses the permissions so we can store
it in a short rather than in a QByteArray

Note: in RemotePermissions::toString, we make sure the string is not
empty by adding a space, this was already existing before commit
e8f7adc7cacd4f55e26b2dd14464654e82204307 where it was removed by mistake.
18 files changed:
src/common/common.cmake
src/common/remotepermissions.cpp [new file with mode: 0644]
src/common/remotepermissions.h [new file with mode: 0644]
src/common/syncjournaldb.cpp
src/common/syncjournalfilerecord.h
src/csync/csync.h
src/csync/csync_private.h
src/csync/csync_statedb.cpp
src/csync/csync_update.cpp
src/gui/owncloudgui.cpp
src/libsync/discoveryphase.cpp
src/libsync/discoveryphase.h
src/libsync/propagatedownload.cpp
src/libsync/syncengine.cpp
src/libsync/syncengine.h
src/libsync/syncfileitem.h
src/libsync/syncfilestatustracker.cpp
test/testsyncjournaldb.cpp