libzypp  15.28.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
virtual ProxyInfo::NoProxyIterator noProxyEnd() const
ProxyInfo::NoProxyList _no_proxy
ProxyInfo::NoProxyList noProxy() const
std::list< std::string > NoProxyList
Definition: ProxyInfo.h:34
ProxyInfoSysconfig(const Pathname &path)
std::string proxy(const Url &url_r) const
std::list< std::string >::const_iterator NoProxyIterator
Definition: ProxyInfo.h:35
virtual ProxyInfo::NoProxyIterator noProxyBegin() const
DefaultIntegral< bool, false > _enabled
std::map< std::string, std::string > _proxies
Url manipulation class.
Definition: Url.h:87