Better reporting of success/failure of torrent and file deletion.

This commit is contained in:
sledgehammer999
2017-09-14 19:55:14 +03:00
parent d165da9c6c
commit 8f16388915
2 changed files with 35 additions and 10 deletions

View File

@@ -536,6 +536,13 @@ namespace BitTorrent
void networkConfigurationChange(const QNetworkConfiguration&);
private:
struct RemovingTorrentData
{
QString name;
QString savePathToRemove;
bool requestedFileDeletion;
};
explicit Session(QObject *parent = 0);
~Session();
@@ -705,7 +712,6 @@ namespace BitTorrent
QList<BitTorrent::TrackerEntry> m_additionalTrackerList;
QString m_resumeFolderPath;
QFile m_resumeFolderLock;
QHash<InfoHash, QString> m_savePathsToRemove;
bool m_useProxy;
QTimer *m_refreshTimer;
@@ -725,6 +731,7 @@ namespace BitTorrent
QHash<InfoHash, TorrentHandle *> m_torrents;
QHash<InfoHash, AddTorrentData> m_addingTorrents;
QHash<QString, AddTorrentParams> m_downloadedTorrents;
QHash<InfoHash, RemovingTorrentData> m_removingTorrents;
TorrentStatusReport m_torrentStatusReport;
QStringMap m_categories;
QSet<QString> m_tags;