libzypp 17.37.10

proxyinfosysconfig.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_CURL_PROXYINFO_PROXYINFOSYSCONFIG_H_INCLUDED
13#define ZYPP_CURL_PROXYINFO_PROXYINFOSYSCONFIG_H_INCLUDED
14
15#include <string>
16#include <map>
17
18#include <zypp-core/parser/Sysconfig>
19#include <zypp-core/base/DefaultIntegral>
20#include <zypp-curl/ProxyInfo>
21#include <zypp-curl/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 override
33 { return _enabled; }
34
35 std::string proxy(const Url & url_r) const override;
37 ProxyInfo::NoProxyList noProxy() const override
38 { return _no_proxy; }
39
40 ProxyInfo::NoProxyIterator noProxyBegin() const override;
42 ProxyInfo::NoProxyIterator noProxyEnd() const override;
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_CURL_PROXYINFO_PROXYINFOSYSCONFIG_H_INCLUDED
zypp::DefaultIntegral
Integral type with defined initial value when default constructed.
Definition defaultintegral.h:42
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::media::ProxyInfoSysconfig::noProxy
ProxyInfo::NoProxyList noProxy() const override
Definition proxyinfosysconfig.h:37
zypp::media::ProxyInfoSysconfig::_proxies
std::map< std::string, std::string > _proxies
Definition proxyinfosysconfig.h:46
zypp::media::ProxyInfoSysconfig::noProxyEnd
ProxyInfo::NoProxyIterator noProxyEnd() const override
Definition proxyinfosysconfig.cc:63
zypp::media::ProxyInfoSysconfig::noProxyBegin
ProxyInfo::NoProxyIterator noProxyBegin() const override
Definition proxyinfosysconfig.cc:60
zypp::media::ProxyInfoSysconfig::ProxyInfoSysconfig
ProxyInfoSysconfig(const Pathname &path)
Definition proxyinfosysconfig.cc:28
zypp::media::ProxyInfoSysconfig::_enabled
DefaultIntegral< bool, false > _enabled
Definition proxyinfosysconfig.h:44
zypp::media::ProxyInfoSysconfig::proxy
std::string proxy(const Url &url_r) const override
Definition proxyinfosysconfig.cc:52
zypp::media::ProxyInfoSysconfig::_no_proxy
ProxyInfo::NoProxyList _no_proxy
Definition proxyinfosysconfig.h:45
zypp::media::ProxyInfoSysconfig::enabled
bool enabled() const override
Definition proxyinfosysconfig.h:32
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::media
Definition MediaNetworkRequestExecutor.h:22
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
proxyinfoimpl.h
zypp::media::ProxyInfo::Impl
Definition proxyinfoimpl.h:26