diff options
Diffstat (limited to 'api/logic/java/JavaInstallList.h')
-rw-r--r-- | api/logic/java/JavaInstallList.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/api/logic/java/JavaInstallList.h b/api/logic/java/JavaInstallList.h index afc5ef43..934e588b 100644 --- a/api/logic/java/JavaInstallList.h +++ b/api/logic/java/JavaInstallList.h @@ -31,6 +31,12 @@ class JavaListLoadTask; class MULTIMC_LOGIC_EXPORT JavaInstallList : public BaseVersionList { Q_OBJECT + enum class Status + { + NotDone, + InProgress, + Done + }; public: explicit JavaInstallList(QObject *parent = 0); @@ -47,9 +53,13 @@ public slots: void updateListData(QList<BaseVersionPtr> versions) override; protected: - QList<BaseVersionPtr> m_vlist; + void load(); + shared_qobject_ptr<Task> getCurrentTask(); - bool m_loaded = false; +protected: + Status m_status = Status::NotDone; + shared_qobject_ptr<JavaListLoadTask> m_loadTask; + QList<BaseVersionPtr> m_vlist; }; class JavaListLoadTask : public Task |