mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
parent
a14b50e48c
commit
54dffa1051
2 changed files with 6 additions and 0 deletions
|
@ -232,6 +232,11 @@ namespace
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TorrentsController::countAction()
|
||||||
|
{
|
||||||
|
setResult(QString::number(BitTorrent::Session::instance()->torrents().count()));
|
||||||
|
}
|
||||||
|
|
||||||
// Returns all the torrents in JSON format.
|
// Returns all the torrents in JSON format.
|
||||||
// The return value is a JSON-formatted list of dictionaries.
|
// The return value is a JSON-formatted list of dictionaries.
|
||||||
// The dictionary keys are:
|
// The dictionary keys are:
|
||||||
|
|
|
@ -39,6 +39,7 @@ public:
|
||||||
using APIController::APIController;
|
using APIController::APIController;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void countAction();
|
||||||
void infoAction();
|
void infoAction();
|
||||||
void propertiesAction();
|
void propertiesAction();
|
||||||
void trackersAction();
|
void trackersAction();
|
||||||
|
|
Loading…
Reference in a new issue