- 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

@ -202,34 +202,36 @@ void HttpConnection::respondCommand(QString command)
emit torrentReadyToBeDownloaded(filePath, false, QString(), false);
return;
}
if(command == "resumeall")
{
if(command == "resumeall") {
emit resumeAllTorrents();
return;
}
if(command == "pauseall")
{
if(command == "pauseall") {
emit pauseAllTorrents();
return;
}
if(command == "resume")
{
if(command == "resume") {
emit resumeTorrent(parser.post("hash"));
return;
}
if(command == "pause")
{
if(command == "pause") {
emit pauseTorrent(parser.post("hash"));
return;
}
if(command == "delete")
{
if(command == "delete") {
emit deleteTorrent(parser.post("hash"), false);
return;
}
if(command == "deletePerm")
{
if(command == "deletePerm") {
emit deleteTorrent(parser.post("hash"), true);
return;
}
if(command == "increasePrio") {
emit increasePrioTorrent(parser.post("hash"));
return;
}
if(command == "decreasePrio") {
emit decreasePrioTorrent(parser.post("hash"));
return;
}
}