Make URLSynchronization and HTTPSynchronization download into temporary files and if the download succeeds, transactionally move the temporary file into the correct destination

This commit is contained in:
Alexander Bock
2018-03-10 05:08:14 -05:00
parent 5b6ae62bab
commit 31cdee1fa1
5 changed files with 78 additions and 14 deletions

View File

@@ -229,6 +229,8 @@ public:
HttpFileDownload(HttpFileDownload&& d) = default;
virtual ~HttpFileDownload() = default;
const std::string& destination() const;
protected:
bool initDownload() override;
bool deinitDownload() override;