Implement sync/maindata request

This commit is contained in:
buinsky
2015-01-06 23:04:23 +03:00
parent 0d43ee7076
commit 383c0e1418
5 changed files with 140 additions and 48 deletions

View File

@@ -33,6 +33,7 @@
#include <QCoreApplication>
#include <QString>
#include <QVariant>
class QTorrentHandle;
@@ -46,6 +47,7 @@ private:
public:
static QByteArray getTorrents(QString filter = "all", QString label = QString(),
QString sortedColumn = "name", bool reverse = false, int limit = 0, int offset = 0);
static QByteArray getSyncMainData(int acceptedResponseId, QVariantMap &lastData, QVariantMap &lastAcceptedData);
static QByteArray getTrackersForTorrent(const QString& hash);
static QByteArray getPropertiesForTorrent(const QString& hash);
static QByteArray getFilesForTorrent(const QString& hash);