diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-06-17 20:08:59 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-06-30 12:29:08 +0300 |
commit | 74978a23fbf12fc9e914137ff5981d427f508350 (patch) | |
tree | afb54fd50ad716b62fb70c4e12a15047755e78d7 /src/gui/accountsettings.h | |
parent | b3fb730d5a7e0dfb137a62abf0bbfe41c61b8fb2 (diff) |
Move the encrypt folder logic in a reusable job class
This way this whole logic isn't stuck into the settings dialog anymore.
Also cleaned up the unused "decrypt folder" logic.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui/accountsettings.h')
-rw-r--r-- | src/gui/accountsettings.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/gui/accountsettings.h b/src/gui/accountsettings.h index 68ddd01bb..a67994279 100644 --- a/src/gui/accountsettings.h +++ b/src/gui/accountsettings.h @@ -92,7 +92,6 @@ protected slots: void slotOpenAccountWizard(); void refreshSelectiveSyncStatus(); void slotMarkSubfolderEncrypted(const FolderStatusModel::SubFolderInfo* folderInfo); - void slotMarkSubfolderDecrypted(const FolderStatusModel::SubFolderInfo* folderInfo); void slotSubfolderContextMenuRequested(const QModelIndex& idx, const QPoint& point); void slotCustomContextMenuRequested(const QPoint &); void slotFolderListClicked(const QModelIndex &indx); @@ -102,25 +101,7 @@ protected slots: // Encryption Related Stuff. void slotShowMnemonic(const QString &mnemonic); void slotNewMnemonicGenerated(); - - void slotEncryptionFlagSuccess(const QByteArray &folderId); - void slotEncryptionFlagError(const QByteArray &folderId, int httpReturnCode); - void slotLockForEncryptionSuccess(const QByteArray& folderId, const QByteArray& token); - void slotLockForEncryptionError(const QByteArray &folderId, int httpReturnCode); - void slotUnlockFolderSuccess(const QByteArray& folderId); - void slotUnlockFolderError(const QByteArray& folderId, int httpReturnCode); - void slotUploadMetadataSuccess(const QByteArray& folderId); - void slotUpdateMetadataError(const QByteArray& folderId, int httpReturnCode); - - // Remove Encryption Bit. - void slotLockForDecryptionSuccess(const QByteArray& folderId, const QByteArray& token); - void slotLockForDecryptionError(const QByteArray& folderId, int httpReturnCode); - void slotDeleteMetadataSuccess(const QByteArray& folderId); - void slotDeleteMetadataError(const QByteArray& folderId, int httpReturnCode); - void slotUnlockForDecryptionSuccess(const QByteArray& folderId); - void slotUnlockForDecryptionError(const QByteArray& folderId, int httpReturnCode); - void slotDecryptionFlagSuccess(const QByteArray& folderId); - void slotDecryptionFlagError(const QByteArray& folderId, int httpReturnCode); + void slotEncryptFolderFinished(int status); private: void showConnectionLabel(const QString &message, |