PrismLauncher/launcher/ui/pages/modplatform/flame/FlameModPage.h
2022-03-06 15:23:00 -03:00

27 lines
859 B
C++

#pragma once
#include "ui/pages/modplatform/ModPage.h"
#include "modplatform/flame/FlameAPI.h"
class FlameModPage : public ModPage {
Q_OBJECT
public:
explicit FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance);
virtual ~FlameModPage() = default;
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"; }
inline QString debugName() const override { return tr("Flame"); }
inline QString metaEntryBase() const override { return "FlameMods"; };
bool shouldDisplay() const override;
private:
void onGetVersionsSucceeded(ModPage*, QByteArray*, QString) override;
};