mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
- Initial implementation of Peer list
This commit is contained in:
parent
d8c6e2bcc6
commit
8260159ca4
11 changed files with 283 additions and 62 deletions
|
@ -129,6 +129,11 @@ int QTorrentHandle::num_pieces() const {
|
|||
return h.get_torrent_info().num_pieces();
|
||||
}
|
||||
|
||||
void QTorrentHandle::get_peer_info(std::vector<peer_info>& v) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.get_peer_info(v);
|
||||
}
|
||||
|
||||
size_type QTorrentHandle::total_wanted_done() const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
return h.status().total_wanted_done;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue