diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-17 01:48:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:01 +0200 |
commit | 0060b506257b906d40ef53d1e23404dba76afcee (patch) | |
tree | 19060c5a8d6525bbed6a91afa249a17e678e37fa /api/logic/meta/BaseEntity.h | |
parent | 40cf38bc3225c614e7e81d074f890e6f9da0507b (diff) | |
download | MultiMC-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/BaseEntity.h')
-rw-r--r-- | api/logic/meta/BaseEntity.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/meta/BaseEntity.h b/api/logic/meta/BaseEntity.h index b7a241c6..7064e9d2 100644 --- a/api/logic/meta/BaseEntity.h +++ b/api/logic/meta/BaseEntity.h @@ -17,6 +17,7 @@ #include <QObject> #include <memory> +#include <QJsonObject> #include "multimc_logic_export.h" @@ -33,10 +34,10 @@ public: virtual std::unique_ptr<Task> remoteUpdateTask() = 0; virtual std::unique_ptr<Task> localUpdateTask() = 0; virtual void merge(const std::shared_ptr<BaseEntity> &other) = 0; + virtual void parse(const QJsonObject &obj) = 0; - void store() const; virtual QString localFilename() const = 0; - virtual QJsonObject serialized() const = 0; + virtual QUrl url() const; bool isComplete() const { return m_localLoaded || m_remoteLoaded; } |