pollymc/launcher/ui/pages/modplatform/modrinth/ModrinthModel.h

40 lines
735 B
C
Raw Normal View History

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