diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-03-18 23:35:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-03-18 23:35:54 +0100 |
commit | 7e222c3e8f4d1c007edafc31e75e7712813dd64b (patch) | |
tree | 3f97831babf5296c7bcd61713a2ecdee6d3d83f0 /libmultimc/include/instance.h | |
parent | 65faabeed48584c461ca21d784c3f1d46f67f832 (diff) | |
download | PrismLauncher-7e222c3e8f4d1c007edafc31e75e7712813dd64b.tar.gz PrismLauncher-7e222c3e8f4d1c007edafc31e75e7712813dd64b.tar.bz2 PrismLauncher-7e222c3e8f4d1c007edafc31e75e7712813dd64b.zip |
Loading instance groups and exposing them to the model
Diffstat (limited to 'libmultimc/include/instance.h')
-rw-r--r-- | libmultimc/include/instance.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmultimc/include/instance.h b/libmultimc/include/instance.h index c41e6718..9334dff8 100644 --- a/libmultimc/include/instance.h +++ b/libmultimc/include/instance.h @@ -65,6 +65,9 @@ class LIBMULTIMC_EXPORT Instance : public QObject //! The instance's notes. Q_PROPERTY(QString notes READ notes WRITE setNotes) + //! The instance's group. + Q_PROPERTY(QString group READ group WRITE setGroup) + /*! * Whether or not the instance's minecraft.jar needs to be rebuilt. * If this is true, when the instance launches, its jar mods will be @@ -181,6 +184,9 @@ public: virtual QString notes() const { return settings().get("notes").toString(); } virtual void setNotes(QString val) { settings().set("notes", val); } + virtual QString group() const { return m_group; } + virtual void setGroup(QString val) { m_group = val; } + virtual bool shouldRebuild() const { return settings().get("NeedsRebuild").toBool(); } virtual void setShouldRebuild(bool val) { settings().set("NeedsRebuild", val); } @@ -279,6 +285,7 @@ public: private: QString m_rootDir; + QString m_group; SettingsObject *m_settings; }; |