libzypp 17.31.23
zyppng::DownloadPrivateBase Class Reference

#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-curl/ng/network/private/downloaderstates/base_p.h>

Inheritance diagram for zyppng::DownloadPrivateBase:

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
 

Detailed Description

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.

Definition at line 40 of file base_p.h.

Constructor & Destructor Documentation

◆ DownloadPrivateBase()

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.

◆ ~DownloadPrivateBase()

zyppng::DownloadPrivateBase::~DownloadPrivateBase ( )

Definition at line 28 of file downloader.cc.

Member Function Documentation

◆ handleRequestAuthError()

bool zyppng::DownloadPrivateBase::handleRequestAuthError ( std::shared_ptr< Request req,
const zyppng::NetworkRequestError err 
)

Definition at line 31 of file downloader.cc.

◆ safeFillSettingsFromURL()

NetworkRequestError zyppng::DownloadPrivateBase::safeFillSettingsFromURL ( const Url &  url,
TransferSettings set 
)

Definition at line 153 of file downloader.cc.

Member Data Documentation

◆ _emittedSigStart

bool zyppng::DownloadPrivateBase::_emittedSigStart = false

Definition at line 84 of file base_p.h.

◆ _requestDispatcher

std::shared_ptr<NetworkRequestDispatcher> zyppng::DownloadPrivateBase::_requestDispatcher

Definition at line 93 of file base_p.h.

◆ _mirrorControl

std::shared_ptr<MirrorControl> zyppng::DownloadPrivateBase::_mirrorControl

Definition at line 94 of file base_p.h.

◆ _credCache

zypp::media::CredentialManager::CredentialSet zyppng::DownloadPrivateBase::_credCache

Definition at line 96 of file base_p.h.

◆ _spec

DownloadSpec zyppng::DownloadPrivateBase::_spec

Definition at line 98 of file base_p.h.

◆ _specHasZckInfo

zypp::TriBool zyppng::DownloadPrivateBase::_specHasZckInfo = zypp::indeterminate
mutable

Definition at line 99 of file base_p.h.

◆ _parent

Downloader* zyppng::DownloadPrivateBase::_parent = nullptr

Definition at line 101 of file base_p.h.

◆ _lastTriedAuthTime

time_t zyppng::DownloadPrivateBase::_lastTriedAuthTime = 0

Definition at line 103 of file base_p.h.

◆ _stopOnMetalink

bool zyppng::DownloadPrivateBase::_stopOnMetalink = false

Definition at line 104 of file base_p.h.

◆ _stoppedOnMetalink

bool zyppng::DownloadPrivateBase::_stoppedOnMetalink = false

Definition at line 105 of file base_p.h.

◆ _defaultSubRequestPriority

NetworkRequest::Priority zyppng::DownloadPrivateBase::_defaultSubRequestPriority = NetworkRequest::High

Definition at line 106 of file base_p.h.

◆ _sigStarted

Signal< void ( Download &req )> zyppng::DownloadPrivateBase::_sigStarted

Definition at line 108 of file base_p.h.

◆ _sigStateChanged

Signal< void ( Download &req, Download::State state )> zyppng::DownloadPrivateBase::_sigStateChanged

Definition at line 109 of file base_p.h.

◆ _sigAlive

Signal< void ( Download &req, off_t dlnow )> zyppng::DownloadPrivateBase::_sigAlive

Definition at line 110 of file base_p.h.

◆ _sigProgress

Signal< void ( Download &req, off_t dltotal, off_t dlnow )> zyppng::DownloadPrivateBase::_sigProgress

Definition at line 111 of file base_p.h.

◆ _sigFinished

Signal< void ( Download &req )> zyppng::DownloadPrivateBase::_sigFinished

Definition at line 112 of file base_p.h.

◆ _sigAuthRequired

Signal< void ( zyppng::Download &req, zyppng::NetworkAuthData &auth, const std::string &availAuth )> zyppng::DownloadPrivateBase::_sigAuthRequired

Definition at line 113 of file base_p.h.


The documentation for this class was generated from the following files: