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

53 lines
1.1 KiB
C
Raw Normal View History

#pragma once
2022-08-15 11:14:37 -04:00
#include <QJsonArray>
#include <QObject>
#include <QProgressDialog>
2022-08-15 11:14:37 -04:00
#include <QTemporaryDir>
#include "launchercore.h"
class LauncherCore;
class QNetworkReply;
struct ProfileSettings;
class AssetUpdater : public QObject {
Q_OBJECT
public:
AssetUpdater(LauncherCore& launcher);
void update(const ProfileSettings& profile);
void beginInstall();
void checkIfCheckingIsDone();
void checkIfDalamudAssetsDone();
void checkIfFinished();
signals:
void finishedUpdating();
private:
LauncherCore& launcher;
QProgressDialog* dialog;
DalamudChannel chosenChannel;
2022-01-27 10:46:22 -05:00
QString remoteDalamudVersion;
QString remoteRuntimeVersion;
2022-01-27 10:46:22 -05:00
QTemporaryDir tempDir;
bool doneDownloadingDalamud = false;
bool doneDownloadingRuntimeCore = false;
bool doneDownloadingRuntimeDesktop = false;
bool needsRuntimeInstall = false;
bool needsDalamudInstall = false;
int remoteDalamudAssetVersion = -1;
QList<QString> dalamudAssetNeededFilenames;
QJsonArray remoteDalamudAssetArray;
QString dataDir;
2022-01-27 10:46:22 -05:00
};