aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/storageinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud/storageinfo.h')
-rw-r--r--backends/cloud/storageinfo.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/backends/cloud/storageinfo.h b/backends/cloud/storageinfo.h
index 510acb3778..f09563570f 100644
--- a/backends/cloud/storageinfo.h
+++ b/backends/cloud/storageinfo.h
@@ -32,14 +32,20 @@ namespace Cloud {
* It's disk quota usage, owner name, and such.
*/
-class StorageInfo {
- /** Temporary StorageInfo just contains raw JSON, received from cloud storage. */
- Common::String _info;
+class StorageInfo {
+ Common::String _uid, _name, _email;
+ uint32 _usedBytes, _allocatedBytes;
public:
- StorageInfo(Common::String info): _info(info) {}
+ StorageInfo(Common::String uid, Common::String name, Common::String email, uint32 used, uint32 allocated):
+ _uid(uid), _name(name), _email(email), _usedBytes(used), _allocatedBytes(allocated) {}
+
+ Common::String uid() const { return _uid; }
+ Common::String name() const { return _name; }
+ Common::String email() const { return _email; }
+ uint32 used() const { return _usedBytes; }
+ uint32 available() const { return _allocatedBytes; }
- Common::String info() const { return _info; }
};
} //end of namespace Cloud