14#include <zypp-core/Pathname.h>
15#include <zypp-core/base/String.h>
56 if (
entry ==
"credentials.global.dir" ) {
57 d->credentials_global_dir_path =
Pathname(value);
59 }
else if (
entry ==
"credentials.global.file" ) {
60 d->credentials_global_file_path =
Pathname(value);
63 }
else if (
entry ==
"download.max_concurrent_connections" ) {
67 }
else if (
entry ==
"download.min_download_speed" ) {
71 }
else if (
entry ==
"download.max_download_speed" ) {
75 }
else if (
entry ==
"download.max_silent_tries" ) {
79 }
else if (
entry ==
"download.connect_timeout" ) {
81 if (
d->download_connect_timeout < 0 )
82 d->download_connect_timeout = 0;
85 }
else if (
entry ==
"download.transfer_timeout" ) {
87 if (
d->download_transfer_timeout < 0 )
d->download_transfer_timeout = 0;
88 else if (
d->download_transfer_timeout > 3600 )
d->download_transfer_timeout = 3600;
98 return (
d->credentials_global_dir_path.empty() ?
99 Pathname(
"/etc/zypp/credentials.d") :
d->credentials_global_dir_path );
105 return (
d->credentials_global_file_path.empty() ?
106 Pathname(
"/etc/zypp/credentials.cat") :
d->credentials_global_file_path );
110 {
return d_func()->download_max_concurrent_connections; }
113 {
return d_func()->download_min_download_speed; }
116 {
return d_func()->download_max_download_speed; }
119 {
return d_func()->download_max_silent_tries; }
122 {
return d_func()->download_transfer_timeout; }
125 {
return d_func()->download_connect_timeout; }
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
TInt strtonum(const C_Str &str)
Parsing numbers from string.
Easy-to use interface to the ZYPP dependency resolver.