libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/mediaconfig.h>
Public Member Functions | |
bool | setConfigValue (const std::string §ion, const std::string &entry, const std::string &value) |
Pathname | credentialsGlobalDir () const |
Pathname | credentialsGlobalFile () const |
long | download_max_concurrent_connections () const |
long | download_min_download_speed () const |
long | download_max_download_speed () const |
long | download_max_silent_tries () const |
long | download_transfer_timeout () const |
long | download_connect_timeout () const |
Static Public Member Functions | |
static MediaConfig & | instance () |
Private Member Functions | |
MediaConfig () | |
Private Attributes | |
std::unique_ptr< MediaConfigPrivate > | d_ptr |
Helper class to collect global options and settings related to zypp-media. Use it to avoid hardcoded values and calls to getZYpp() just to retrieve some value like credentials path or download related settings.
Note, if you add settings to this file, please follow the following convention:
namespace.settingname
should become
namespace_settingName()
Definition at line 42 of file mediaconfig.h.
|
private |
Definition at line 43 of file mediaconfig.cc.
|
static |
Singleton ctor
Definition at line 46 of file mediaconfig.cc.
bool zypp::MediaConfig::setConfigValue | ( | const std::string & | section, |
const std::string & | entry, | ||
const std::string & | value | ||
) |
Definition at line 52 of file mediaconfig.cc.
Pathname zypp::MediaConfig::credentialsGlobalDir | ( | ) | const |
Defaults to /etc/zypp/credentials.d
Definition at line 95 of file mediaconfig.cc.
Pathname zypp::MediaConfig::credentialsGlobalFile | ( | ) | const |
Defaults to /etc/zypp/credentials.cat
Definition at line 102 of file mediaconfig.cc.
long zypp::MediaConfig::download_max_concurrent_connections | ( | ) | const |
Maximum number of concurrent connections for a single transfer
Definition at line 109 of file mediaconfig.cc.
long zypp::MediaConfig::download_min_download_speed | ( | ) | const |
Minimum download speed (bytes per second) until the connection is dropped
Definition at line 112 of file mediaconfig.cc.
long zypp::MediaConfig::download_max_download_speed | ( | ) | const |
Maximum download speed (bytes per second)
Definition at line 115 of file mediaconfig.cc.
long zypp::MediaConfig::download_max_silent_tries | ( | ) | const |
Maximum silent tries
Definition at line 118 of file mediaconfig.cc.
long zypp::MediaConfig::download_transfer_timeout | ( | ) | const |
Maximum time in seconds that you allow a transfer operation to take.
Definition at line 121 of file mediaconfig.cc.
long zypp::MediaConfig::download_connect_timeout | ( | ) | const |
Maximum time in seconds that you allow the connection phase to the server to take.
Definition at line 124 of file mediaconfig.cc.
|
private |
Definition at line 95 of file mediaconfig.h.