libzypp 17.31.23
|
Public Types | |
using | Request = DownloadPrivateBase::Request |
Public Types inherited from zyppng::MirrorHandlingStateBase | |
enum | PrepareResult { Failed , Ok , Delayed } |
Public Attributes | |
std::shared_ptr< Request > | _request |
std::optional< std::string > | _chksumtype |
std::optional< UByteArray > | _chksumVec |
Public Attributes inherited from zyppng::MirrorHandlingStateBase | |
std::vector< Url > | _fileMirrors |
Protected Member Functions | |
void | startWithMirror (MirrorControl::MirrorHandle mirror, const zypp::Url &url, const TransferSettings &set) |
void | startWithoutMirror () |
void | startRequest () |
virtual void | handleRequestProgress (NetworkRequest &req, off_t dltotal, off_t dlnow) |
Protected Attributes | |
NetworkRequestError | _error |
Signal< void() > | _sigFinished |
Signal< void() > | _sigFailed |
State implementation for the generic part of a simple file downloader, that knows how to use the mirrors if available.
Definition at line 27 of file basicdownloader_p.h.
Definition at line 29 of file basicdownloader_p.h.
|
inline |
Definition at line 31 of file basicdownloader_p.h.
zyppng::BasicDownloaderStateBase::BasicDownloaderStateBase | ( | std::shared_ptr< Request > && | req, |
DownloadPrivate & | parent | ||
) |
Definition at line 20 of file basicdownloader_p.cc.
void zyppng::BasicDownloaderStateBase::enter | ( | ) |
Definition at line 25 of file basicdownloader_p.cc.
void zyppng::BasicDownloaderStateBase::exit | ( | ) |
Definition at line 49 of file basicdownloader_p.cc.
Reimplemented in zyppng::DlMetaLinkInfoState.
Definition at line 132 of file basicdownloader_p.cc.
|
virtual |
Reimplemented in zyppng::DlMetaLinkInfoState.
Definition at line 137 of file basicdownloader_p.cc.
|
virtual |
Definition at line 147 of file basicdownloader_p.cc.
void zyppng::BasicDownloaderStateBase::failed | ( | std::string && | str | ) |
Definition at line 142 of file basicdownloader_p.cc.
void zyppng::BasicDownloaderStateBase::onRequestStarted | ( | NetworkRequest & | ) |
Definition at line 155 of file basicdownloader_p.cc.
void zyppng::BasicDownloaderStateBase::onRequestProgress | ( | NetworkRequest & | req, |
off_t | dltotal, | ||
off_t | dlnow, | ||
off_t | , | ||
off_t | |||
) |
Definition at line 177 of file basicdownloader_p.cc.
void zyppng::BasicDownloaderStateBase::onRequestFinished | ( | NetworkRequest & | req, |
const NetworkRequestError & | err | ||
) |
Definition at line 182 of file basicdownloader_p.cc.
|
inline |
Definition at line 46 of file basicdownloader_p.h.
|
overridevirtual |
This is called once a mirror became ready, either directly if a mirror is ready or it was delayed and called asynchronously
Implements zyppng::MirrorHandlingStateBase.
Definition at line 57 of file basicdownloader_p.cc.
|
overridevirtual |
Gets called in case a mirror failed to prepare, probably because none of the mirrors in _fileMirrors is known by MirrorControl
Reimplemented from zyppng::MirrorHandlingStateBase.
Definition at line 71 of file basicdownloader_p.cc.
|
protected |
Definition at line 76 of file basicdownloader_p.cc.
|
protected |
Definition at line 89 of file basicdownloader_p.cc.
|
protected |
Definition at line 102 of file basicdownloader_p.cc.
|
protectedvirtual |
Reimplemented in zyppng::DlMetaLinkInfoState.
Definition at line 166 of file basicdownloader_p.cc.
std::shared_ptr<Request> zyppng::BasicDownloaderStateBase::_request |
Definition at line 50 of file basicdownloader_p.h.
std::optional<std::string> zyppng::BasicDownloaderStateBase::_chksumtype |
Definition at line 51 of file basicdownloader_p.h.
std::optional<UByteArray> zyppng::BasicDownloaderStateBase::_chksumVec |
Definition at line 52 of file basicdownloader_p.h.
|
protected |
Definition at line 63 of file basicdownloader_p.h.
|
protected |
Definition at line 64 of file basicdownloader_p.h.
|
protected |
Definition at line 65 of file basicdownloader_p.h.