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

27 lines
874 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);
virtual ~ModrinthPage() = default;
2022-01-15 13:21:47 +05:30
inline QString displayName() const override { return tr("Modrinth"); }
inline QIcon icon() const override { return APPLICATION->getThemedIcon("modrinth"); }
inline QString id() const override { return "modrinth"; }
inline QString helpPage() const override { return "Modrinth-platform"; }
2022-01-14 14:13:42 +05:30
inline QString debugName() const override { return tr("Modrinth"); }
inline QString metaEntryBase() const override { return "ModrinthPacks"; };
2022-01-14 14:13:42 +05:30
bool shouldDisplay() const override;
2022-01-14 14:13:42 +05:30
private:
void onGetVersionsSucceeded(ModPage*, QByteArray*, QString) override;
2022-01-14 14:13:42 +05:30
};