pollymc/launcher/ui/pages/modplatform/flame/FlameResourceModels.h

31 lines
877 B
C
Raw Normal View History

2022-01-16 15:50:21 +05:30
#pragma once
#include "modplatform/flame/FlameAPI.h"
2022-01-16 15:50:21 +05:30
#include "ui/pages/modplatform/ModModel.h"
2022-01-16 15:50:21 +05:30
#include "ui/pages/modplatform/flame/FlameResourcePages.h"
namespace ResourceDownload {
class FlameModModel : public ModModel {
2022-01-16 15:50:21 +05:30
Q_OBJECT
public:
FlameModModel(FlameModPage* parent);
~FlameModModel() override = default;
private:
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
void loadExtraPackInfo(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
void loadIndexedPackVersions(ModPlatform::IndexedPack& m, QJsonArray& arr) override;
auto documentToArray(QJsonDocument& obj) const -> QJsonArray override;
// NOLINTNEXTLINE(modernize-avoid-c-arrays)
static const char* sorts[6];
inline auto getSorts() const -> const char** override { return sorts; };
2022-01-16 15:50:21 +05:30
};
} // namespace ResourceDownload