diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-08 02:15:20 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-08 02:15:20 +0200 |
commit | 6bea4ec988b7caeac63353fb9d2a354f2fd47dad (patch) | |
tree | 77dc597c82ff3952d9f34f4ca13da1c36ca89bd8 /MultiMC.h | |
parent | 6892c11e9f287dcfb1e698f8f46233a01fb7abb6 (diff) | |
download | MultiMC-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |