From 5f4bbe6e9e08f5f76eada84497a7530ffb08fbf1 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Tue, 24 May 2016 16:19:22 +0600 Subject: CLOUD: Add OneDrive Storage stub Knows how to OAuth already. This commit also adds CloudManager::addStorage(), so OneDriveStorage can add newly created Storage and CloudManager can save it in the configuration file. --- common/cloudmanager.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common') diff --git a/common/cloudmanager.h b/common/cloudmanager.h index d1c89454b1..a480bdf684 100644 --- a/common/cloudmanager.h +++ b/common/cloudmanager.h @@ -46,6 +46,16 @@ public: virtual void save() = 0; + /** + * Adds new Storage into list. + * + * @param storage Cloud::Storage to add. + * @param makeCurrent whether added storage should be the new current storage. + * @param saveConfig whether save() should be called to update configuration file. + */ + + virtual void addStorage(Cloud::Storage *storage, bool makeCurrent = true, bool saveConfig = true) = 0; + /** * Returns active Storage, which could be used to interact * with cloud storage. -- cgit v1.2.3