aboutsummaryrefslogtreecommitdiff
path: root/staging/filterlist/downloadmanager.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-02-14 11:44:38 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-04-21 20:14:55 +0300
commitf0d67a082a0f28d7b4380d3b6a88f1041bfae8bb (patch)
tree3329e55f194cd2b2bf16def11e9c74b08fffd731 /staging/filterlist/downloadmanager.h
parentstaging: rewrite AdblockPlus parser yet again (diff)
downloadsmolbote-f0d67a082a0f28d7b4380d3b6a88f1041bfae8bb.tar.xz
staging: add filterlist parallel downloader
Diffstat (limited to 'staging/filterlist/downloadmanager.h')
-rw-r--r--staging/filterlist/downloadmanager.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/staging/filterlist/downloadmanager.h b/staging/filterlist/downloadmanager.h
new file mode 100644
index 0000000..edc011d
--- /dev/null
+++ b/staging/filterlist/downloadmanager.h
@@ -0,0 +1,21 @@
+/*
+ * This file is part of smolbote. It's copyrighted by the contributors recorded
+ * in the version control history of the file, available from its original
+ * location: https://library.iserlohn-fortress.net/aqua/smolbote.git
+ *
+ * SPDX-License-Identifier: GPL-3.0
+ */
+
+#include <QtNetwork>
+
+class DownloadManager : public QObject
+{
+ Q_OBJECT
+
+public:
+ DownloadManager(QObject *parent = nullptr);
+ QNetworkReply *download(const QUrl &url, const QString &filename = QString());
+
+private:
+ QNetworkAccessManager manager;
+};