CLOUD: Delete the incomplete file (when downloading)

This commit is contained in:
Alexander Tkachev 2016-06-19 13:50:11 +06:00
parent 2d3cfffa84
commit 4c381dafa3
3 changed files with 23 additions and 1 deletions

View file

@ -43,6 +43,8 @@ class DownloadRequest: public Networking::Request {
void streamCallback(Networking::NetworkReadStreamResponse response);
void streamErrorCallback(Networking::ErrorResponse error);
void finishSuccess(bool success);
virtual void finishError(Networking::ErrorResponse error);
public:
DownloadRequest(Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb, Common::String remoteFileId, Common::DumpFile *dumpFile);
virtual ~DownloadRequest();