2023-01-23 19:33:55 +05:30
|
|
|
// SPDX-FileCopyrightText: 2023 flowln <flowlnlnln@gmail.com>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
|
2022-01-16 15:50:21 +05:30
|
|
|
#pragma once
|
|
|
|
|
2022-12-17 03:33:52 +05:30
|
|
|
#include "ui/pages/modplatform/ModModel.h"
|
|
|
|
#include "ui/pages/modplatform/flame/FlameResourcePages.h"
|
|
|
|
|
|
|
|
namespace ResourceDownload {
|
|
|
|
|
|
|
|
class FlameModModel : public ModModel {
|
2022-01-16 15:50:21 +05:30
|
|
|
Q_OBJECT
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
public:
|
2022-12-19 00:11:46 +05:30
|
|
|
FlameModModel(const BaseInstance&);
|
2022-12-17 03:33:52 +05:30
|
|
|
~FlameModModel() override = default;
|
2022-03-03 07:31:23 +05:30
|
|
|
|
|
|
|
private:
|
2022-12-19 00:11:46 +05:30
|
|
|
[[nodiscard]] QString debugName() const override { return Flame::debugName() + " (Model)"; }
|
|
|
|
[[nodiscard]] QString metaEntryBase() const override { return Flame::metaEntryBase(); }
|
|
|
|
|
2022-03-08 03:59:59 +05:30
|
|
|
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
|
2022-07-19 20:59:31 +05:30
|
|
|
void loadExtraPackInfo(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
|
2022-03-08 03:59:59 +05:30
|
|
|
void loadIndexedPackVersions(ModPlatform::IndexedPack& m, QJsonArray& arr) override;
|
2022-03-08 02:16:18 +05:30
|
|
|
|
2022-03-08 19:42:35 +05:30
|
|
|
auto documentToArray(QJsonDocument& obj) const -> QJsonArray override;
|
2022-01-16 15:50:21 +05:30
|
|
|
};
|
|
|
|
|
2022-12-17 03:33:52 +05:30
|
|
|
} // namespace ResourceDownload
|