Finish implementing update installation.

Also add the option to update on exit.
This commit is contained in:
Andrew
2013-12-06 12:59:58 -06:00
parent e90f1a2756
commit 6ac94ddcb6
8 changed files with 128 additions and 10 deletions

View File

@ -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();
}

View File

@ -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...