libzypp
17.35.19
|
#include <zypp-curl/ng/network/private/downloaderstates/base_p.h>
Classes | |
struct | Block |
struct | Request |
Public Member Functions | |
DownloadPrivateBase (Downloader &parent, std::shared_ptr< NetworkRequestDispatcher > requestDispatcher, std::shared_ptr< MirrorControl > mirrors, DownloadSpec &&spec, Download &p) | |
~DownloadPrivateBase () override | |
bool | handleRequestAuthError (const std::shared_ptr< Request > &req, const zyppng::NetworkRequestError &err) |
NetworkRequestError | safeFillSettingsFromURL (const Url &url, TransferSettings &set) |
![]() | |
BasePrivate (Base &b) | |
virtual | ~BasePrivate () |
virtual void | init () |
The pimpl for Downloader, the reason this is split up in DownloadPrivateBase and DownloadBase is that for defining the States in the Statemachine while making DownloadPrivate the statemachine itself we need this separation. This trick allowes the states to "know" the statemachine type and access some of its features.
zyppng::DownloadPrivateBase::DownloadPrivateBase | ( | Downloader & | parent, |
std::shared_ptr< NetworkRequestDispatcher > | requestDispatcher, | ||
std::shared_ptr< MirrorControl > | mirrors, | ||
DownloadSpec && | spec, | ||
Download & | p | ||
) |
Definition at line 21 of file downloader.cc.
|
override |
Definition at line 29 of file downloader.cc.
bool zyppng::DownloadPrivateBase::handleRequestAuthError | ( | const std::shared_ptr< Request > & | req, |
const zyppng::NetworkRequestError & | err | ||
) |
Definition at line 32 of file downloader.cc.
NetworkRequestError zyppng::DownloadPrivateBase::safeFillSettingsFromURL | ( | const Url & | url, |
TransferSettings & | set | ||
) |
Definition at line 154 of file downloader.cc.
std::shared_ptr<NetworkRequestDispatcher> zyppng::DownloadPrivateBase::_requestDispatcher |
std::shared_ptr<MirrorControl> zyppng::DownloadPrivateBase::_mirrorControl |
zypp::media::CredentialManager::CredentialSet zyppng::DownloadPrivateBase::_credCache |
DownloadSpec zyppng::DownloadPrivateBase::_spec |
|
mutable |
Downloader* zyppng::DownloadPrivateBase::_parent = nullptr |
bool zyppng::DownloadPrivateBase::_stoppedOnMetalink = false |
NetworkRequest::Priority zyppng::DownloadPrivateBase::_defaultSubRequestPriority = NetworkRequest::High |
Signal< void ( Download &req, Download::State state )> zyppng::DownloadPrivateBase::_sigStateChanged |
Signal< void ( zyppng::Download &req, zyppng::NetworkAuthData &auth, const std::string &availAuth )> zyppng::DownloadPrivateBase::_sigAuthRequired |