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