mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +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.
|
||||
// The return value is a JSON-formatted list of dictionaries.
|
||||
// The dictionary keys are:
|
||||
|
|
|
@ -39,6 +39,7 @@ public:
|
|||
using APIController::APIController;
|
||||
|
||||
private slots:
|
||||
void countAction();
|
||||
void infoAction();
|
||||
void propertiesAction();
|
||||
void trackersAction();
|
||||
|
|
Loading…
Reference in a new issue