2022-01-16 10:20:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-03-03 00:17:10 +00:00
|
|
|
#include "ui/pages/modplatform/ModPage.h"
|
2022-01-16 10:20:21 +00:00
|
|
|
|
2022-03-03 02:01:23 +00:00
|
|
|
#include "modplatform/flame/FlameAPI.h"
|
|
|
|
|
2022-03-03 00:17:10 +00:00
|
|
|
class FlameModPage : public ModPage {
|
2022-01-16 10:20:21 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2022-03-03 00:17:10 +00:00
|
|
|
public:
|
|
|
|
explicit FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance);
|
2022-03-08 14:12:35 +00:00
|
|
|
~FlameModPage() override = default;
|
2022-01-16 10:20:21 +00:00
|
|
|
|
2022-03-08 14:12:35 +00:00
|
|
|
inline auto displayName() const -> QString override { return tr("CurseForge"); }
|
|
|
|
inline auto icon() const -> QIcon override { return APPLICATION->getThemedIcon("flame"); }
|
|
|
|
inline auto id() const -> QString override { return "curseforge"; }
|
|
|
|
inline auto helpPage() const -> QString override { return "Flame-platform"; }
|
2022-01-16 10:20:21 +00:00
|
|
|
|
2022-03-08 14:12:35 +00:00
|
|
|
inline auto debugName() const -> QString override { return tr("Flame"); }
|
|
|
|
inline auto metaEntryBase() const -> QString override { return "FlameMods"; };
|
2022-01-16 10:20:21 +00:00
|
|
|
|
2022-03-08 14:12:35 +00:00
|
|
|
auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer = "") const -> bool override;
|
2022-01-16 10:20:21 +00:00
|
|
|
|
2022-03-08 14:12:35 +00:00
|
|
|
auto shouldDisplay() const -> bool override;
|
2022-01-16 10:20:21 +00:00
|
|
|
};
|