pollymc/launcher/ui/pages/modplatform/flame/FlameModModel.h

40 lines
728 B
C
Raw Normal View History

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