57 if ( section ==
"main" ) {
58 if ( entry ==
"credentials.global.dir" ) {
59 d->credentials_global_dir_path =
Pathname(value);
61 }
else if ( entry ==
"credentials.global.file" ) {
62 d->credentials_global_file_path =
Pathname(value);
65 }
else if ( entry ==
"download.max_concurrent_connections" ) {
69 }
else if ( entry ==
"download.min_download_speed" ) {
73 }
else if ( entry ==
"download.min_download_speed_time" ) {
77 }
else if ( entry ==
"download.max_download_speed" ) {
81 }
else if ( entry ==
"download.max_silent_tries" ) {
85 }
else if ( entry ==
"download.connect_timeout" ) {
87 if ( d->download_connect_timeout < 0 )
88 d->download_connect_timeout = 0;
91 }
else if ( entry ==
"download.transfer_timeout" ) {
93 if ( d->download_transfer_timeout < 0 ) d->download_transfer_timeout = 0;
94 else if ( d->download_transfer_timeout > 3600 ) d->download_transfer_timeout = 3600;
104 return ( d->credentials_global_dir_path.empty() ?
105 Pathname(
"/etc/zypp/credentials.d") : d->credentials_global_dir_path );
111 return ( d->credentials_global_file_path.empty() ?
112 Pathname(
"/etc/zypp/credentials.cat") : d->credentials_global_file_path );
116 {
return d_func()->download_max_concurrent_connections; }
119 {
return d_func()->download_min_download_speed; }
122 {
return d_func()->download_min_download_speed_time; }
125 {
return d_func()->download_max_download_speed; }
128 {
return d_func()->download_max_silent_tries; }
131 {
return d_func()->download_transfer_timeout; }
134 {
return d_func()->download_connect_timeout; }
#define ZYPP_IMPL_PRIVATE(Class)
TInt strtonum(const C_Str &str)
Parsing numbers from string.
Easy-to use interface to the ZYPP dependency resolver.