libzypp  17.23.6
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>
20 #include <zypp/media/ProxyInfo.h>
22 
23 namespace zypp {
24  namespace media {
25 
26 
28  {
29  public:
30  ProxyInfoSysconfig(const Pathname & path);
32  bool enabled() const
33  { return _enabled; }
35  std::string proxy(const Url & url_r) const;
38  { return _no_proxy; }
42  virtual ProxyInfo::NoProxyIterator noProxyEnd() const;
43  private:
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
zypp::media::ProxyInfo::NoProxyList
std::list< std::string > NoProxyList
Definition: ProxyInfo.h:34
zypp::media::ProxyInfoSysconfig::noProxyBegin
virtual ProxyInfo::NoProxyIterator noProxyBegin() const
Definition: ProxyInfoSysconfig.cc:59
zypp::media::ProxyInfoSysconfig::noProxy
ProxyInfo::NoProxyList noProxy() const
Definition: ProxyInfoSysconfig.h:37
zypp::media::ProxyInfo::NoProxyIterator
std::list< std::string >::const_iterator NoProxyIterator
Definition: ProxyInfo.h:35
zypp::media::ProxyInfoSysconfig::_no_proxy
ProxyInfo::NoProxyList _no_proxy
Definition: ProxyInfoSysconfig.h:45
zypp::media::ProxyInfo::Impl
Definition: ProxyInfoImpl.h:25
ProxyInfo.h
zypp::media::ProxyInfoSysconfig::ProxyInfoSysconfig
ProxyInfoSysconfig(const Pathname &path)
Definition: ProxyInfoSysconfig.cc:27
Sysconfig.h
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::DefaultIntegral< bool, false >
zypp::media::ProxyInfoSysconfig
Definition: ProxyInfoSysconfig.h:27
zypp::media::ProxyInfoSysconfig::_proxies
std::map< std::string, std::string > _proxies
Definition: ProxyInfoSysconfig.h:46
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:44
ProxyInfoImpl.h
zypp::media::ProxyInfoSysconfig::noProxyEnd
virtual ProxyInfo::NoProxyIterator noProxyEnd() const
Definition: ProxyInfoSysconfig.cc:62
zypp::media::ProxyInfoSysconfig::proxy
std::string proxy(const Url &url_r) const
Definition: ProxyInfoSysconfig.cc:51
zypp::media::ProxyInfoSysconfig::_enabled
DefaultIntegral< bool, false > _enabled
Definition: ProxyInfoSysconfig.h:44
zypp::Url
Url manipulation class.
Definition: Url.h:87
zypp::media::ProxyInfoSysconfig::enabled
bool enabled() const
Definition: ProxyInfoSysconfig.h:32
DefaultIntegral.h