2022-01-14 14:13:42 +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-14 14:13:42 +05:30
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
2022-03-03 05:47:10 +05:30
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
#include <QThreadPool>
|
2022-01-14 14:13:42 +05:30
|
|
|
|
|
|
|
#include <net/NetJob.h>
|
2022-03-03 05:47:10 +05:30
|
|
|
#include <functional>
|
2022-01-14 14:13:42 +05:30
|
|
|
|
2022-01-15 13:21:47 +05:30
|
|
|
#include "BaseInstance.h"
|
|
|
|
#include "ModrinthPage.h"
|
2022-03-03 05:47:10 +05:30
|
|
|
#include "modplatform/modrinth/ModrinthPackIndex.h"
|
2022-01-14 14:13:42 +05:30
|
|
|
|
|
|
|
namespace Modrinth {
|
|
|
|
|
|
|
|
typedef std::function<void(QString)> LogoCallback;
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
class ListModel : public ModPlatform::ListModel {
|
2022-01-14 14:13:42 +05:30
|
|
|
Q_OBJECT
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
public:
|
|
|
|
ListModel(ModrinthPage* parent);
|
2022-01-14 14:13:42 +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-14 14:13:42 +05:30
|
|
|
};
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
} // namespace Modrinth
|