diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 0382a58eb..8fb03c89a 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -85,6 +85,11 @@ bitfield QTorrentHandle::pieces() const { return h.status().pieces; } +void QTorrentHandle::piece_availability(std::vector& avail) const { + Q_ASSERT(h.is_valid()); + h.piece_availability(avail); +} + void QTorrentHandle::get_download_queue(std::vector& queue) const { Q_ASSERT(h.is_valid()); h.get_download_queue(queue); diff --git a/src/qtorrenthandle.h b/src/qtorrenthandle.h index 1e62f42cf..cd76c26cf 100644 --- a/src/qtorrenthandle.h +++ b/src/qtorrenthandle.h @@ -64,6 +64,7 @@ class QTorrentHandle { QString name() const; float progress() const; bitfield pieces() const; + void piece_availability(std::vector& avail) const; void get_download_queue(std::vector& queue) const; QString current_tracker() const; bool is_valid() const;