item->_directDownloadUrl = serverEntry.directDownloadUrl;
item->_directDownloadCookies = serverEntry.directDownloadCookies;
item->_encryptedFileName = serverEntry.e2eMangledName;
+ item->_isEncrypted = serverEntry.isE2eEncrypted;
// Check for missing server data
{
}
_item->_encryptedFileName = _remoteParentPath + QLatin1Char('/') + encryptedFile.encryptedFilename;
+ _item->_isEncrypted = true;
qCDebug(lcPropagateUploadEncrypted) << "Creating the encrypted file.";
rec._serverHasIgnoredFiles = _serverHasIgnoredFiles;
rec._checksumHeader = _checksumHeader;
rec._e2eMangledName = _encryptedFileName.toUtf8();
+ rec._isE2eEncrypted = _isEncrypted;
// Update the inode if possible
rec._inode = _inode;
item->_serverHasIgnoredFiles = rec._serverHasIgnoredFiles;
item->_checksumHeader = rec._checksumHeader;
item->_encryptedFileName = QString::fromUtf8(rec._e2eMangledName);
+ item->_isEncrypted = rec._isE2eEncrypted;
return item;
}
, _status(NoStatus)
, _isRestoration(false)
, _isSelectiveSync(false)
+ , _isEncrypted(false)
{
}
Status _status BITFIELD(4);
bool _isRestoration BITFIELD(1); // The original operation was forbidden, and this is a restoration
bool _isSelectiveSync BITFIELD(1); // The file is removed or ignored because it is in the selective sync list
+ bool _isEncrypted BITFIELD(1); // The file is E2EE or the content of the directory should be E2EE
quint16 _httpErrorCode = 0;
RemotePermissions _remotePerm;
QString _errorString; // Contains a string only in case of error