libzypp  17.35.14
zyppng::DownloadPrivate Class Reference

#include <zypp-curl/ng/network/private/downloader_p.h>

Inheritance diagram for zyppng::DownloadPrivate:

Public Member Functions

 DownloadPrivate (Downloader &parent, std::shared_ptr< NetworkRequestDispatcher > requestDispatcher, std::shared_ptr< MirrorControl > mirrors, DownloadSpec &&spec, Download &p)
 
void start ()
 
void init () override
 
- Public Member Functions inherited from zyppng::DownloadPrivateBase
 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)
 
- Public Member Functions inherited from zyppng::BasePrivate
 BasePrivate (Base &b)
 
virtual ~BasePrivate ()
 
- Public Member Functions inherited from zyppng::Statemachine< Derived, StateId, Transitions >
 Statemachine ()
 
virtual ~Statemachine ()
 
void start ()
 
template<typename Func >
auto visitState (Func &&f)
 
std::optional< StateId > currentState () const
 
std::optional< StateId > previousState () const
 
template<typename T >
std::shared_ptr< T > state ()
 
template<typename T >
const std::shared_ptr< T > state () const
 
template<typename NewState >
void forceState (std::unique_ptr< NewState > &&nS)
 
SignalProxy< void()> sigFinished ()
 
SignalProxy< void(StateId)> sigStateChanged ()
 

Additional Inherited Members

- Public Types inherited from zyppng::Statemachine< Derived, StateId, Transitions >
using AllStates = typename detail::make_state_set< Transitions... >::Type
 
using StateSetHelper = typename detail::make_statewithtransition_set< _InitialState, AllStates, Transitions... >
 
using FState = typename StateSetHelper::FirstState
 
using StateSet = typename StateSetHelper::Type
 
using StatemachineType = Statemachine< Derived, StateId, Transitions... >
 
- Public Attributes inherited from zyppng::DownloadPrivateBase
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
 
- Public Attributes inherited from zyppng::BasePrivate
Base::WeakPtr parent
 
std::unordered_set< Base::Ptrchildren
 
Basez_ptr = nullptr
 
std::thread::id threadId = std::this_thread::get_id()
 
- Protected Member Functions inherited from zyppng::Statemachine< Derived, StateId, Transitions >
template<typename OldState , typename NewState >
void enterState (OldState &os, NewState &&nS)
 
template<typename NewState >
void enterState (NewState &&nS)
 
template<typename State , typename Transition >
auto makeEventCallback (Transition &transition)
 
template<std::size_t I = 0, typename State , typename ... StateTrans>
void connectAllTransitions (State &&nS, std::tuple< StateTrans... > &transitions)
 
void clearConnections ()
 

Detailed Description

Definition at line 89 of file downloader_p.h.

Constructor & Destructor Documentation

◆ DownloadPrivate()

zyppng::DownloadPrivate::DownloadPrivate ( Downloader parent,
std::shared_ptr< NetworkRequestDispatcher >  requestDispatcher,
std::shared_ptr< MirrorControl mirrors,
DownloadSpec &&  spec,
Download p 
)

Definition at line 112 of file downloader.cc.

Member Function Documentation

◆ start()

void zyppng::DownloadPrivate::start ( )

Definition at line 127 of file downloader.cc.

◆ init()

void zyppng::DownloadPrivate::init ( )
overridevirtual

Reimplemented from zyppng::BasePrivate.

Definition at line 116 of file downloader.cc.


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