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:
authorMichael Schuster <michael@schuster.ms>2020-02-14 04:10:01 +0300
committerMichael Schuster <michael@schuster.ms>2020-02-14 04:10:01 +0300
commitabfebcf2917e971a4e8c279d3f2871c79e64583a (patch)
tree871350d0f6759b440e57e80ae2d96f068d0f1317 /src/gui/accountsettings.h
parentbbb310a853b930692dd69dd1f9b6038dece0479a (diff)
Add UserInfo class and fetch quota via API instead of PropfindJob
The PropfindJob quota includes the size of shares and thus leads to confusion in regard of the real space available, as shown in the UI. This commit aims to streamline the behaviour with the Android and iOS apps, which also utilize the API. Details: - Refactor the QuotaInfo class into UserInfo - Use JsonApiJob (ocs/v1.php/cloud/user) instead of PropfindJob - Let ConnectionValidator use the new UserInfo class to fetch the user and the avatar image (to avoid code duplication) - Allow updating the avatar image upon AccountSettings visibility, using UserInfo's quota fetching Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/accountsettings.h')
-rw-r--r--src/gui/accountsettings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/accountsettings.h b/src/gui/accountsettings.h
index e620029a5..68ddd01bb 100644
--- a/src/gui/accountsettings.h
+++ b/src/gui/accountsettings.h
@@ -22,7 +22,7 @@
#include <QTimer>
#include "folder.h"
-#include "quotainfo.h"
+#include "userinfo.h"
#include "progressdispatcher.h"
#include "owncloudgui.h"
#include "folderstatusmodel.h"
@@ -139,7 +139,7 @@ private:
QUrl _OCUrl;
bool _wasDisabledBefore;
AccountState *_accountState;
- QuotaInfo _quotaInfo;
+ UserInfo _userInfo;
QAction *_toggleSignInOutAction;
QAction *_addAccountAction;