[CSE] Save folder id and token for the lock

So we can unlock it later. - perhaps we should store this
on the disk or something, to make it harder to lose.
This commit is contained in:
Tomaz Canabrava 2017-12-08 10:19:56 +01:00
parent 70d562668c
commit 6745777ca3
2 changed files with 4 additions and 0 deletions

View file

@ -278,6 +278,8 @@ void PropagateUploadFileCommon::slotFolderLockedSuccessfully(const QByteArray& f
qDebug() << "Folder" << fileId << "Locked Successfully for Upload";
// Should I use a mutex here?
_currentLockingInProgress = true;
_folderToken = token;
_folderId = fileId;
}
void PropagateUploadFileCommon::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode)

View file

@ -291,6 +291,8 @@ private slots:
private:
QElapsedTimer _folderLockFirstTry;
bool _currentLockingInProgress;
QByteArray _folderToken;
QByteArray _folderId;
protected:
/**