diff options
author | Andrew <forkk@forkk.net> | 2013-12-06 12:59:58 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-12-06 12:59:58 -0600 |
commit | 6ac94ddcb6f64ffae3948bed778bccc33a92f0fd (patch) | |
tree | 31cb30a051772bb49339514b79acf07ae9661c95 /logic/updater | |
parent | e90f1a27569ac6b9e9782646c9de92fc9534b1d2 (diff) | |
download | MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar.gz MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar.lz MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar.xz MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.zip |
Finish implementing update installation.
Also add the option to update on exit.
Diffstat (limited to 'logic/updater')
-rw-r--r-- | logic/updater/DownloadUpdateTask.cpp | 5 | ||||
-rw-r--r-- | logic/updater/DownloadUpdateTask.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/logic/updater/DownloadUpdateTask.cpp b/logic/updater/DownloadUpdateTask.cpp index 7c5eb84a..ef975c93 100644 --- a/logic/updater/DownloadUpdateTask.cpp +++ b/logic/updater/DownloadUpdateTask.cpp @@ -391,3 +391,8 @@ void DownloadUpdateTask::fileDownloadProgressChanged(qint64 current, qint64 tota setProgress((int)(((float)current / (float)total)*100)); } +QString DownloadUpdateTask::updateFilesDir() +{ + return m_updateFilesDir.path(); +} + diff --git a/logic/updater/DownloadUpdateTask.h b/logic/updater/DownloadUpdateTask.h index dc30ca15..f5b23d12 100644 --- a/logic/updater/DownloadUpdateTask.h +++ b/logic/updater/DownloadUpdateTask.h @@ -28,6 +28,11 @@ class DownloadUpdateTask : public Task public: explicit DownloadUpdateTask(QString repoUrl, int versionId, QObject* parent=0); + + /*! + * Gets the directory that contains the update files. + */ + QString updateFilesDir(); protected: // TODO: We should probably put these data structures into a separate header... |