Update QTorrentHandle

Guaranteed to accept strings with both native and qt-style separators; guaranteed to use native separators with libtorrent API
This commit is contained in:
Nick Tiskov
2013-11-10 00:28:18 +04:00
parent b706210349
commit 32b90a7b6d
2 changed files with 19 additions and 22 deletions

View File

@@ -43,6 +43,7 @@
#include <QHash>
class TorrentTempData {
// This class stores strings w/o modifying separators
public:
static bool hasTempData(const QString &hash) {
return data.contains(hash);
@@ -151,6 +152,7 @@ private:
};
class TorrentPersistentData {
// This class stores strings w/o modifying separators
public:
enum RatioLimit {
USE_GLOBAL_RATIO = -2,