Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila San <hello@camila.codes>2019-07-24 14:56:21 +0300
committerCamila San <hello@camila.codes>2019-10-17 21:11:31 +0300
commit19491ff85f3cd02952478d2ee1fb42caf252e9dd (patch)
treefd9bc6d7ca455e05a8cd8c5fafae4fc0eca2f792 /src/gui/folderman.h
parent08c7be5350c949b15776ab52a2b7bf637f3e02a4 (diff)
Once client gets 401/403 from the server, check if remote wipe was requested.
- When the the users logs because of 401 or 403 errors, it checks if the server requested the remote wipe. If yes, locally deletes account and folders connected to the account and notify the server. If no, proceeds to ask the user to login again. - The app password is restored in the keychain. - WIP: The change also includes a test class for RemoteWipe. Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/folderman.h')
-rw-r--r--src/gui/folderman.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/folderman.h b/src/gui/folderman.h
index 7ac16c98c..97d4b8f45 100644
--- a/src/gui/folderman.h
+++ b/src/gui/folderman.h
@@ -207,6 +207,11 @@ signals:
*/
void folderListChanged(const Folder::Map &);
+ /**
+ * Emitted once slotRemoveFoldersForAccount is done wiping
+ */
+ void wipeDone(AccountState *account, bool success);
+
public slots:
/**
@@ -231,6 +236,9 @@ public slots:
// slot to schedule an ETag job (from Folder only)
void slotScheduleETagJob(const QString &alias, RequestEtagJob *job);
+ /** Wipe folder */
+ void slotWipeFolderForAccount(AccountState *accountState);
+
private slots:
void slotFolderSyncPaused(Folder *, bool paused);
void slotFolderCanSyncChanged();