libzypp: zypp-media/mediaconfig.h Source File

libzypp 17.38.13

mediaconfig.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MEDIA_MEDIACONFIG_H
13#define ZYPP_MEDIA_MEDIACONFIG_H
14
15#include <zypp-core/base/NonCopyable.h>
16#include <zypp-core/Pathname.h>
17#include <zypp-core/ng/base/zyppglobal.h>
18#include <memory>
19#include <string>
20
21namespace zypp {
22
23 class MediaConfigPrivate;
24
42 class MediaConfig : private base::NonCopyable
43 {
44 ZYPP_DECLARE_PRIVATE(MediaConfig)
45 public:
46
48 static MediaConfig & instance();
49
50 bool setConfigValue ( const std::string &section, const std::string &entry, const std::string &value );
51
55 Pathname credentialsGlobalDir() const;
56
60 Pathname credentialsGlobalFile() const;
61
65 long download_max_concurrent_connections() const;
66
71 long download_min_download_speed() const;
72
76 long download_max_download_speed() const;
77
81 long download_max_silent_tries() const;
82
86 long download_transfer_timeout() const;
87
91 long download_connect_timeout() const;
92
93 private:
94 MediaConfig();
95 std::unique_ptr<MediaConfigPrivate> d_ptr;
96 };
97
98}
99
100#endif
NonCopyable.h
Pathname.h
zypp::MediaConfigPrivate
Definition mediaconfig.cc:19
zypp::MediaConfig::credentialsGlobalFile
Pathname credentialsGlobalFile() const
Definition mediaconfig.cc:102
zypp::MediaConfig::download_max_download_speed
long download_max_download_speed() const
Definition mediaconfig.cc:115
zypp::MediaConfig::credentialsGlobalDir
Pathname credentialsGlobalDir() const
Definition mediaconfig.cc:95
zypp::MediaConfig::download_min_download_speed
long download_min_download_speed() const
Definition mediaconfig.cc:112
zypp::MediaConfig::download_connect_timeout
long download_connect_timeout() const
Definition mediaconfig.cc:124
zypp::MediaConfig::MediaConfig
MediaConfig()
Definition mediaconfig.cc:43
zypp::MediaConfig::download_max_concurrent_connections
long download_max_concurrent_connections() const
Definition mediaconfig.cc:109
zypp::MediaConfig::d_ptr
std::unique_ptr< MediaConfigPrivate > d_ptr
Definition mediaconfig.h:95
zypp::MediaConfig::setConfigValue
bool setConfigValue(const std::string &section, const std::string &entry, const std::string &value)
Definition mediaconfig.cc:52
zypp::MediaConfig::instance
static MediaConfig & instance()
Definition mediaconfig.cc:46
zypp::MediaConfig::download_transfer_timeout
long download_transfer_timeout() const
Definition mediaconfig.cc:121
zypp::MediaConfig::download_max_silent_tries
long download_max_silent_tries() const
Definition mediaconfig.cc:118
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zypp::base::NonCopyable
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition NonCopyable.h:26
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zyppglobal.h
ZYPP_DECLARE_PRIVATE
#define ZYPP_DECLARE_PRIVATE(Class)
Definition zyppglobal.h:80