Forge version list implementation. Needs integration and testing.

This commit is contained in:
Petr Mrázek
2013-09-16 00:54:39 +02:00
parent 7721c57e5e
commit d38b90530b
37 changed files with 835 additions and 219 deletions

View File

@ -15,17 +15,16 @@
#pragma once
#include "InstanceVersion.h"
#include "BaseVersion.h"
#include <QStringList>
struct MinecraftVersion : public InstVersion
struct MinecraftVersion : public BaseVersion
{
// From InstVersion:
/*
QString m_descriptor;
QString m_name;
qint64 m_timestamp;
*/
/*!
* Gets the version's timestamp.
* This is primarily used for sorting versions in a list.
*/
qint64 timestamp;
/// The URL that this version will be downloaded from. maybe.
QString download_url;
@ -44,6 +43,20 @@ struct MinecraftVersion : public InstVersion
/// is this a snapshot?
bool is_snapshot = false;
QString m_name;
QString m_descriptor;
virtual QString descriptor()
{
return m_descriptor;
}
virtual QString name()
{
return m_name;
}
virtual QString typeString() const
{
QStringList pre_final;