// SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert // // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include using DownloadItem = QWebEngineDownloadRequest; class DownloadManager { public: static DownloadManager &instance(); Q_INVOKABLE void addDownload(std::unique_ptr &&download); Q_INVOKABLE void removeDownload(const int index); const std::vector> &downloads(); private: DownloadManager(); std::vector> m_downloads; };