diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-01-16 17:30:56 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-01-21 10:06:01 +0000 |
commit | 0deb1ffda77f0410b3d13419856c757cdd422d2b (patch) | |
tree | 9206e32b8b23f7b8df827ec051182dbfc96d80af /src/core/download_manager_delegate_qt.h | |
parent | 3f7ea91e23d82e676aeaf157736e25cf54e5ec6b (diff) |
Remove download items internally when API objects are deleted
We were never removing internal download item.
[ChangeLog][Behavioral Changes] Deleting a download item will
now also cancel it if it is still in progress.
Change-Id: I2fab497d7acf7ca6ca17f4a61e106b1c18bfb333
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/download_manager_delegate_qt.h')
-rw-r--r-- | src/core/download_manager_delegate_qt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/download_manager_delegate_qt.h b/src/core/download_manager_delegate_qt.h index fa5bd12ec..db965b12d 100644 --- a/src/core/download_manager_delegate_qt.h +++ b/src/core/download_manager_delegate_qt.h @@ -90,6 +90,7 @@ public: void cancelDownload(quint32 downloadId); void pauseDownload(quint32 downloadId); void resumeDownload(quint32 downloadId); + void removeDownload(quint32 downloadId); void markNextDownloadAsUserRequested() { m_nextDownloadIsUserRequested = true; } @@ -99,6 +100,7 @@ public: private: void cancelDownload(const content::DownloadTargetCallback& callback); + download::DownloadItem *findDownloadById(quint32 downloadId); void savePackageDownloadCreated(download::DownloadItem *download); ProfileAdapter *m_profileAdapter; |