1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-06-13 02:34:10 +02:00

propage*encrypted Q_UNUSED

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-07-02 12:45:44 +02:00
parent e871359453
commit ce545b1e47
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 36 additions and 31 deletions

View File

@ -106,7 +106,7 @@ bool PropagateDownloadEncrypted::decryptFile(QFile& tmpFile)
tmpFile.close(); tmpFile.close();
QFile _tmpOutput(_propagator->getFilePath(tmpFileName), this); QFile _tmpOutput(_propagator->getFilePath(tmpFileName), this);
bool fileDecrypted = EncryptionHelper::fileDecryption(_encryptedInfo.encryptionKey, EncryptionHelper::fileDecryption(_encryptedInfo.encryptionKey,
_encryptedInfo.initializationVector, _encryptedInfo.initializationVector,
&tmpFile, &tmpFile,
&_tmpOutput); &_tmpOutput);

View File

@ -114,6 +114,8 @@ void PropagateUploadEncrypted::slotFolderLockedSuccessfully(const QByteArray& fi
void PropagateUploadEncrypted::slotFolderEncryptedMetadataError(const QByteArray& fileId, int httpReturnCode) void PropagateUploadEncrypted::slotFolderEncryptedMetadataError(const QByteArray& fileId, int httpReturnCode)
{ {
Q_UNUSED(fileId);
Q_UNUSED(httpReturnCode);
qCDebug(lcPropagateUploadEncrypted()) << "Error Getting the encrypted metadata. unlock the folder."; qCDebug(lcPropagateUploadEncrypted()) << "Error Getting the encrypted metadata. unlock the folder.";
unlockFolder(); unlockFolder();
} }
@ -207,6 +209,7 @@ void PropagateUploadEncrypted::slotFolderEncryptedMetadataReceived(const QJsonDo
void PropagateUploadEncrypted::slotUpdateMetadataSuccess(const QByteArray& fileId) void PropagateUploadEncrypted::slotUpdateMetadataSuccess(const QByteArray& fileId)
{ {
Q_UNUSED(fileId);
qCDebug(lcPropagateUploadEncrypted) << "Uploading of the metadata success, Encrypting the file"; qCDebug(lcPropagateUploadEncrypted) << "Uploading of the metadata success, Encrypting the file";
QFileInfo outputInfo(_completeFileName); QFileInfo outputInfo(_completeFileName);
@ -226,8 +229,9 @@ void PropagateUploadEncrypted::slotUpdateMetadataError(const QByteArray& fileId,
void PropagateUploadEncrypted::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode) void PropagateUploadEncrypted::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode)
{ {
Q_UNUSED(httpErrorCode);
/* try to call the lock from 5 to 5 seconds /* 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]{ QTimer::singleShot(5000, this, [this, fileId]{
if (!_currentLockingInProgress) { if (!_currentLockingInProgress) {
qCDebug(lcPropagateUploadEncrypted) << "Error locking the folder while no other update is locking it up."; 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) void PropagateUploadEncrypted::slotFolderEncryptedIdError(QNetworkReply *r)
{ {
Q_UNUSED(r);
qCDebug(lcPropagateUploadEncrypted) << "Error retrieving the Id of the encrypted folder."; qCDebug(lcPropagateUploadEncrypted) << "Error retrieving the Id of the encrypted folder.";
} }