Changeset 2328
- Timestamp:
- 01/27/08 13:59:29 (10 months ago)
- Location:
- vidalia/trunk/src/vidalia
- Files:
-
- 3 modified
-
config/vidaliasettings.cpp (modified) (4 diffs)
-
config/vidaliasettings.h (modified) (2 diffs)
-
mainwindow.cpp (modified) (1 diff)
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 -
vidalia/trunk/src/vidalia/config/vidaliasettings.h
r2324 r2328 76 76 * executable name. */ 77 77 QString getBrowserExecutable() const; 78 /** Sets the location and name of the web browser executable to the given string.79 * If set to the empty string, the browser will not be started. */78 /** Sets the location and name of the web browser executable to the given 79 * string. If set to the empty string, the browser will not be started. */ 80 80 void setBrowserExecutable(const QString &browserExecutable); 81 81 … … 84 84 QString getProxyExecutable() const; 85 85 86 /** Sets the location and name of the proxy server executable to the given string.87 * If set to the empty string, the proxy will not be started. */86 /** Sets the location and name of the proxy server executable to the given 87 * string. If set to the empty string, the proxy will not be started. */ 88 88 void setProxyExecutable(const QString &proxyExecutable); 89 90 /** Returns a list containing additional command line arguments to be 91 * passed to ProxyExecutable */ 92 QStringList getProxyExecutableArguments() const; 93 94 /** Sets the additional arguments to be passed to Proxy Executable */ 95 void setProxyExecutableArguments(const QStringList &proxyExecutableArguments); 89 96 }; 90 97 -
vidalia/trunk/src/vidalia/mainwindow.cpp
r2324 r2328 460 460 461 461 if (!executable.isEmpty()) 462 _proxyProcess->start(executable, QStringList());462 _proxyProcess->start(executable, settings.getProxyExecutableArguments()); 463 463 } 464 464
