mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 04:24:23 +00:00
parent
4a20a1660e
commit
cecbb44a03
@ -234,6 +234,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();
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
#include "base/utils/version.h"
|
#include "base/utils/version.h"
|
||||||
#include "api/isessionmanager.h"
|
#include "api/isessionmanager.h"
|
||||||
|
|
||||||
inline const Utils::Version<3, 2> API_VERSION {2, 9, 6};
|
inline const Utils::Version<3, 2> API_VERSION {2, 10, 0};
|
||||||
|
|
||||||
class APIController;
|
class APIController;
|
||||||
class AuthController;
|
class AuthController;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user