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

26 lines
633 B
C
Raw Normal View History

2022-01-16 15:50:21 +05:30
#pragma once
#include "FlameModPage.h"
namespace FlameMod {
class ListModel : public ModPlatform::ListModel {
2022-01-16 15:50:21 +05:30
Q_OBJECT
public:
ListModel(FlameModPage* parent) : ModPlatform::ListModel(parent) {}
;
virtual ~ListModel() = default;
private:
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj) override;
void loadIndexedPackVersions(ModPlatform::IndexedPack& m, QJsonArray& arr) override;
QJsonArray documentToArray(QJsonDocument& obj) const override;
static const char* sorts[6];
inline const char** getSorts() const override { return sorts; };
2022-01-16 15:50:21 +05:30
};
} // namespace FlameMod