mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Improve "info hash" handling
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1, or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2. Add support for native libtorrent2 info hashes.
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class InfoHash;
|
||||
class Torrent;
|
||||
class TorrentID;
|
||||
}
|
||||
|
||||
namespace Ui
|
||||
@@ -67,7 +67,7 @@ private:
|
||||
qreal getRatio() const;
|
||||
int getSeedingTime() const;
|
||||
|
||||
QVector<BitTorrent::InfoHash> m_torrentHashes;
|
||||
QVector<BitTorrent::TorrentID> m_torrentIDs;
|
||||
Ui::TorrentOptionsDialog *m_ui;
|
||||
SettingValue<QSize> m_storeDialogSize;
|
||||
struct
|
||||
|
||||
Reference in New Issue
Block a user