PrismLauncher/launcher/ui/pages/modplatform/flame/FlameModPage.h

31 lines
952 B
C
Raw Normal View History

2022-01-16 10:20:21 +00:00
#pragma once
#include "ui/pages/modplatform/ModPage.h"
2022-01-16 10:20:21 +00:00
#include "modplatform/flame/FlameAPI.h"
class FlameModPage : public ModPage {
2022-01-16 10:20:21 +00:00
Q_OBJECT
public:
explicit FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance);
virtual ~FlameModPage() = default;
2022-01-16 10:20:21 +00:00
inline QString displayName() const override { return tr("CurseForge"); }
inline QIcon icon() const override { return APPLICATION->getThemedIcon("flame"); }
inline QString id() const override { return "curseforge"; }
inline QString helpPage() const override { return "Flame-platform"; }
2022-01-16 10:20:21 +00:00
inline QString debugName() const override { return tr("Flame"); }
inline QString metaEntryBase() const override { return "FlameMods"; };
2022-01-16 10:20:21 +00:00
bool shouldDisplay() const override;
const ModAPI* apiProvider() const override { return &api; };
2022-01-16 10:20:21 +00:00
private:
void onModVersionSucceed(ModPage*, QByteArray*, QString) override;
private:
FlameAPI api;
2022-01-16 10:20:21 +00:00
};