2022-01-16 15:50:21 +05:30
|
|
|
#pragma once
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
#include "ui/pages/modplatform/ModPage.h"
|
2022-01-16 15:50:21 +05:30
|
|
|
|
2022-03-03 07:31:23 +05:30
|
|
|
#include "modplatform/flame/FlameAPI.h"
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
class FlameModPage : public ModPage {
|
2022-01-16 15:50:21 +05:30
|
|
|
Q_OBJECT
|
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
public:
|
|
|
|
explicit FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance);
|
|
|
|
virtual ~FlameModPage() = default;
|
2022-01-16 15:50:21 +05:30
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
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 15:50:21 +05:30
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
inline QString debugName() const override { return tr("Flame"); }
|
|
|
|
inline QString metaEntryBase() const override { return "FlameMods"; };
|
2022-01-16 15:50:21 +05:30
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
bool shouldDisplay() const override;
|
2022-01-16 15:50:21 +05:30
|
|
|
|
2022-03-03 05:47:10 +05:30
|
|
|
private:
|
|
|
|
void onModVersionSucceed(ModPage*, QByteArray*, QString) override;
|
2022-01-16 15:50:21 +05:30
|
|
|
};
|