|
libzypp
17.32.2
|

Public Types | |
| using | Request = DownloadPrivateBase::Request |
Public Types inherited from zyppng::MirrorHandlingStateBase | |
| enum | PrepareResult { Failed, Ok, Delayed } |
Public Member Functions | |
| BasicDownloaderStateBase (DownloadPrivate &parent) | |
| BasicDownloaderStateBase (std::shared_ptr< Request > &&req, DownloadPrivate &parent) | |
| void | enter () |
| void | exit () |
| virtual bool | initializeRequest (std::shared_ptr< Request > &r) |
| virtual void | gotFinished () |
| virtual void | failed (NetworkRequestError &&err) |
| void | failed (std::string &&str) |
| void | onRequestStarted (NetworkRequest &) |
| void | onRequestProgress (NetworkRequest &, off_t dltotal, off_t dlnow, off_t, off_t) |
| void | onRequestFinished (NetworkRequest &req, const NetworkRequestError &err) |
| const NetworkRequestError & | error () const |
| void | mirrorReceived (MirrorControl::MirrorPick mirror) override |
| void | failedToPrepare () override |
Public Member Functions inherited from zyppng::MirrorHandlingStateBase | |
| MirrorHandlingStateBase (DownloadPrivate &parent) | |
| ~MirrorHandlingStateBase () override | |
| PrepareResult | prepareNextMirror () |
| NetworkRequestError | setupMirror (const MirrorControl::MirrorPick &pick, Url &url, TransferSettings &set) |
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 22 of file basicdownloader_p.cc.
| void zyppng::BasicDownloaderStateBase::enter | ( | ) |
Definition at line 27 of file basicdownloader_p.cc.
| void zyppng::BasicDownloaderStateBase::exit | ( | ) |
Definition at line 51 of file basicdownloader_p.cc.
Reimplemented in zyppng::DlMetaLinkInfoState.
Definition at line 134 of file basicdownloader_p.cc.
|
virtual |
Reimplemented in zyppng::DlMetaLinkInfoState.
Definition at line 139 of file basicdownloader_p.cc.
|
virtual |
Definition at line 149 of file basicdownloader_p.cc.
| void zyppng::BasicDownloaderStateBase::failed | ( | std::string && | str | ) |
Definition at line 144 of file basicdownloader_p.cc.
| void zyppng::BasicDownloaderStateBase::onRequestStarted | ( | NetworkRequest & | ) |
Definition at line 157 of file basicdownloader_p.cc.
| void zyppng::BasicDownloaderStateBase::onRequestProgress | ( | NetworkRequest & | req, |
| off_t | dltotal, | ||
| off_t | dlnow, | ||
| off_t | , | ||
| off_t | |||
| ) |
Definition at line 179 of file basicdownloader_p.cc.
| void zyppng::BasicDownloaderStateBase::onRequestFinished | ( | NetworkRequest & | req, |
| const NetworkRequestError & | err | ||
| ) |
Definition at line 184 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 59 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 73 of file basicdownloader_p.cc.
|
protected |
Definition at line 78 of file basicdownloader_p.cc.
|
protected |
Definition at line 91 of file basicdownloader_p.cc.
|
protected |
Definition at line 104 of file basicdownloader_p.cc.
|
protectedvirtual |
Reimplemented in zyppng::DlMetaLinkInfoState.
Definition at line 168 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.