Improve "save resume data" handling

This commit is contained in:
Vladimir Golovnev (Glassez)
2021-03-09 18:44:41 +03:00
parent a8ae97ba91
commit 560239c918
3 changed files with 67 additions and 40 deletions

View File

@@ -465,6 +465,7 @@ namespace BitTorrent
void bottomTorrentsQueuePos(const QVector<TorrentID> &ids);
// Torrent interface
void handleTorrentNeedSaveResumeData(const TorrentImpl *torrent);
void handleTorrentSaveResumeDataRequested(const TorrentImpl *torrent);
void handleTorrentShareLimitChanged(TorrentImpl *const torrent);
void handleTorrentNameChanged(TorrentImpl *const torrent);
@@ -770,6 +771,7 @@ namespace BitTorrent
QHash<TorrentID, LoadTorrentParams> m_loadingTorrents;
QHash<QString, AddTorrentParams> m_downloadedTorrents;
QHash<TorrentID, RemovingTorrentData> m_removingTorrents;
QSet<TorrentID> m_needSaveResumeDataTorrents;
QStringMap m_categories;
QSet<QString> m_tags;