pollymc/launcher/ui/pages/modplatform/modrinth/ModrinthPage.h

26 lines
969 B
C
Raw Normal View History

2022-01-14 14:13:42 +05:30
#pragma once
#include "ui/pages/modplatform/ModPage.h"
2022-01-14 14:13:42 +05:30
#include "modplatform/modrinth/ModrinthAPI.h"
class ModrinthPage : public ModPage {
2022-01-14 14:13:42 +05:30
Q_OBJECT
public:
explicit ModrinthPage(ModDownloadDialog* dialog, BaseInstance* instance);
~ModrinthPage() override = default;
2022-01-15 13:21:47 +05:30
inline auto displayName() const -> QString override { return tr("Modrinth"); }
inline auto icon() const -> QIcon override { return APPLICATION->getThemedIcon("modrinth"); }
inline auto id() const -> QString override { return "modrinth"; }
inline auto helpPage() const -> QString override { return "Modrinth-platform"; }
2022-01-14 14:13:42 +05:30
inline auto debugName() const -> QString override { return tr("Modrinth"); }
inline auto metaEntryBase() const -> QString override { return "ModrinthPacks"; };
2022-01-14 14:13:42 +05:30
auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer = "") const -> bool override;
2022-01-14 14:13:42 +05:30
auto shouldDisplay() const -> bool override;
2022-01-14 14:13:42 +05:30
};