mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 23:17:13 +03:00
Add missing FolderMetadata functions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
74bc9213c5
commit
3c301a8282
1 changed files with 9 additions and 0 deletions
|
@ -1291,6 +1291,15 @@ QByteArray FolderMetadata::encryptedMetadata() {
|
||||||
return internalMetadata.toJson();
|
return internalMetadata.toJson();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FolderMetadata::addEncryptedFile(const EncryptedFile &f) {
|
||||||
|
// TODO: check for duplicates
|
||||||
|
_files.append(f);
|
||||||
|
}
|
||||||
|
|
||||||
|
QVector<EncryptedFile> FolderMetadata::files() const {
|
||||||
|
return _files;
|
||||||
|
}
|
||||||
|
|
||||||
bool ClientSideEncryption::isFolderEncrypted(const QString& path) {
|
bool ClientSideEncryption::isFolderEncrypted(const QString& path) {
|
||||||
auto it = _folder2encryptedStatus.find(path);
|
auto it = _folder2encryptedStatus.find(path);
|
||||||
if (it == _folder2encryptedStatus.end())
|
if (it == _folder2encryptedStatus.end())
|
||||||
|
|
Loading…
Reference in a new issue