diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-22 04:21:36 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-22 04:21:36 +0200 |
commit | ceca6959d2a7f258d62ac4f589095b65084706c3 (patch) | |
tree | 8ce02eb4713bf8e770e02e97c99ad45f492cc688 /MultiMC.h | |
parent | c2c7293083de8e8d40190992ccd6a65b613a4d06 (diff) | |
download | MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar.gz MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar.lz MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.tar.xz MultiMC-ceca6959d2a7f258d62ac4f589095b65084706c3.zip |
Working 1.6 modding (currently only forge)
Diffstat (limited to 'MultiMC.h')
-rw-r--r-- | MultiMC.h | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -1,6 +1,7 @@ #pragma once #include <QApplication> +#include <QSharedPointer> #include "MultiMCVersion.h" #include "config.h" @@ -33,17 +34,17 @@ public: MultiMC ( int& argc, char** argv ); virtual ~MultiMC(); - SettingsObject * settings() + QSharedPointer<SettingsObject> settings() { return m_settings; }; - InstanceList * instances() + QSharedPointer<InstanceList> instances() { return m_instances; }; - IconList * icons(); + QSharedPointer<IconList> icons(); Status status() { @@ -55,21 +56,21 @@ public: return m_version; } - QNetworkAccessManager * qnam() + QSharedPointer<QNetworkAccessManager> qnam() { return m_qnam; } - HttpMetaCache * metacache() + QSharedPointer<HttpMetaCache> metacache() { return m_metacache; } - LWJGLVersionList * lwjgllist(); + QSharedPointer<LWJGLVersionList> lwjgllist(); - ForgeVersionList * forgelist(); + QSharedPointer<ForgeVersionList> forgelist(); - MinecraftVersionList * minecraftlist(); + QSharedPointer<MinecraftVersionList> minecraftlist(); private: void initGlobalSettings(); @@ -77,17 +78,17 @@ private: void initTranslations(); private: - QTranslator * m_qt_translator = nullptr; - QTranslator * m_mmc_translator = nullptr; - 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; - LWJGLVersionList * m_lwjgllist = nullptr; - ForgeVersionList * m_forgelist = nullptr; - MinecraftVersionList * m_minecraftlist = nullptr; + QSharedPointer<QTranslator> m_qt_translator; + QSharedPointer<QTranslator> m_mmc_translator; + QSharedPointer<SettingsObject> m_settings; + QSharedPointer<InstanceList> m_instances; + QSharedPointer<IconList> m_icons; + QSharedPointer<QNetworkAccessManager> m_qnam; + QSharedPointer<HttpMetaCache> m_metacache; + QSharedPointer<LWJGLVersionList> m_lwjgllist; + QSharedPointer<ForgeVersionList> m_forgelist; + QSharedPointer<MinecraftVersionList> m_minecraftlist; + Status m_status = MultiMC::Failed; MultiMCVersion m_version = {VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD}; };
\ No newline at end of file |