libzypp
13.10.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ProxyInfo.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_MEDIA_PROXYINFO_H
13
#define ZYPP_MEDIA_PROXYINFO_H
14
15
#include <string>
16
#include <list>
17
18
#include "
zypp/base/PtrTypes.h
"
19
20
namespace
zypp {
21
22
class
Url;
23
24
namespace
media {
25
27
//
28
// CLASS NAME : ProxyInfo
29
class
ProxyInfo
30
{
31
public
:
32
typedef
intrusive_ptr<ProxyInfo>
Ptr
;
33
typedef
intrusive_ptr<ProxyInfo>
constPtr
;
34
typedef
std::list<std::string>
NoProxyList
;
35
typedef
std::list<std::string>::const_iterator
NoProxyIterator
;
36
38
struct
Impl
;
39
typedef
shared_ptr<Impl>
ImplPtr
;
40
42
ProxyInfo
();
44
ProxyInfo
(
ProxyInfo::ImplPtr
pimpl_r );
45
46
bool
enabled
()
const
;
47
std::string
proxy
(
const
Url
&
url
)
const
;
48
NoProxyList
noProxy
()
const
;
49
NoProxyIterator
noProxyBegin
()
const
;
50
NoProxyIterator
noProxyEnd
()
const
;
51
53
bool
useProxyFor
(
const
Url
& url_r )
const
;
54
55
private
:
57
RW_pointer<Impl>
_pimpl
;
58
};
59
60
62
63
}
// namespace media
64
}
// namespace zypp
65
66
#endif // ZYPP_MEDIA_PROXYINFO_H
zypp::media::ProxyInfo::ProxyInfo
ProxyInfo()
Default Ctor: guess the best available implementation.
Definition:
ProxyInfo.cc:29
zypp::media::ProxyInfo
Definition:
ProxyInfo.h:29
zypp::media::ProxyInfo::Ptr
intrusive_ptr< ProxyInfo > Ptr
Definition:
ProxyInfo.h:32
zypp::media::ProxyInfo::ImplPtr
shared_ptr< Impl > ImplPtr
Definition:
ProxyInfo.h:38
zypp::media::ProxyInfo::proxy
std::string proxy(const Url &url) const
Definition:
ProxyInfo.cc:44
zypp::media::ProxyInfo::Impl
Definition:
ProxyInfoImpl.h:25
zypp::media::ProxyInfo::NoProxyList
std::list< std::string > NoProxyList
Definition:
ProxyInfo.h:34
PtrTypes.h
zypp::media::ProxyInfo::noProxyEnd
NoProxyIterator noProxyEnd() const
Definition:
ProxyInfo.cc:53
zypp::media::ProxyInfo::noProxy
NoProxyList noProxy() const
Definition:
ProxyInfo.cc:47
zypp::media::ProxyInfo::_pimpl
RW_pointer< Impl > _pimpl
Pointer to implementation.
Definition:
ProxyInfo.h:57
url
zypp::Url url
Definition:
MediaCurl.cc:193
zypp::media::ProxyInfo::useProxyFor
bool useProxyFor(const Url &url_r) const
Return true if enabled and url_r does not match noProxy.
Definition:
ProxyInfo.cc:56
zypp::media::ProxyInfo::noProxyBegin
NoProxyIterator noProxyBegin() const
Definition:
ProxyInfo.cc:50
zypp::media::ProxyInfo::constPtr
intrusive_ptr< ProxyInfo > constPtr
Definition:
ProxyInfo.h:33
zypp::media::ProxyInfo::NoProxyIterator
std::list< std::string >::const_iterator NoProxyIterator
Definition:
ProxyInfo.h:35
zypp::RW_pointer
Wrapper for const correct access via Smart pointer types.
Definition:
PtrTypes.h:265
zypp::media::ProxyInfo::enabled
bool enabled() const
Definition:
ProxyInfo.cc:41
zypp::Url
Url manipulation class.
Definition:
Url.h:87
zypp
media
ProxyInfo.h
Generated by
1.8.5