mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Added piece_availability() to qtorrenthandle to prepare for piece availability widget (bar)
This commit is contained in:
parent
daef9ece75
commit
bc2a4b622b
@ -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…
Reference in New Issue
Block a user