diff options
| author | Alexander Tkachev | 2016-05-31 20:54:41 +0600 |
|---|---|---|
| committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
| commit | 4e7dec550077bc37cf254311aefb621cdeebbdfe (patch) | |
| tree | 07d20f7a35a89f909f5f0ce69618b795104997bb /backends/cloud/manager.cpp | |
| parent | 675e7a6ed1d19e64e2f80a4dd1f454e646cb52f5 (diff) | |
| download | scummvm-rg350-4e7dec550077bc37cf254311aefb621cdeebbdfe.tar.gz scummvm-rg350-4e7dec550077bc37cf254311aefb621cdeebbdfe.tar.bz2 scummvm-rg350-4e7dec550077bc37cf254311aefb621cdeebbdfe.zip | |
CLOUD: Add DropboxCreateDirectoryRequest
Also add CloudManager::testFeature(), because syncSaves() now works fine
and I don't want to break it again and again with my testing requests.
Diffstat (limited to 'backends/cloud/manager.cpp')
| -rw-r--r-- | backends/cloud/manager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backends/cloud/manager.cpp b/backends/cloud/manager.cpp index 2f1533c50d..70f2c3a3ef 100644 --- a/backends/cloud/manager.cpp +++ b/backends/cloud/manager.cpp @@ -25,6 +25,7 @@ #include "backends/cloud/onedrive/onedrivestorage.h" #include "common/config-manager.h" #include "common/random.h" +#include "common/debug.h" namespace Cloud { @@ -110,9 +111,19 @@ Storage *Manager::getCurrentStorage() { return nullptr; } +void Manager::printBool(Storage::BoolResponse response) { + debug("bool = %s", (response.value ? "true" : "false")); +} + void Manager::syncSaves(Storage::BoolCallback callback, Networking::ErrorCallback errorCallback) { Storage *storage = getCurrentStorage(); if (storage) storage->syncSaves(callback, errorCallback); } +void Manager::testFeature() { + Storage *storage = getCurrentStorage(); + if (storage) storage->createDirectory("/remote/sub2/dir", + new Common::Callback<Manager, Storage::BoolResponse>(this, &Manager::printBool), nullptr); +} + } // End of namespace Cloud |
