Finish implementing update installation.
Also add the option to update on exit.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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...
|
||||
|
Reference in New Issue
Block a user