mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
DownloadManager::removeDownload()
This commit is contained in:
parent
88eb29f791
commit
be017b7e2c
@ -527,7 +527,7 @@ void ContentManager::downloadStarted(const kiwix::Book& book, const std::string&
|
|||||||
|
|
||||||
void ContentManager::removeDownload(QString bookId)
|
void ContentManager::removeDownload(QString bookId)
|
||||||
{
|
{
|
||||||
m_downloads.remove(bookId);
|
DownloadManager::removeDownload(bookId);
|
||||||
managerModel->removeDownload(bookId);
|
managerModel->removeDownload(bookId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,3 +172,8 @@ bool DownloadManager::cancelDownload(const QString& bookId)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DownloadManager::removeDownload(QString bookId)
|
||||||
|
{
|
||||||
|
m_downloads.remove(bookId);
|
||||||
|
}
|
||||||
|
@ -79,6 +79,7 @@ public: // functions
|
|||||||
void pauseDownload(const QString& bookId);
|
void pauseDownload(const QString& bookId);
|
||||||
void resumeDownload(const QString& bookId);
|
void resumeDownload(const QString& bookId);
|
||||||
bool cancelDownload(const QString& bookId);
|
bool cancelDownload(const QString& bookId);
|
||||||
|
void removeDownload(QString bookId);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void downloadUpdated(QString bookId, const DownloadInfo& );
|
void downloadUpdated(QString bookId, const DownloadInfo& );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user