mirror of
https://invent.kde.org/marcoa/a-la-karte.git
synced 2026-02-09 21:13:08 +00:00
24 lines
550 B
C
24 lines
550 B
C
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
// SPDX-FileCopyrightText: 2026 A-La-Karte Contributors
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "platformimporter.h"
|
||
|
|
|
||
|
|
class LegendaryImporter : public PlatformImporter
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit LegendaryImporter(QObject *parent = nullptr);
|
||
|
|
|
||
|
|
QString platformName() const override;
|
||
|
|
QString platformId() const override;
|
||
|
|
bool isAvailable() const override;
|
||
|
|
QList<Game *> importGames() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
QString getLegendaryConfigPath() const;
|
||
|
|
QList<Game *> parseInstalledGames() const;
|
||
|
|
};
|