40 lines
735 B
C
Raw Normal View History

2022-01-14 09:43:42 +01:00
#pragma once
#include <RWStorage.h>
#include <QIcon>
#include <QList>
#include <QMetaType>
#include <QSortFilterProxyModel>
2022-01-14 09:43:42 +01:00
#include <QString>
#include <QStringList>
#include <QStyledItemDelegate>
#include <QThreadPool>
2022-01-14 09:43:42 +01:00
#include <net/NetJob.h>
#include <functional>
2022-01-14 09:43:42 +01:00
2022-01-15 08:51:47 +01:00
#include "BaseInstance.h"
#include "ModrinthPage.h"
#include "modplatform/modrinth/ModrinthPackIndex.h"
2022-01-14 09:43:42 +01:00
namespace Modrinth {
typedef std::function<void(QString)> LogoCallback;
class ListModel : public ModPlatform::ListModel {
2022-01-14 09:43:42 +01:00
Q_OBJECT
public:
ListModel(ModrinthPage* parent);
2022-01-14 09:43:42 +01:00
virtual ~ListModel();
private slots:
void searchRequestFinished() override;
private:
const char** getSorts() const override;
2022-01-14 09:43:42 +01:00
};
} // namespace Modrinth