From 0adf1828b047699b9d15e2abf08a1ae0b89da73b Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 4 Aug 2013 04:19:10 +0200 Subject: Download assets for 1.6 on application start (background task). --- libutil/include/dlqueue.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'libutil/include') diff --git a/libutil/include/dlqueue.h b/libutil/include/dlqueue.h index 69fc22a6..cdb6a818 100644 --- a/libutil/include/dlqueue.h +++ b/libutil/include/dlqueue.h @@ -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 net_mgr, + QUrl url, + QString rel_target_path = QString(), + QString expected_md5 = QString() + ); + static JobPtr create(QSharedPointer net_mgr, + QUrl url, + QString rel_target_path = QString(), + QString expected_md5 = QString() + ); public: static bool ensurePathExists(QString filenamepath); -- cgit