2022-01-16 11:20:21 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-16 19:03:52 -03:00
|
|
|
#include "ui/pages/modplatform/ModModel.h"
|
|
|
|
#include "ui/pages/modplatform/flame/FlameResourcePages.h"
|
|
|
|
|
|
|
|
namespace ResourceDownload {
|
|
|
|
|
|
|
|
class FlameModModel : public ModModel {
|
2022-01-16 11:20:21 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
2022-03-02 21:17:10 -03:00
|
|
|
public:
|
2022-12-18 15:41:46 -03:00
|
|
|
FlameModModel(const BaseInstance&);
|
2022-12-16 19:03:52 -03:00
|
|
|
~FlameModModel() override = default;
|
2022-03-02 23:01:23 -03:00
|
|
|
|
|
|
|
private:
|
2022-12-18 15:41:46 -03:00
|
|
|
[[nodiscard]] QString debugName() const override { return Flame::debugName() + " (Model)"; }
|
|
|
|
[[nodiscard]] QString metaEntryBase() const override { return Flame::metaEntryBase(); }
|
|
|
|
|
2022-03-07 19:29:59 -03:00
|
|
|
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
|
2022-07-19 12:29:31 -03:00
|
|
|
void loadExtraPackInfo(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
|
2022-03-07 19:29:59 -03:00
|
|
|
void loadIndexedPackVersions(ModPlatform::IndexedPack& m, QJsonArray& arr) override;
|
2022-03-07 17:46:18 -03:00
|
|
|
|
2022-03-08 11:12:35 -03:00
|
|
|
auto documentToArray(QJsonDocument& obj) const -> QJsonArray override;
|
2022-01-16 11:20:21 +01:00
|
|
|
};
|
|
|
|
|
2022-12-16 19:03:52 -03:00
|
|
|
} // namespace ResourceDownload
|