libzypp 17.31.23
|
Public Types | |
using | Request = DownloadPrivateBase::Request |
Public Member Functions | |
DetectMetalinkState (DownloadPrivate &parent) | |
void | enter () |
void | exit () |
void | onRequestStarted (NetworkRequest &) |
void | onRequestProgress (NetworkRequest &, off_t, off_t dlnow, off_t, off_t) |
void | onRequestFinished (NetworkRequest &req, const NetworkRequestError &err) |
const NetworkRequestError & | error () const |
SignalProxy< void() > | sigFinished () |
bool | toMetalinkGuard () const |
std::shared_ptr< DlMetaLinkInfoState > | toDlMetaLinkInfoState () |
bool | toSimpleDownloadGuard () const |
Public Attributes | |
std::shared_ptr< Request > | _request |
Private Attributes | |
NetworkRequestError | _error |
bool | _gotMetalink = false |
Signal< void() > | _sigFinished |
State implementation for the metalink detection phase, this state issues a HEAD request while setting the magic "Accept: *\/\*, application/metalink+xml, application/metalink4+xml" header in the request to figure out if a metalink file is available or not.
In order to use metalink support the server needs to correctly return the metalink file content type, otherwise we proceed to not downloading a metalink file
Definition at line 37 of file detectmeta_p.h.
Definition at line 39 of file detectmeta_p.h.
zyppng::DetectMetalinkState::DetectMetalinkState | ( | DownloadPrivate & | parent | ) |
Definition at line 19 of file detectmeta_p.cc.
void zyppng::DetectMetalinkState::enter | ( | ) |
Definition at line 23 of file detectmeta_p.cc.
void zyppng::DetectMetalinkState::exit | ( | ) |
Definition at line 44 of file detectmeta_p.cc.
void zyppng::DetectMetalinkState::onRequestStarted | ( | NetworkRequest & | ) |
Definition at line 52 of file detectmeta_p.cc.
void zyppng::DetectMetalinkState::onRequestProgress | ( | NetworkRequest & | , |
off_t | , | ||
off_t | dlnow, | ||
off_t | , | ||
off_t | |||
) |
Definition at line 57 of file detectmeta_p.cc.
void zyppng::DetectMetalinkState::onRequestFinished | ( | NetworkRequest & | req, |
const NetworkRequestError & | err | ||
) |
Definition at line 62 of file detectmeta_p.cc.
|
inline |
Definition at line 51 of file detectmeta_p.h.
|
inline |
Definition at line 55 of file detectmeta_p.h.
|
inline |
Definition at line 59 of file detectmeta_p.h.
std::shared_ptr< DlMetaLinkInfoState > zyppng::DetectMetalinkState::toDlMetaLinkInfoState | ( | ) |
Definition at line 81 of file detectmeta_p.cc.
bool zyppng::DetectMetalinkState::toSimpleDownloadGuard | ( | ) | const |
Definition at line 89 of file detectmeta_p.cc.
std::shared_ptr<Request> zyppng::DetectMetalinkState::_request |
Definition at line 71 of file detectmeta_p.h.
|
private |
Definition at line 74 of file detectmeta_p.h.
|
private |
Definition at line 75 of file detectmeta_p.h.
|
private |
Definition at line 76 of file detectmeta_p.h.