WebUI: Implement server-side torrent filtering.

This commit is contained in:
Vladimir Golovnev (Glassez)
2014-11-21 12:42:46 +03:00
parent e887f574d7
commit 5edf0e251f
6 changed files with 197 additions and 6 deletions

View File

@@ -34,6 +34,8 @@
#include <QCoreApplication>
#include <QString>
class QTorrentHandle;
class btjson
{
Q_DECLARE_TR_FUNCTIONS(misc)
@@ -42,7 +44,7 @@ private:
btjson() {}
public:
static QByteArray getTorrents();
static QByteArray getTorrents(QString filter = "all", QString label = QString());
static QByteArray getTrackersForTorrent(const QString& hash);
static QByteArray getPropertiesForTorrent(const QString& hash);
static QByteArray getFilesForTorrent(const QString& hash);