summaryrefslogtreecommitdiffstats
path: root/data/version.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-02-25 13:24:46 -0600
committerAndrew <forkk@forkk.net>2013-02-25 13:24:46 -0600
commit498225debdb22d83e591635dbd172cca12476279 (patch)
treee26d8f8de3bed7d22cfc25ee010c999b9481ec87 /data/version.h
parenta7111b132873e0f1e00221b2ad734454d69889e3 (diff)
downloadMultiMC-498225debdb22d83e591635dbd172cca12476279.tar
MultiMC-498225debdb22d83e591635dbd172cca12476279.tar.gz
MultiMC-498225debdb22d83e591635dbd172cca12476279.tar.lz
MultiMC-498225debdb22d83e591635dbd172cca12476279.tar.xz
MultiMC-498225debdb22d83e591635dbd172cca12476279.zip
Rewrote the settings system. It may still need some work.
Diffstat (limited to 'data/version.h')
-rw-r--r--data/version.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/data/version.h b/data/version.h
index 321b1680..d5d276db 100644
--- a/data/version.h
+++ b/data/version.h
@@ -18,6 +18,9 @@
#include <QObject>
+/*!
+ * \brief The Version class represents a MultiMC version number.
+ */
class Version : public QObject
{
Q_OBJECT
@@ -27,11 +30,35 @@ public:
Version(const Version& ver);
+ /*!
+ * \brief Converts the Version to a string.
+ * \return The version number in string format (major.minor.revision.build).
+ */
QString toString() const;
+ /*!
+ * \brief The major version number.
+ * For MultiMC 5, this will always be 5.
+ */
int major;
+
+ /*!
+ * \brief The minor version number.
+ * This number is incremented when major features are added.
+ */
int minor;
+
+ /*!
+ * \brief The revision number.
+ * This number is incremented for bugfixes and small features.
+ */
int revision;
+
+ /*!
+ * \brief The build number.
+ * This number is automatically set by Jenkins. It is incremented every time
+ * a new build is run.
+ */
int build;
static Version current;