- Use libtorrent queueing system (probably buggy and queueing currently does not work for seeds)

This commit is contained in:
Christophe Dumez 2008-11-02 10:47:59 +00:00
parent 0538c9c3e8
commit f3729fbae6
8 changed files with 182 additions and 535 deletions

View file

@ -266,6 +266,11 @@ QStringList QTorrentHandle::files_path() const {
return res;
}
int QTorrentHandle::queue_position() const {
Q_ASSERT(h.is_valid());
return h.queue_position();
}
int QTorrentHandle::num_uploads() const {
Q_ASSERT(h.is_valid());
return h.status().num_uploads;
@ -335,6 +340,17 @@ void QTorrentHandle::replace_trackers(std::vector<announce_entry> const& v) cons
h.replace_trackers(v);
}
void QTorrentHandle::queue_position_down() const {
Q_ASSERT(h.is_valid());
h.queue_position_down();
}
void QTorrentHandle::queue_position_up() const {
Q_ASSERT(h.is_valid());
h.queue_position_up();
}
void QTorrentHandle::force_reannounce() {
Q_ASSERT(h.is_valid());
h.force_reannounce();