libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/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 () | |
bool | handleRequestAuthError (std::shared_ptr< Request > req, const zyppng::NetworkRequestError &err) |
NetworkRequestError | safeFillSettingsFromURL (const Url &url, TransferSettings &set) |
Public Attributes | |
bool | _emittedSigStart = false |
std::shared_ptr< NetworkRequestDispatcher > | _requestDispatcher |
std::shared_ptr< MirrorControl > | _mirrorControl |
zypp::media::CredentialManager::CredentialSet | _credCache |
DownloadSpec | _spec |
zypp::TriBool | _specHasZckInfo = zypp::indeterminate |
Downloader * | _parent = nullptr |
time_t | _lastTriedAuthTime = 0 |
bool | _stopOnMetalink = false |
bool | _stoppedOnMetalink = false |
NetworkRequest::Priority | _defaultSubRequestPriority = NetworkRequest::High |
Signal< void(Download &req)> | _sigStarted |
Signal< void(Download &req, Download::State state)> | _sigStateChanged |
Signal< void(Download &req, off_t dlnow)> | _sigAlive |
Signal< void(Download &req, off_t dltotal, off_t dlnow)> | _sigProgress |
Signal< void(Download &req)> | _sigFinished |
Signal< void(zyppng::Download &req, zyppng::NetworkAuthData &auth, const std::string &availAuth)> | _sigAuthRequired |
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 20 of file downloader.cc.
zyppng::DownloadPrivateBase::~DownloadPrivateBase | ( | ) |
Definition at line 28 of file downloader.cc.
bool zyppng::DownloadPrivateBase::handleRequestAuthError | ( | std::shared_ptr< Request > | req, |
const zyppng::NetworkRequestError & | err | ||
) |
Definition at line 31 of file downloader.cc.
NetworkRequestError zyppng::DownloadPrivateBase::safeFillSettingsFromURL | ( | const Url & | url, |
TransferSettings & | set | ||
) |
Definition at line 153 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 )> zyppng::DownloadPrivateBase::_sigStarted |
Signal< void ( Download &req, Download::State state )> zyppng::DownloadPrivateBase::_sigStateChanged |
Signal< void ( Download &req, off_t dlnow )> zyppng::DownloadPrivateBase::_sigAlive |
Signal< void ( Download &req, off_t dltotal, off_t dlnow )> zyppng::DownloadPrivateBase::_sigProgress |
Signal< void ( Download &req )> zyppng::DownloadPrivateBase::_sigFinished |
Signal< void ( zyppng::Download &req, zyppng::NetworkAuthData &auth, const std::string &availAuth )> zyppng::DownloadPrivateBase::_sigAuthRequired |