summaryrefslogtreecommitdiffstats
path: root/backend/BaseInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-03 23:58:39 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-03 23:58:39 +0200
commit4f73091bb5bdbdb91329b9a4ef647fc8286d423c (patch)
tree6bc63a2d9ca2265cd7ee6dcf683219b73e25a24e /backend/BaseInstance.h
parent13b1b98f7cf8a3b3b2c15dd42f96537b02c00711 (diff)
downloadMultiMC-4f73091bb5bdbdb91329b9a4ef647fc8286d423c.tar
MultiMC-4f73091bb5bdbdb91329b9a4ef647fc8286d423c.tar.gz
MultiMC-4f73091bb5bdbdb91329b9a4ef647fc8286d423c.tar.lz
MultiMC-4f73091bb5bdbdb91329b9a4ef647fc8286d423c.tar.xz
MultiMC-4f73091bb5bdbdb91329b9a4ef647fc8286d423c.zip
Errr... I forgot.
Diffstat (limited to 'backend/BaseInstance.h')
-rw-r--r--backend/BaseInstance.h33
1 files changed, 9 insertions, 24 deletions
diff --git a/backend/BaseInstance.h b/backend/BaseInstance.h
index 088075f2..1bb2ce17 100644
--- a/backend/BaseInstance.h
+++ b/backend/BaseInstance.h
@@ -57,42 +57,20 @@ public:
/// Path to the instance's root directory.
QString rootDir() const;
- /*!
- * \brief Gets the instance list that this instance is a part of.
- * Returns NULL if this instance is not in a list
- * (the parent is not an InstanceList).
- * \return A pointer to the InstanceList containing this instance.
- */
- InstanceList *instList() const;
-
-
- //////// INSTANCE INFO ////////
-
- /// The name of the instance that is displayed to the user.
QString name() const;
-
- /// Set the name of the instance that is displayed to the user.
void setName(QString val);
- /// The instance's icon key.
QString iconKey() const;
-
- /// Set the instance's icon key.
void setIconKey(QString val);
- //! The instance's notes.
QString notes() const;
-
- /// set the instance notes text
void setNotes(QString val);
- //! The instance's group.
QString group() const;
-
- /// set the instance group
void setGroup(QString val);
- //// Timestamps ////
+ virtual bool setIntendedVersionId(QString version) = 0;
+ virtual QString intendedVersionId() = 0;
/**
* Gets the time that the instance was last launched.
@@ -102,6 +80,13 @@ public:
/// Sets the last launched time to 'val' milliseconds since epoch
void setLastLaunch(qint64 val = QDateTime::currentMSecsSinceEpoch());
+ /*!
+ * \brief Gets the instance list that this instance is a part of.
+ * Returns NULL if this instance is not in a list
+ * (the parent is not an InstanceList).
+ * \return A pointer to the InstanceList containing this instance.
+ */
+ InstanceList *instList() const;
/*!
* \brief Gets a pointer to this instance's version list.