mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 05:16:59 +03:00
Made the version list load in the background on startup.
Resolves JIRA issue MMC-11: https://jira.forkk.net/browse/MMC-11
This commit is contained in:
parent
2fe6bc47ed
commit
7e3592bee8
5 changed files with 98 additions and 24 deletions
|
|
@ -48,8 +48,15 @@ public slots:
|
|||
void setProgress(int progress);
|
||||
|
||||
signals:
|
||||
void taskStarted(Task* task);
|
||||
void taskEnded(Task* task);
|
||||
void started(Task* task);
|
||||
void ended(Task* task);
|
||||
|
||||
void started();
|
||||
void ended();
|
||||
|
||||
|
||||
void statusChanged(Task* task, const QString& status);
|
||||
void progressChanged(Task* task, int progress);
|
||||
|
||||
void statusChanged(const QString& status);
|
||||
void progressChanged(int progress);
|
||||
|
|
@ -58,6 +65,12 @@ protected:
|
|||
virtual void run();
|
||||
virtual void executeTask() = 0;
|
||||
|
||||
virtual void emitStarted();
|
||||
virtual void emitEnded();
|
||||
|
||||
virtual void emitStatusChange(const QString &status);
|
||||
virtual void emitProgressChange(int progress);
|
||||
|
||||
QString status;
|
||||
int progress;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue