2023-08-05 22:14:05 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-07-30 08:49:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class LauncherCore;
|
|
|
|
class Profile;
|
|
|
|
|
|
|
|
class GameInstaller : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
GameInstaller(LauncherCore &launcher, Profile &profile, QObject *parent = nullptr);
|
|
|
|
|
|
|
|
Q_INVOKABLE void installGame();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void installFinished();
|
2023-08-18 21:59:42 -04:00
|
|
|
void error(QString message);
|
2023-07-30 08:49:34 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
LauncherCore &m_launcher;
|
|
|
|
Profile &m_profile;
|
|
|
|
};
|