libzypp 17.31.23
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
33 { return _enabled; }
35 std::string proxy(const Url & url_r) const;
38 { return _no_proxy; }
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:92
std::map< std::string, std::string > _proxies
virtual ProxyInfo::NoProxyIterator noProxyBegin() const
virtual ProxyInfo::NoProxyIterator noProxyEnd() const
ProxyInfo::NoProxyList noProxy() const
DefaultIntegral< bool, false > _enabled
ProxyInfo::NoProxyList _no_proxy
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.
Definition: CodePitfalls.doc:2