1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/media/ProxyInfo.cc
15 #include "zypp/base/Logger.h"
17 #include "zypp/media/ProxyInfo.h"
18 #include "zypp/media/proxyinfo/ProxyInfoImpl.h"
19 #include "zypp/media/proxyinfo/ProxyInfos.h"
22 using namespace zypp::base;
27 shared_ptr<ProxyInfo::Impl> ProxyInfo::Impl::_nullimpl;
29 ProxyInfo::ProxyInfo()
30 #ifdef WITH_LIBPROXY_SUPPORT
31 : _pimpl( new ProxyInfoLibproxy() )
33 : _pimpl( new ProxyInfoSysconfig("proxy") )
37 ProxyInfo::ProxyInfo(ProxyInfo::ImplPtr pimpl_r)
41 bool ProxyInfo::enabled() const
42 { return _pimpl->enabled(); }
44 std::string ProxyInfo::proxy(const Url & url_r) const
45 { return _pimpl->proxy(url_r); }
47 ProxyInfo::NoProxyList ProxyInfo::noProxy() const
48 { return _pimpl->noProxy(); }
50 ProxyInfo::NoProxyIterator ProxyInfo::noProxyBegin() const
51 { return _pimpl->noProxyBegin(); }
53 ProxyInfo::NoProxyIterator ProxyInfo::noProxyEnd() const
54 { return _pimpl->noProxyEnd(); }
56 bool ProxyInfo::useProxyFor( const Url & url_r ) const
57 { return _pimpl->useProxyFor( url_r ); }