mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
- Added piece_availability() to qtorrenthandle to prepare for piece availability widget (bar)
This commit is contained in:
parent
daef9ece75
commit
bc2a4b622b
2 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,11 @@ bitfield QTorrentHandle::pieces() const {
|
||||||
return h.status().pieces;
|
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 {
|
void QTorrentHandle::get_download_queue(std::vector<partial_piece_info>& queue) const {
|
||||||
Q_ASSERT(h.is_valid());
|
Q_ASSERT(h.is_valid());
|
||||||
h.get_download_queue(queue);
|
h.get_download_queue(queue);
|
||||||
|
|
|
@ -64,6 +64,7 @@ class QTorrentHandle {
|
||||||
QString name() const;
|
QString name() const;
|
||||||
float progress() const;
|
float progress() const;
|
||||||
bitfield pieces() const;
|
bitfield pieces() const;
|
||||||
|
void piece_availability(std::vector<int>& avail) const;
|
||||||
void get_download_queue(std::vector<partial_piece_info>& queue) const;
|
void get_download_queue(std::vector<partial_piece_info>& queue) const;
|
||||||
QString current_tracker() const;
|
QString current_tracker() const;
|
||||||
bool is_valid() const;
|
bool is_valid() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue