summaryrefslogtreecommitdiffstats
path: root/libutil/include/dlqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'libutil/include/dlqueue.h')
-rw-r--r--libutil/include/dlqueue.h15
1 files changed, 14 insertions, 1 deletions
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<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);