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

30 lines
679 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QObject>
#include <QString>
2023-09-16 18:01:02 -04:00
#include <QtQml/qqmlregistration.h>
class LauncherCore;
class CompatibilityToolInstaller : public QObject
{
Q_OBJECT
2023-09-16 18:01:02 -04:00
QML_ELEMENT
QML_UNCREATABLE("Use LauncherCore.createCompatInstaller")
public:
2023-09-16 21:26:46 -04:00
explicit CompatibilityToolInstaller(LauncherCore &launcher, QObject *parent = nullptr);
Q_INVOKABLE void installCompatibilityTool();
Q_INVOKABLE void removeCompatibilityTool();
Q_SIGNALS:
void installFinished();
void error(QString message);
private:
LauncherCore &m_launcher;
};