summaryrefslogtreecommitdiffstats
path: root/logic/OneSixVersion.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-16 00:54:39 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-16 00:54:39 +0200
commitd38b90530b3ba3a49c4eb072eb344ae2b0836913 (patch)
tree5dd07e59ae1bc8392a773ec8fec6b6a3aa7e4840 /logic/OneSixVersion.h
parent7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5 (diff)
downloadMultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar.gz
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar.lz
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar.xz
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.zip
Forge version list implementation. Needs integration and testing.
Diffstat (limited to 'logic/OneSixVersion.h')
-rw-r--r--logic/OneSixVersion.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/logic/OneSixVersion.h b/logic/OneSixVersion.h
index 8f01f82d..6a6a5b4b 100644
--- a/logic/OneSixVersion.h
+++ b/logic/OneSixVersion.h
@@ -2,9 +2,15 @@
#include <QtCore>
class OneSixLibrary;
-class OneSixVersion
+class OneSixVersion : public QAbstractListModel
{
public:
+ virtual QVariant data ( const QModelIndex& index, int role = Qt::DisplayRole ) const;
+ virtual int rowCount ( const QModelIndex& parent = QModelIndex() ) const;
+ virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
+ virtual int columnCount ( const QModelIndex& parent ) const;
+ virtual Qt::ItemFlags flags(const QModelIndex& index) const;
+public:
/// the ID - determines which jar to use! ACTUALLY IMPORTANT!
QString id;
/// Last updated time - as a string
@@ -58,6 +64,7 @@ public:
// QList<Rule> rules;
public:
+
OneSixVersion()
{
minimumLauncherVersion = 0xDEADBEEF;
@@ -65,4 +72,4 @@ public:
QList<QSharedPointer<OneSixLibrary> > getActiveNormalLibs();
QList<QSharedPointer<OneSixLibrary> > getActiveNativeLibs();
-}; \ No newline at end of file
+};