summaryrefslogtreecommitdiffstats
path: root/logic/Env.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-02-02 01:09:28 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-12 20:57:17 +0200
commitd313e9ab09639346526b75c92498188753cb5b87 (patch)
tree1df78fb6150b77a705b48aa3af0a845131000309 /logic/Env.h
parent382ae78a0bf75892827321b052c6afbd195476bc (diff)
downloadMultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar.gz
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar.lz
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar.xz
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.zip
SCRATCH remove remaining references to MultiMC.h and fix legacy LWJGL
Diffstat (limited to 'logic/Env.h')
-rw-r--r--logic/Env.h11
1 files changed, 11 insertions, 0 deletions
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 <memory>
#include <QString>
+#include <QMap>
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<BaseVersionList> getVersionList(QString component);
+
+ /// get a version by list name and version name
+ std::shared_ptr<BaseVersion> getVersion(QString component, QString version);
+
+ void registerVersionList(QString name, std::shared_ptr<BaseVersionList> vlist);
protected:
std::shared_ptr<QNetworkAccessManager> m_qnam;
std::shared_ptr<HttpMetaCache> m_metacache;
std::shared_ptr<IconList> m_icons;
+ QMap<QString, std::shared_ptr<BaseVersionList>> m_versionLists;
};