Changeset 2328 for vidalia/trunk/src/vidalia/config/vidaliasettings.cpp
- Timestamp:
- 01/27/08 13:59:29 (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vidalia/trunk/src/vidalia/config/vidaliasettings.cpp
r2324 r2328 45 45 #define SETTING_BROWSER_EXECUTABLE "BrowserExecutable" 46 46 #define SETTING_PROXY_EXECUTABLE "ProxyExecutable" 47 #define SETTING_PROXY_EXECUTABLE_ARGUMENTS "ProxyExecutableArguments" 47 48 48 49 #if defined(Q_OS_WIN32) … … 77 78 setDefault(SETTING_BROWSER_EXECUTABLE, ""); 78 79 setDefault(SETTING_PROXY_EXECUTABLE, ""); 80 setDefault(SETTING_PROXY_EXECUTABLE_ARGUMENTS, QStringList()); 79 81 } 80 82 … … 197 199 } 198 200 199 /** Sets the location and name of the proxy server executable to the given string.200 * If set to the empty string, the proxy will not be started. */201 /** Sets the location and name of the proxy server executable to the given 202 * string. If set to the empty string, the proxy will not be started. */ 201 203 void 202 204 VidaliaSettings::setProxyExecutable(const QString &proxyExecutable) … … 204 206 setValue(SETTING_PROXY_EXECUTABLE, proxyExecutable); 205 207 } 208 209 /** Returns a list containing additional command line arguments to be passed 210 * to ProxyExecutable */ 211 QStringList 212 VidaliaSettings::getProxyExecutableArguments() const 213 { 214 return value(SETTING_PROXY_EXECUTABLE_ARGUMENTS).toStringList(); 215 } 216 217 /** Sets the additional arguments to be passed to Proxy Executable */ 218 void 219 VidaliaSettings::setProxyExecutableArguments(const QStringList 220 &proxyExecutableArguments) 221 { 222 setValue(SETTING_PROXY_EXECUTABLE_ARGUMENTS, proxyExecutableArguments); 223 } 224
