diff options
Diffstat (limited to 'launcher/java/JavaInstallList.h')
| -rw-r--r-- | launcher/java/JavaInstallList.h | 80 |
1 files changed, 38 insertions, 42 deletions
diff --git a/launcher/java/JavaInstallList.h b/launcher/java/JavaInstallList.h index 62d7931b28..a889f43b96 100644 --- a/launcher/java/JavaInstallList.h +++ b/launcher/java/JavaInstallList.h @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. - * + * * This file incorporates work covered by the following copyright and * permission notice: * @@ -53,52 +53,48 @@ class JavaListLoadTask; class JavaInstallList : public BaseVersionList { - Q_OBJECT - enum class Status - { - NotDone, - InProgress, - Done - }; -public: - explicit JavaInstallList(QObject *parent = 0); - - Task::Ptr getLoadTask() override; - bool isLoaded() override; - const BaseVersionPtr at(int i) const override; - int count() const override; - void sortVersions() override; - - QVariant data(const QModelIndex &index, int role) const override; - RoleList providesRoles() const override; - -public slots: - void updateListData(QList<BaseVersionPtr> versions) override; - -protected: - void load(); - Task::Ptr getCurrentTask(); - -protected: - Status m_status = Status::NotDone; - shared_qobject_ptr<JavaListLoadTask> m_loadTask; - QList<BaseVersionPtr> m_vlist; + Q_OBJECT + enum class Status { NotDone, InProgress, Done }; + + public: + explicit JavaInstallList(QObject* parent = 0); + + Task::Ptr getLoadTask() override; + bool isLoaded() override; + const BaseVersionPtr at(int i) const override; + int count() const override; + void sortVersions() override; + + QVariant data(const QModelIndex& index, int role) const override; + RoleList providesRoles() const override; + + public slots: + void updateListData(QList<BaseVersionPtr> versions) override; + + protected: + void load(); + Task::Ptr getCurrentTask(); + + protected: + Status m_status = Status::NotDone; + shared_qobject_ptr<JavaListLoadTask> m_loadTask; + QList<BaseVersionPtr> m_vlist; }; class JavaListLoadTask : public Task { - Q_OBJECT + Q_OBJECT -public: - explicit JavaListLoadTask(JavaInstallList *vlist); - virtual ~JavaListLoadTask(); + public: + explicit JavaListLoadTask(JavaInstallList* vlist); + virtual ~JavaListLoadTask(); - void executeTask() override; -public slots: - void javaCheckerFinished(); + void executeTask() override; + public slots: + void javaCheckerFinished(); -protected: - shared_qobject_ptr<JavaCheckerJob> m_job; - JavaInstallList *m_list; - JavaInstall *m_currentRecommended; + protected: + shared_qobject_ptr<JavaCheckerJob> m_job; + JavaInstallList* m_list; + JavaInstall* m_currentRecommended; }; |
