aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/id/idstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud/id/idstorage.cpp')
-rw-r--r--backends/cloud/id/idstorage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/cloud/id/idstorage.cpp b/backends/cloud/id/idstorage.cpp
index f26dee4692..3aeb5146cd 100644
--- a/backends/cloud/id/idstorage.cpp
+++ b/backends/cloud/id/idstorage.cpp
@@ -23,8 +23,10 @@
#include "backends/cloud/id/idstorage.h"
#include "backends/cloud/id/idcreatedirectoryrequest.h"
+#include "backends/cloud/id/iddownloadrequest.h"
#include "backends/cloud/id/idlistdirectoryrequest.h"
#include "backends/cloud/id/idresolveidrequest.h"
+#include "backends/cloud/id/idstreamfilerequest.h"
#include "common/debug.h"
#include "common/json.h"
@@ -101,5 +103,13 @@ Networking::Request *IdStorage::createDirectory(Common::String path, BoolCallbac
return addRequest(new IdCreateDirectoryRequest(this, parentPath, directoryName, callback, errorCallback));
}
+Networking::Request *IdStorage::streamFile(Common::String path, Networking::NetworkReadStreamCallback outerCallback, Networking::ErrorCallback errorCallback) {
+ return addRequest(new IdStreamFileRequest(this, path, outerCallback, errorCallback));
+}
+
+Networking::Request *IdStorage::download(Common::String remotePath, Common::String localPath, BoolCallback callback, Networking::ErrorCallback errorCallback) {
+ return addRequest(new IdDownloadRequest(this, remotePath, localPath, callback, errorCallback));
+}
+
} // End of namespace Id
} // End of namespace Cloud