libzypp: zypp/media/proxyinfo/ProxyInfoSysconfig.h Source File

libzypp 17.25.10

ProxyInfoSysconfig.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_MEDIA_PROXYINFO_PROXYINFOSYSCONFIG_H
13 #define ZYPP_MEDIA_PROXYINFO_PROXYINFOSYSCONFIG_H
14
15 #include <string>
16 #include <map>
17
18 #include <zypp/base/Sysconfig.h>
19 #include <zypp/base/DefaultIntegral.h>
20 #include <zypp/media/ProxyInfo.h>
21 #include <zypp/media/proxyinfo/ProxyInfoImpl.h>
22
23 namespace zypp {
24 namespace media {
25
26
27 class ProxyInfoSysconfig : public ProxyInfo::Impl
28 {
29 public:
30 ProxyInfoSysconfig(const Pathname & path);
32 bool enabled() const
33 { return _enabled; }
35 std::string proxy(const Url & url_r) const;
37 ProxyInfo::NoProxyList noProxy() const
38 { return _no_proxy; }
40 virtual ProxyInfo::NoProxyIterator noProxyBegin() const;
42 virtual ProxyInfo::NoProxyIterator noProxyEnd() const;
43 private:
44 DefaultIntegral<bool,false> _enabled;
45 ProxyInfo::NoProxyList _no_proxy;
46 std::map<std::string,std::string> _proxies;
47 };
48
50
51 } // namespace media
52 } // namespace zypp
53
54 #endif // ZYPP_MEDIA_PROXYINFO_PROXYINFOSYSCONFIG_H
DefaultIntegral.h
ProxyInfoImpl.h
ProxyInfo.h
Sysconfig.h
zypp::DefaultIntegral
Integral type with defined initial value when default constructed.
Definition: DefaultIntegral.h:42
zypp::Url
Url manipulation class.
Definition: Url.h:92
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:45
zypp::media::ProxyInfoSysconfig
Definition: ProxyInfoSysconfig.h:28
zypp::media::ProxyInfoSysconfig::enabled
bool enabled() const
Definition: ProxyInfoSysconfig.h:32
zypp::media::ProxyInfoSysconfig::proxy
std::string proxy(const Url &url_r) const
Definition: ProxyInfoSysconfig.cc:51
zypp::media::ProxyInfoSysconfig::_proxies
std::map< std::string, std::string > _proxies
Definition: ProxyInfoSysconfig.h:46
zypp::media::ProxyInfoSysconfig::noProxyBegin
virtual ProxyInfo::NoProxyIterator noProxyBegin() const
Definition: ProxyInfoSysconfig.cc:59
zypp::media::ProxyInfoSysconfig::noProxyEnd
virtual ProxyInfo::NoProxyIterator noProxyEnd() const
Definition: ProxyInfoSysconfig.cc:62
zypp::media::ProxyInfoSysconfig::ProxyInfoSysconfig
ProxyInfoSysconfig(const Pathname &path)
Definition: ProxyInfoSysconfig.cc:27
zypp::media::ProxyInfoSysconfig::noProxy
ProxyInfo::NoProxyList noProxy() const
Definition: ProxyInfoSysconfig.h:37
zypp::media::ProxyInfoSysconfig::_enabled
DefaultIntegral< bool, false > _enabled
Definition: ProxyInfoSysconfig.h:44
zypp::media::ProxyInfoSysconfig::_no_proxy
ProxyInfo::NoProxyList _no_proxy
Definition: ProxyInfoSysconfig.h:45
zypp::media::ProxyInfo::NoProxyList
std::list< std::string > NoProxyList
Definition: ProxyInfo.h:34
zypp::media::ProxyInfo::NoProxyIterator
std::list< std::string >::const_iterator NoProxyIterator
Definition: ProxyInfo.h:35
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::media::ProxyInfo::Impl
Definition: ProxyInfoImpl.h:26