mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-30 21:15:35 +00:00
23 lines
519 B
C++
23 lines
519 B
C++
#pragma once
|
|
#include <QtCore>
|
|
|
|
struct FullVersion;
|
|
|
|
class FullVersionFactory
|
|
{
|
|
public:
|
|
enum Error
|
|
{
|
|
AllOK, // all parsed OK
|
|
ParseError, // the file was corrupted somehow
|
|
UnsupportedVersion // the file was meant for a launcher version we don't support (yet)
|
|
} m_error;
|
|
QString error_string;
|
|
|
|
public:
|
|
FullVersionFactory();
|
|
QSharedPointer<FullVersion> parse(QByteArray data);
|
|
private:
|
|
QSharedPointer<FullVersion> parse4(QJsonObject root, QSharedPointer<FullVersion> product);
|
|
QStringList legacyWhitelist;
|
|
}; |