- Added priority actions in Web UI

This commit is contained in:
Christophe Dumez 2008-12-29 22:46:18 +00:00
parent 4c6359276c
commit 330905da5e
8 changed files with 43 additions and 13 deletions

View file

@ -81,6 +81,11 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
if(!h.is_seed()) {
event["progress"] = QVariant(h.progress());
event["dlspeed"] = QVariant(h.download_payload_rate());
if(BTSession->isQueueingEnabled()) {
event["priority"] = QVariant(h.queue_position());
} else {
event["priority"] = -1;
}
}
event["upspeed"] = QVariant(h.upload_payload_rate());
event["seed"] = QVariant(h.is_seed());