mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- Added piece_availability() to qtorrenthandle to prepare for piece availability widget (bar)
This commit is contained in:
@@ -85,6 +85,11 @@ bitfield QTorrentHandle::pieces() const {
|
||||
return h.status().pieces;
|
||||
}
|
||||
|
||||
void QTorrentHandle::piece_availability(std::vector<int>& avail) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.piece_availability(avail);
|
||||
}
|
||||
|
||||
void QTorrentHandle::get_download_queue(std::vector<partial_piece_info>& queue) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.get_download_queue(queue);
|
||||
|
||||
Reference in New Issue
Block a user