diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-02-14 11:44:38 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-21 20:14:55 +0300 |
commit | f0d67a082a0f28d7b4380d3b6a88f1041bfae8bb (patch) | |
tree | 3329e55f194cd2b2bf16def11e9c74b08fffd731 /staging/filterlist/downloadmanager.h | |
parent | staging: rewrite AdblockPlus parser yet again (diff) | |
download | smolbote-f0d67a082a0f28d7b4380d3b6a88f1041bfae8bb.tar.xz |
staging: add filterlist parallel downloader
Diffstat (limited to 'staging/filterlist/downloadmanager.h')
-rw-r--r-- | staging/filterlist/downloadmanager.h | 21 |
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; +}; |