summaryrefslogtreecommitdiffstats
path: root/api/logic/meta/VersionList.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-03-17 01:48:54 +0100
committerPetr Mrázek <peterix@gmail.com>2017-04-07 00:20:01 +0200
commit0060b506257b906d40ef53d1e23404dba76afcee (patch)
tree19060c5a8d6525bbed6a91afa249a17e678e37fa /api/logic/meta/VersionList.h
parent40cf38bc3225c614e7e81d074f890e6f9da0507b (diff)
downloadMultiMC-0060b506257b906d40ef53d1e23404dba76afcee.tar
MultiMC-0060b506257b906d40ef53d1e23404dba76afcee.tar.gz
MultiMC-0060b506257b906d40ef53d1e23404dba76afcee.tar.lz
MultiMC-0060b506257b906d40ef53d1e23404dba76afcee.tar.xz
MultiMC-0060b506257b906d40ef53d1e23404dba76afcee.zip
NOISSUE simplify.
Diffstat (limited to 'api/logic/meta/VersionList.h')
-rw-r--r--api/logic/meta/VersionList.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/meta/VersionList.h b/api/logic/meta/VersionList.h
index 0eb85bf8..934b20e4 100644
--- a/api/logic/meta/VersionList.h
+++ b/api/logic/meta/VersionList.h
@@ -17,6 +17,7 @@
#include "BaseVersionList.h"
#include "BaseEntity.h"
+#include <QJsonObject>
#include <memory>
namespace Meta
@@ -57,7 +58,6 @@ public:
std::unique_ptr<Task> localUpdateTask() override;
QString localFilename() const override;
- QJsonObject serialized() const override;
QString uid() const { return m_uid; }
QString name() const { return m_name; }
@@ -72,6 +72,7 @@ public: // for usage only by parsers
void setName(const QString &name);
void setVersions(const QVector<VersionPtr> &versions);
void merge(const BaseEntity::Ptr &other) override;
+ void parse(const QJsonObject &obj) override;
signals:
void nameChanged(const QString &name);