Update proxy settings in Web UI

This commit is contained in:
Christophe Dumez 2011-05-01 12:00:23 +00:00
commit b59dded2a4
3 changed files with 16 additions and 1 deletions

View file

@ -234,6 +234,8 @@ void EventManager::setGlobalPreferences(QVariantMap m) const {
pref.setProxyIp(m["proxy_ip"].toString());
if(m.contains("proxy_port"))
pref.setProxyPort(m["proxy_port"].toUInt());
if(m.contains("proxy_peer_connections"))
pref.setProxyPeerConnections(m["proxy_peer_connections"].toBool());
if(m.contains("proxy_auth_enabled"))
pref.setProxyAuthEnabled(m["proxy_auth_enabled"].toBool());
if(m.contains("proxy_username"))
@ -305,6 +307,7 @@ QVariantMap EventManager::getGlobalPreferences() const {
data["proxy_type"] = pref.getProxyType();
data["proxy_ip"] = pref.getProxyIp();
data["proxy_port"] = pref.getProxyPort();
data["proxy_peer_connections"] = pref.proxyPeerConnections();
data["proxy_auth_enabled"] = pref.isProxyAuthEnabled();
data["proxy_username"] = pref.getProxyUsername();
data["proxy_password"] = pref.getProxyPassword();