2022-01-16 15:50:21 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <RWStorage.h>
|
|
|
|
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QList>
|
2022-03-03 05:47:10 +05:30
|
|
|
#include <QMetaType>
|
|
|
|
#include <QSortFilterProxyModel>
|
2022-01-16 15:50:21 +05:30
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
2022-03-03 05:47:10 +05:30
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
#include <QThreadPool>
|
2022-01-16 15:50:21 +05:30
|
|
|
|
|
|
|
#include <net/NetJob.h>
|
2022-03-03 05:47:10 +05:30
|
|
|
#include <functional>
|
2022-01-16 15:50:21 +05:30
|
|
|
|
|
|
|
#include "BaseInstance.h"
|
|
|
|
#include "FlameModPage.h"
|
2022-03-03 05:47:10 +05:30
|
|
|
#include "modplatform/flame/FlameModIndex.h"
|
2022-01-16 15:50:21 +05:30
|
|
|
|
|
|
|
namespace FlameMod {
|
|
|
|
|
|
|
|
typedef std::function<void(QString)> LogoCallback;
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
class ListModel : public ModPlatform::ListModel {
|
2022-01-16 15:50:21 +05:30
|
|
|
Q_OBJECT
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
public:
|
|
|
|
ListModel(FlameModPage* parent);
|
2022-01-16 15:50:21 +05:30
|
|
|
virtual ~ListModel();
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
private slots:
|
|
|
|
void searchRequestFinished() override;
|
2022-03-03 07:31:23 +05:30
|
|
|
|
|
|
|
private:
|
|
|
|
const char** getSorts() const override;
|
2022-01-16 15:50:21 +05:30
|
|
|
};
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
} // namespace Modrinth
|