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

26 lines
645 B
C
Raw Normal View History

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