pollymc/launcher/ui/pages/modplatform/flame/FlameModPage.h
flow f714adf6d2
refactor: move NetJob away from ModModel to ModAPI
This is done so that 1. ModAPI behaves more like an actual API instead
of just a helper, and 2. Allows for more easily creating other mod
providers that may or may not use network tasks (foreshadowing lol)
2022-03-07 16:22:57 -03:00

27 lines
856 B
C++

#pragma once
#include "ui/pages/modplatform/ModPage.h"
#include "modplatform/flame/FlameAPI.h"
class FlameModPage : public ModPage {
Q_OBJECT
public:
explicit FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance);
virtual ~FlameModPage() = default;
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"; }
inline QString debugName() const override { return tr("Flame"); }
inline QString metaEntryBase() const override { return "FlameMods"; };
bool shouldDisplay() const override;
private:
void onRequestVersionsSucceeded(QJsonDocument&, QString) override;
};