15 #define CURL_BINARY "/usr/bin/curl"
29 , _maxConcurrentConnections(
ZConfig::instance().download_max_concurrent_connections())
30 , _minDownloadSpeed(
ZConfig::instance().download_min_download_speed())
31 , _maxDownloadSpeed(
ZConfig::instance().download_max_download_speed())
32 , _maxSilentTries(
ZConfig::instance().download_max_silent_tries())
35 , _ca_path(
"/etc/ssl/certs")
36 , _head_requests_allowed(true)
45 static shared_ptr<Impl> _nullimpl(
new Impl );
50 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
53 {
return new Impl( *
this ); }
85 TransferSettings::TransferSettings()
98 _impl->_headers.push_back(header);
103 return _impl->_headers.begin();
108 return _impl->_headers.end();
113 _impl->_useragent = agent;
118 return _impl->_useragent;
128 return _impl->_username;
145 return _impl->_password;
159 _impl->_useproxy = enabled;
164 return _impl->_useproxy;
174 return _impl->_proxy;
179 _impl->_proxy_username = proxyuser;
184 return _impl->_proxy_username;
189 _impl->_proxy_password = proxypass;
194 return _impl->_proxy_password;
213 return _impl->_timeout;
218 _impl->_connect_timeout = t;
223 return _impl->_connect_timeout;
228 return _impl->_maxConcurrentConnections;
233 _impl->_maxConcurrentConnections = v;
238 return _impl->_minDownloadSpeed;
243 _impl->_minDownloadSpeed = v;
248 return _impl->_maxDownloadSpeed;
253 _impl->_maxDownloadSpeed = v;
258 return _impl->_maxSilentTries;
263 _impl->_maxSilentTries = v;
268 return _impl->_verify_host;
273 _impl->_verify_host = enabled;
278 return _impl->_verify_peer;
283 return _impl->_client_cert_path;
288 _impl->_client_cert_path = path;
293 return _impl->_client_key_path;
298 _impl->_client_key_path = path;
304 _impl->_verify_peer = enabled;
309 return _impl->_ca_path;
314 _impl->_ca_path = path;
319 _impl->_authtype = authtype;
324 return _impl->_authtype;
329 _impl->_head_requests_allowed = allowed;
334 return _impl->_head_requests_allowed;
Interim helper class to collect global options and settings.