Rewrite code for returning information about torrents as JSON (Web UI)

- The new code is simpler, cleaner and more efficient
This commit is contained in:
Christophe Dumez
2012-05-26 20:42:44 +03:00
parent fc4989d738
commit 9a964d871d
19 changed files with 825 additions and 412 deletions

View File

@@ -97,7 +97,7 @@ public:
// use Binary prefix standards from IEC 60027-2
// see http://en.wikipedia.org/wiki/Kilobyte
// value must be given in bytes
static QString friendlyUnit(qreal val);
static QString friendlyUnit(qreal val, bool is_speed = false);
static bool isPreviewable(QString extension);
static QString magnetUriToName(QString magnet_uri);
static QString magnetUriToHash(QString magnet_uri);