Added support for strict super seeding

This commit is contained in:
Christophe Dumez
2010-03-25 19:31:48 +00:00
parent 63457c034f
commit fb874695c9
3 changed files with 32 additions and 3 deletions

View File

@@ -929,6 +929,18 @@ public:
settings.setValue(QString::fromUtf8("Preferences/Connection/MaxHalfOpenConnec"), value);
}
#ifdef LIBTORRENT_0_15
static bool isSuperSeedingEnabled() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/Advanced/SuperSeeding"), false).toBool();
}
static void enableSuperSeeding(bool enabled) {
QSettings settings("qBittorrent", "qBittorrent");
settings.setValue(QString::fromUtf8("Preferences/Advanced/SuperSeeding"), enabled);
}
#endif
};
#endif // PREFERENCES_H