1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00
astra/launcher/include/gameinstaller.h

31 lines
No EOL
634 B
C++

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QObject>
#include <QString>
#include <QtQml/qqmlregistration.h>
class LauncherCore;
class Profile;
class GameInstaller : public QObject
{
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("Use LauncherCore.createInstaller")
public:
GameInstaller(LauncherCore &launcher, Profile &profile, QObject *parent = nullptr);
Q_INVOKABLE void installGame();
Q_SIGNALS:
void installFinished();
void error(QString message);
private:
LauncherCore &m_launcher;
Profile &m_profile;
};