mirror of
https://invent.kde.org/marcoa/a-la-karte.git
synced 2026-02-09 21:13:08 +00:00
Initial release of A-La-Karte, a unified game launcher for KDE Plasma. Includes the QML UI, platform importers, AppStream metadata, icons, and developer documentation.
24 lines
618 B
C++
24 lines
618 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2026 A-La-Karte Contributors
|
|
|
|
#pragma once
|
|
|
|
#include "platformimporter.h"
|
|
|
|
class DesktopImporter : public PlatformImporter
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DesktopImporter(QObject *parent = nullptr);
|
|
|
|
QString platformName() const override;
|
|
QString platformId() const override;
|
|
bool isAvailable() const override;
|
|
QList<Game *> importGames() override;
|
|
|
|
private:
|
|
QStringList getDesktopFilePaths() const;
|
|
Game *parseDesktopFile(const QString &filePath) const;
|
|
bool isGameDesktopFile(const QString &filePath) const;
|
|
};
|