aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/flame/FlameModPage.h
blob: 90513ca5e3596ef02bc98421a47130297f377d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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 validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer = "") const override;

    bool shouldDisplay() const override;
};