From 17eb5f91433f2414dc73f89abfdd316407259b61 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sat, 21 May 2016 00:44:09 +0600 Subject: CLOUD: Add complex callbacks Originally, I intended to add Storage API, StorageFile and StorageInfo stubs. When I tried to implement a simple info() call, I ended up fixing Request to contain some pointer field and all callbacks to have Request* parameter. And, now I have to place callback pointer into Request. which calls another callback. And, eventually, these "simple" callbacks would again require another pointer (to some caller class). --- common/cloudmanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/cloudmanager.h b/common/cloudmanager.h index 8a10a1a3c7..08ba928f34 100644 --- a/common/cloudmanager.h +++ b/common/cloudmanager.h @@ -53,7 +53,7 @@ public: * Starts saves syncing process in currently active storage if there is any. */ - virtual void syncSaves() = 0; + virtual void syncSaves(Cloud::Storage::OperationCallback callback = 0) = 0; }; } //end of namespace Common -- cgit v1.2.3