mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-22 17:34:05 +02:00
propage*encrypted Q_UNUSED
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e871359453
commit
ce545b1e47
@ -106,7 +106,7 @@ bool PropagateDownloadEncrypted::decryptFile(QFile& tmpFile)
|
||||
|
||||
tmpFile.close();
|
||||
QFile _tmpOutput(_propagator->getFilePath(tmpFileName), this);
|
||||
bool fileDecrypted = EncryptionHelper::fileDecryption(_encryptedInfo.encryptionKey,
|
||||
EncryptionHelper::fileDecryption(_encryptedInfo.encryptionKey,
|
||||
_encryptedInfo.initializationVector,
|
||||
&tmpFile,
|
||||
&_tmpOutput);
|
||||
|
@ -114,6 +114,8 @@ void PropagateUploadEncrypted::slotFolderLockedSuccessfully(const QByteArray& fi
|
||||
|
||||
void PropagateUploadEncrypted::slotFolderEncryptedMetadataError(const QByteArray& fileId, int httpReturnCode)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpReturnCode);
|
||||
qCDebug(lcPropagateUploadEncrypted()) << "Error Getting the encrypted metadata. unlock the folder.";
|
||||
unlockFolder();
|
||||
}
|
||||
@ -207,6 +209,7 @@ void PropagateUploadEncrypted::slotFolderEncryptedMetadataReceived(const QJsonDo
|
||||
|
||||
void PropagateUploadEncrypted::slotUpdateMetadataSuccess(const QByteArray& fileId)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
qCDebug(lcPropagateUploadEncrypted) << "Uploading of the metadata success, Encrypting the file";
|
||||
QFileInfo outputInfo(_completeFileName);
|
||||
|
||||
@ -226,8 +229,9 @@ void PropagateUploadEncrypted::slotUpdateMetadataError(const QByteArray& fileId,
|
||||
|
||||
void PropagateUploadEncrypted::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode)
|
||||
{
|
||||
Q_UNUSED(httpErrorCode);
|
||||
/* try to call the lock from 5 to 5 seconds
|
||||
and fail if it's more than 5 minutes. */
|
||||
* and fail if it's more than 5 minutes. */
|
||||
QTimer::singleShot(5000, this, [this, fileId]{
|
||||
if (!_currentLockingInProgress) {
|
||||
qCDebug(lcPropagateUploadEncrypted) << "Error locking the folder while no other update is locking it up.";
|
||||
@ -249,6 +253,7 @@ void PropagateUploadEncrypted::slotFolderLockedError(const QByteArray& fileId, i
|
||||
|
||||
void PropagateUploadEncrypted::slotFolderEncryptedIdError(QNetworkReply *r)
|
||||
{
|
||||
Q_UNUSED(r);
|
||||
qCDebug(lcPropagateUploadEncrypted) << "Error retrieving the Id of the encrypted folder.";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user