Use new JSON parser/generator.

Qt4: Use QJson (http://qjson.sourceforge.net).
Qt5: Use native Qt JSON API.
This commit is contained in:
Vladimir Golovnev (Glassez)
2014-06-04 10:11:38 +04:00
parent f9c3719d12
commit 9f310318c2
5 changed files with 214 additions and 151 deletions

View File

@@ -41,11 +41,11 @@ private:
btjson() {}
public:
static QString getTorrents();
static QString getTrackersForTorrent(const QString& hash);
static QString getPropertiesForTorrent(const QString& hash);
static QString getFilesForTorrent(const QString& hash);
static QString getTransferInfo();
static QByteArray getTorrents();
static QByteArray getTrackersForTorrent(const QString& hash);
static QByteArray getPropertiesForTorrent(const QString& hash);
static QByteArray getFilesForTorrent(const QString& hash);
static QByteArray getTransferInfo();
}; // class btjson
#endif // BTJSON_H