CLOUD: Update downloading in Storages

Id should be used everywhere.
This commit is contained in:
Alexander Tkachev 2016-06-08 13:02:49 +06:00
parent 60add0df1b
commit f0d61084da
10 changed files with 39 additions and 17 deletions

View file

@ -33,7 +33,7 @@ namespace Cloud {
class DownloadRequest: public Networking::Request {
Storage::BoolCallback _boolCallback;
Common::DumpFile *_localFile;
Common::String _remoteFileName;
Common::String _remoteFileId;
Storage *_storage;
Networking::NetworkReadStream *_remoteFileStream;
Request *_workingRequest;
@ -44,7 +44,7 @@ class DownloadRequest: public Networking::Request {
void streamErrorCallback(Networking::ErrorResponse error);
void finishSuccess(bool success);
public:
DownloadRequest(Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb, Common::String remoteFile, Common::DumpFile *dumpFile);
DownloadRequest(Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb, Common::String remoteFileId, Common::DumpFile *dumpFile);
virtual ~DownloadRequest();
virtual void handle();