summaryrefslogtreecommitdiffstats
path: root/backend/lists/MinecraftVersionList.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-11 18:58:24 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-11 19:05:22 +0200
commit7e78a422e8bb22572706b7fadb58fc45e7b8a7db (patch)
treee91e2aa3364d1a5cb8329a6b7e49b7a46e720ab5 /backend/lists/MinecraftVersionList.h
parente5dc113bfceb1e9b52535b7d1abd6f0ec51e1332 (diff)
downloadMultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar
MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.gz
MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.lz
MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.xz
MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.zip
Version filtering and general related code sanitization.
Version list dialog has alternating row background set. Nostalgia versions, based on OneSix.
Diffstat (limited to 'backend/lists/MinecraftVersionList.h')
-rw-r--r--backend/lists/MinecraftVersionList.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/backend/lists/MinecraftVersionList.h b/backend/lists/MinecraftVersionList.h
index 8707016a..d3b18691 100644
--- a/backend/lists/MinecraftVersionList.h
+++ b/backend/lists/MinecraftVersionList.h
@@ -17,6 +17,8 @@
#include <QObject>
#include <QList>
+#include <QSet>
+#include <QSharedPointer>
#include "InstVersionList.h"
#include "tasks/Task.h"
@@ -36,12 +38,11 @@ public:
virtual Task *getLoadTask();
virtual bool isLoaded();
- virtual const InstVersion *at(int i) const;
+ virtual const InstVersionPtr at(int i) const;
virtual int count() const;
- virtual void printToStdOut() const;
virtual void sort();
- virtual InstVersion *getLatestStable() const;
+ virtual InstVersionPtr getLatestStable() const;
/*!
* Gets the main version list instance.
@@ -50,12 +51,12 @@ public:
protected:
- QList<InstVersion *>m_vlist;
+ QList<InstVersionPtr > m_vlist;
bool m_loaded;
protected slots:
- virtual void updateListData(QList<InstVersion *> versions);
+ virtual void updateListData(QList<InstVersionPtr > versions);
};
class MCVListLoadTask : public Task
@@ -76,10 +77,8 @@ protected:
bool loadFromVList();
QNetworkReply *vlistReply;
-
MinecraftVersionList *m_list;
- QList<InstVersion *> tempList; //! < List of loaded versions
-
MinecraftVersion *m_currentStable;
+ QSet<QString> legacyWhitelist;
};