From d313e9ab09639346526b75c92498188753cb5b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 2 Feb 2015 01:09:28 +0100 Subject: SCRATCH remove remaining references to MultiMC.h and fix legacy LWJGL --- logic/Env.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'logic/Env.h') diff --git a/logic/Env.h b/logic/Env.h index ba2ea869..a53a62cb 100644 --- a/logic/Env.h +++ b/logic/Env.h @@ -2,10 +2,13 @@ #include #include +#include class IconList; class QNetworkAccessManager; class HttpMetaCache; +class BaseVersionList; +class BaseVersion; #if defined(ENV) #undef ENV @@ -35,8 +38,16 @@ public: /// Updates the application proxy settings from the settings object. void updateProxySettings(QString proxyTypeStr, QString addr, int port, QString user, QString password); + /// get a version list by name + std::shared_ptr getVersionList(QString component); + + /// get a version by list name and version name + std::shared_ptr getVersion(QString component, QString version); + + void registerVersionList(QString name, std::shared_ptr vlist); protected: std::shared_ptr m_qnam; std::shared_ptr m_metacache; std::shared_ptr m_icons; + QMap> m_versionLists; }; -- cgit v1.2.3