Download assets for 1.6 on application start (background task).

This commit is contained in:
Petr Mrázek
2013-08-04 04:19:10 +02:00
parent 4f73091bb5
commit 0adf1828b0
6 changed files with 82 additions and 25 deletions

View File

@ -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);