libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ProxyInfo.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
13
#include <iostream>
14
15
#include "
zypp/base/Logger.h
"
16
17
#include "
zypp/media/ProxyInfo.h
"
18
#include "
zypp/media/proxyinfo/ProxyInfoImpl.h
"
19
#include "
zypp/media/proxyinfo/ProxyInfos.h
"
20
21
using namespace
std;
22
using namespace
zypp::base;
23
24
namespace
zypp {
25
namespace
media {
26
27
shared_ptr<ProxyInfo::Impl> ProxyInfo::Impl::_nullimpl;
28
29
ProxyInfo::ProxyInfo()
30
#ifdef _WITH_LIBPROXY_SUPPORT_
31
: _pimpl(
new
ProxyInfoLibproxy
() )
32
#else
33
: _pimpl(
new
ProxyInfoSysconfig
(
"proxy"
) )
34
#endif
35
{}
36
37
ProxyInfo::ProxyInfo(
ProxyInfo::ImplPtr
pimpl_r)
38
: _pimpl(pimpl_r)
39
{}
40
41
bool
ProxyInfo::enabled
()
const
42
{
return
_pimpl
->
enabled
(); }
43
44
std::string
ProxyInfo::proxy
(
const
Url
& url_r)
const
45
{
return
_pimpl
->
proxy
(url_r); }
46
47
ProxyInfo::NoProxyList
ProxyInfo::noProxy
()
const
48
{
return
_pimpl
->
noProxy
(); }
49
50
ProxyInfo::NoProxyIterator
ProxyInfo::noProxyBegin
()
const
51
{
return
_pimpl
->
noProxyBegin
(); }
52
53
ProxyInfo::NoProxyIterator
ProxyInfo::noProxyEnd
()
const
54
{
return
_pimpl
->
noProxyEnd
(); }
55
56
bool
ProxyInfo::useProxyFor
(
const
Url
& url_r )
const
57
{
return
_pimpl
->
useProxyFor
( url_r ); }
58
59
}
// namespace media
60
}
// namespace zypp
zypp
media
ProxyInfo.cc
Generated by
1.8.1