0dd1c26cf3
This creates a hierarchy in which ModPage and ModModel are the parents of every mod provider, providing the basic functionality common to all of them. It also imposes a unique .ui file (they were already equal before, just duplicated basically) on all mod providers.
38 lines
715 B
C++
38 lines
715 B
C++
#pragma once
|
|
|
|
#include <RWStorage.h>
|
|
|
|
#include <QIcon>
|
|
#include <QList>
|
|
#include <QMetaType>
|
|
#include <QSortFilterProxyModel>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <QStyledItemDelegate>
|
|
#include <QThreadPool>
|
|
|
|
#include <net/NetJob.h>
|
|
#include <functional>
|
|
|
|
#include "BaseInstance.h"
|
|
#include "FlameModPage.h"
|
|
#include "modplatform/flame/FlameModIndex.h"
|
|
|
|
namespace FlameMod {
|
|
|
|
typedef std::function<void(QString)> LogoCallback;
|
|
|
|
class ListModel : public ModPlatform::ListModel {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ListModel(FlameModPage* parent);
|
|
virtual ~ListModel();
|
|
|
|
private slots:
|
|
void performPaginatedSearch() override;
|
|
void searchRequestFinished() override;
|
|
};
|
|
|
|
} // namespace Modrinth
|