summaryrefslogtreecommitdiffstats
path: root/MultiMC.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-08 02:15:20 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-08 02:15:20 +0200
commit6bea4ec988b7caeac63353fb9d2a354f2fd47dad (patch)
tree77dc597c82ff3952d9f34f4ca13da1c36ca89bd8 /MultiMC.h
parent6892c11e9f287dcfb1e698f8f46233a01fb7abb6 (diff)
downloadMultiMC-6bea4ec988b7caeac63353fb9d2a354f2fd47dad.tar
MultiMC-6bea4ec988b7caeac63353fb9d2a354f2fd47dad.tar.gz
MultiMC-6bea4ec988b7caeac63353fb9d2a354f2fd47dad.tar.lz
MultiMC-6bea4ec988b7caeac63353fb9d2a354f2fd47dad.tar.xz
MultiMC-6bea4ec988b7caeac63353fb9d2a354f2fd47dad.zip
Use HttpMetaCache to minimize network use.
Diffstat (limited to 'MultiMC.h')
-rw-r--r--MultiMC.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/MultiMC.h b/MultiMC.h
index 99d90b99..0c8b673b 100644
--- a/MultiMC.h
+++ b/MultiMC.h
@@ -4,6 +4,7 @@
#include "MultiMCVersion.h"
#include "config.h"
+class HttpMetaCache;
class SettingsObject;
class InstanceList;
class IconList;
@@ -55,14 +56,21 @@ public:
{
return m_qnam;
}
+
+ HttpMetaCache * metacache()
+ {
+ return m_metacache;
+ }
private:
void initGlobalSettings();
+ void initHttpMetaCache();
private:
SettingsObject * m_settings = nullptr;
InstanceList * m_instances = nullptr;
IconList * m_icons = nullptr;
QNetworkAccessManager * m_qnam = nullptr;
+ HttpMetaCache * m_metacache = nullptr;
Status m_status = MultiMC::Failed;
MultiMCVersion m_version = {VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD};
}; \ No newline at end of file