FEATURE: Proxy can be disabled for peer connections

This commit is contained in:
Christophe Dumez
2011-05-01 11:22:17 +00:00
parent 18e08c319f
commit 65883317c3
39 changed files with 2354 additions and 2020 deletions

View File

@@ -509,6 +509,14 @@ public:
setValue(QString::fromUtf8("Preferences/Connection/ProxyType"), type);
}
void setProxyPeerConnections(bool enabled) {
setValue(QString::fromUtf8("Preferences/Connection/ProxyPeerConnections"), enabled);
}
bool proxyPeerConnections() const {
return value(QString::fromUtf8("Preferences/Connection/ProxyPeerConnections"), false).toBool();
}
// Bittorrent options
int getMaxConnecs() const {
return value(QString::fromUtf8("Preferences/Bittorrent/MaxConnecs"), 500).toInt();