mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 12:47:44 +00:00
26 lines
No EOL
455 B
C++
26 lines
No EOL
455 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QTemporaryDir>
|
|
|
|
class LauncherCore;
|
|
class QNetworkReply;
|
|
struct ProfileSettings;
|
|
|
|
class AssetUpdater : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
AssetUpdater(LauncherCore& launcher);
|
|
|
|
void update(const ProfileSettings& profile);
|
|
void finishDownload(QNetworkReply* reply);
|
|
void beginInstall();
|
|
|
|
signals:
|
|
void finishedUpdating();
|
|
|
|
private:
|
|
LauncherCore& launcher;
|
|
|
|
QTemporaryDir tempDir;
|
|
}; |