libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
TransferSettings.h
Go to the documentation of this file.
1
2
#ifndef TRANSFER_SETTINGS_H_
3
#define TRANSFER_SETTINGS_H_
4
5
#include <string>
6
#include <vector>
7
#include "
zypp/base/Flags.h
"
8
#include "
zypp/base/PtrTypes.h
"
9
#include "
zypp/Pathname.h
"
10
#include "
zypp/Url.h
"
11
12
namespace
zypp
13
{
14
namespace
media
15
{
16
20
class
TransferSettings
21
{
22
public
:
26
TransferSettings
();
27
33
TransferSettings
(
const
zypp::Url
&
url
);
34
35
typedef
std::vector<std::string>
Headers
;
36
40
void
reset
();
41
45
void
addHeader
(
const
std::string &header );
46
50
Headers::const_iterator
headersBegin
()
const
;
51
55
Headers::const_iterator
headersEnd
()
const
;
56
60
void
setUserAgentString
(
const
std::string &agent );
61
65
std::string
userAgentString
()
const
;
66
70
void
setUsername
(
const
std::string &
username
);
71
75
std::string
username
()
const
;
76
80
void
setPassword
(
const
std::string &
password
);
81
85
std::string
password
()
const
;
86
91
std::string
userPassword
()
const
;
92
96
void
setAnonymousAuth
();
97
101
void
setProxyEnabled
(
bool
enabled );
102
106
bool
proxyEnabled
()
const
;
107
111
void
setProxy
(
const
std::string &proxyhost );
112
116
std::string
proxy
()
const
;
117
121
void
setProxyUsername
(
const
std::string &proxyuser );
122
126
std::string
proxyUsername
()
const
;
127
131
void
setProxyPassword
(
const
std::string &proxypass );
132
136
std::string
proxyPassword
()
const
;
137
142
std::string
proxyUserPassword
()
const
;
143
147
void
setConnectTimeout
(
long
t );
148
152
long
connectTimeout
()
const
;
153
157
void
setTimeout
(
long
t );
158
162
long
timeout
()
const
;
163
167
long
maxConcurrentConnections
()
const
;
168
172
void
setMaxConcurrentConnections
(
long
v);
173
178
long
minDownloadSpeed
()
const
;
179
184
void
setMinDownloadSpeed
(
long
v);
185
189
long
maxDownloadSpeed
()
const
;
190
194
void
setMaxDownloadSpeed
(
long
v);
195
199
long
maxSilentTries
()
const
;
200
204
void
setMaxSilentTries
(
long
v);
205
209
bool
verifyHostEnabled
()
const
;
210
214
void
setVerifyHostEnabled
(
bool
enabled );
215
219
bool
verifyPeerEnabled
()
const
;
220
224
void
setVerifyPeerEnabled
(
bool
enabled );
225
230
Pathname
certificateAuthoritiesPath
()
const
;
231
235
void
setCertificateAuthoritiesPath
(
const
zypp::Pathname &path );
236
240
void
setAuthType
(
const
std::string &authtype );
241
245
std::string
authType
()
const
;
246
250
void
setHeadRequestsAllowed
(
bool
allowed);
251
255
bool
headRequestsAllowed
()
const
;
256
257
protected
:
258
class
Impl
;
259
RWCOW_pointer<Impl>
_impl
;
260
};
261
262
}
// ns media
263
}
// ns zypp
264
265
#endif
zypp
media
TransferSettings.h
Generated by
1.8.1