9c57b54a81
This also adds some comments around ModModel.cpp and ModPage.cpp to add some ease of reading the code. Also move some things from headers to cpp files.
26 lines
633 B
C++
26 lines
633 B
C++
#pragma once
|
|
|
|
#include "FlameModPage.h"
|
|
|
|
namespace FlameMod {
|
|
|
|
class ListModel : public ModPlatform::ListModel {
|
|
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; };
|
|
};
|
|
|
|
} // namespace FlameMod
|