libzypp 17.37.17
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>
22
23namespace zypp {
24 namespace media {
25
26
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;
38 { return _no_proxy; }
39
43 private:
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
Integral type with defined initial value when default constructed.
Url manipulation class.
Definition Url.h:93
ProxyInfo::NoProxyList noProxy() const override
std::map< std::string, std::string > _proxies
ProxyInfo::NoProxyIterator noProxyEnd() const override
ProxyInfo::NoProxyIterator noProxyBegin() const override
ProxyInfoSysconfig(const Pathname &path)
DefaultIntegral< bool, false > _enabled
std::string proxy(const Url &url_r) const override
std::list< std::string > NoProxyList
Definition proxyinfo.h:34
std::list< std::string >::const_iterator NoProxyIterator
Definition proxyinfo.h:35
Easy-to use interface to the ZYPP dependency resolver.