mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 13:26:58 +03:00
Download assets for 1.6 on application start (background task).
This commit is contained in:
parent
4f73091bb5
commit
0adf1828b0
6 changed files with 82 additions and 25 deletions
|
|
@ -9,9 +9,22 @@ class LIBUTIL_EXPORT DownloadJob : public Job
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DownloadJob(QUrl url, QString rel_target_path = QString(), QString expected_md5 = QString());
|
||||
DownloadJob(QUrl url,
|
||||
QString rel_target_path = QString(),
|
||||
QString expected_md5 = QString()
|
||||
);
|
||||
static JobPtr create(QUrl url, QString rel_target_path = QString(), QString expected_md5 = QString());
|
||||
|
||||
DownloadJob(QSharedPointer<QNetworkAccessManager> net_mgr,
|
||||
QUrl url,
|
||||
QString rel_target_path = QString(),
|
||||
QString expected_md5 = QString()
|
||||
);
|
||||
static JobPtr create(QSharedPointer<QNetworkAccessManager> net_mgr,
|
||||
QUrl url,
|
||||
QString rel_target_path = QString(),
|
||||
QString expected_md5 = QString()
|
||||
);
|
||||
|
||||
public:
|
||||
static bool ensurePathExists(QString filenamepath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue