Add support for anonymous mode

This mode was added in libtorrent v0.16 and should be used in
addition to a SOCKS5 proxy.
This commit is contained in:
Christophe Dumez
2011-09-20 20:15:47 +03:00
parent e83618a1b2
commit 5990615248
8 changed files with 118 additions and 5 deletions

View File

@@ -1013,6 +1013,16 @@ public:
return value(QString::fromUtf8("Preferences/Connection/InetAddress"), QString()).toString();
}
#if LIBTORRENT_VERSION_MINOR > 15
bool isAnonymousModeEnabled() const {
return value(QString::fromUtf8("Preferences/Advanced/AnonymousMode"), false).toBool();
}
void enableAnonymousMode(bool enabled) {
setValue(QString::fromUtf8("Preferences/Advanced/AnonymousMode"), enabled);
}
#endif
#if LIBTORRENT_VERSION_MINOR > 14
bool isSuperSeedingEnabled() const {
return value(QString::fromUtf8("Preferences/Advanced/SuperSeeding"), false).toBool();