mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-28 15:34:16 +00:00
Change Session::deleteTorrent() first parameter to take InfoHash type
This commit is contained in:
parent
7f453a80d3
commit
d76adff81d
@ -1625,7 +1625,7 @@ void Session::banIP(const QString &ip)
|
|||||||
|
|
||||||
// Delete a torrent from the session, given its hash
|
// Delete a torrent from the session, given its hash
|
||||||
// and from the disk, if the corresponding deleteOption is chosen
|
// and from the disk, if the corresponding deleteOption is chosen
|
||||||
bool Session::deleteTorrent(const QString &hash, const DeleteOption deleteOption)
|
bool Session::deleteTorrent(const InfoHash &hash, const DeleteOption deleteOption)
|
||||||
{
|
{
|
||||||
TorrentHandle *const torrent = m_torrents.take(hash);
|
TorrentHandle *const torrent = m_torrents.take(hash);
|
||||||
if (!torrent) return false;
|
if (!torrent) return false;
|
||||||
|
@ -407,7 +407,7 @@ namespace BitTorrent
|
|||||||
bool isKnownTorrent(const InfoHash &hash) const;
|
bool isKnownTorrent(const InfoHash &hash) const;
|
||||||
bool addTorrent(const QString &source, const AddTorrentParams ¶ms = AddTorrentParams());
|
bool addTorrent(const QString &source, const AddTorrentParams ¶ms = AddTorrentParams());
|
||||||
bool addTorrent(const TorrentInfo &torrentInfo, const AddTorrentParams ¶ms = AddTorrentParams());
|
bool addTorrent(const TorrentInfo &torrentInfo, const AddTorrentParams ¶ms = AddTorrentParams());
|
||||||
bool deleteTorrent(const QString &hash, DeleteOption deleteOption = Torrent);
|
bool deleteTorrent(const InfoHash &hash, DeleteOption deleteOption = Torrent);
|
||||||
bool loadMetadata(const MagnetUri &magnetUri);
|
bool loadMetadata(const MagnetUri &magnetUri);
|
||||||
bool cancelLoadMetadata(const InfoHash &hash);
|
bool cancelLoadMetadata(const InfoHash &hash);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user