1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp-curl/ProxyInfo.cc
13 #include "proxyinfo.h"
16 #include <zypp/base/Logger.h>
18 #include "proxyinfo/proxyinfoimpl.h"
19 #include "proxyinfo/proxyinfos.h"
21 using namespace zypp::base;
26 shared_ptr<ProxyInfo::Impl> ProxyInfo::Impl::_nullimpl;
28 ProxyInfo::ProxyInfo()
29 #ifdef WITH_LIBPROXY_SUPPORT
30 : _pimpl( new ProxyInfoLibproxy() )
32 : _pimpl( new ProxyInfoSysconfig("proxy") )
36 ProxyInfo::ProxyInfo(ProxyInfo::ImplPtr pimpl_r)
40 bool ProxyInfo::enabled() const
41 { return _pimpl->enabled(); }
43 std::string ProxyInfo::proxy(const Url & url_r) const
44 { return _pimpl->proxy(url_r); }
46 ProxyInfo::NoProxyList ProxyInfo::noProxy() const
47 { return _pimpl->noProxy(); }
49 ProxyInfo::NoProxyIterator ProxyInfo::noProxyBegin() const
50 { return _pimpl->noProxyBegin(); }
52 ProxyInfo::NoProxyIterator ProxyInfo::noProxyEnd() const
53 { return _pimpl->noProxyEnd(); }
55 bool ProxyInfo::useProxyFor( const Url & url_r ) const
56 { return _pimpl->useProxyFor( url_r ); }