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

26 lines
954 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);
~FlameModPage() override = default;
2022-01-16 10:20:21 +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
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
auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer = "") const -> bool override;
2022-01-16 10:20:21 +00:00
auto shouldDisplay() const -> bool override;
2022-01-16 10:20:21 +00:00
};