GH-1060 update tweaks

* download to multimc folder hierarchy
* use rename, not copy
* keep backup after update
* clean previous backup before update
* it's not 'copy', it's 'replace'
This commit is contained in:
Petr Mrázek
2015-06-09 23:23:46 +02:00
parent 22c5ced5dc
commit 15b7c3039a
6 changed files with 58 additions and 40 deletions

View File

@ -30,7 +30,12 @@ class DownloadTask : public Task
Q_OBJECT
public:
explicit DownloadTask(Status status, QObject* parent = 0);
/**
* Create a download task
*
* target is a template - XXXXXX at the end will be replaced with a random generated string, ensuring uniqueness
*/
explicit DownloadTask(Status status, QString target, QObject* parent = 0);
/// Get the directory that will contain the update files.
QString updateFilesDir();