diff options
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; +}; |