File indexing completed on 2025-01-05 04:29:55
0001 /** 0002 * SPDX-FileCopyrightText: 2020 Tobias Fella <tobias.fella@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <KJob> 0010 #include <QNetworkReply> 0011 0012 class EnclosureDownloadJob : public KJob 0013 { 0014 public: 0015 explicit EnclosureDownloadJob(const QString &url, const QString &filename, const QString &title, QObject *parent = nullptr); 0016 0017 void start() override; 0018 bool doKill() override; 0019 0020 private: 0021 QString m_url; 0022 QString m_filename; 0023 QString m_title; 0024 QNetworkReply *m_reply = nullptr; 0025 0026 void startDownload(); 0027 };