|
libzypp
17.35.16
|
#include <zypp-curl/ng/network/private/downloaderstates/preparemulti_p.h>

Public Types | |
| enum | Mode { Zsync, Metalink } |
| using | Request = DownloadPrivateBase::Request |
Public Types inherited from zyppng::Base | |
| using | Ptr = std::shared_ptr< Base > |
| using | WeakPtr = std::weak_ptr< Base > |
Public Member Functions | |
| PrepareMultiState (std::shared_ptr< Request > oldReq, Mode m, DownloadPrivate &parent) | |
| void | enter () |
| void | exit () |
| const NetworkRequestError & | error () const |
| SignalProxy< void() > | sigFinished () |
| SignalProxy< void() > | sigFailed () |
| SignalProxy< void() > | sigFallback () |
| std::shared_ptr< DlNormalFileState > | fallbackToNormalTransition () |
| std::shared_ptr< DlMetalinkState > | transitionToMetalinkDl () |
| std::shared_ptr< FinishedState > | transitionToFinished () |
| bool | toMetalinkDownloadGuard () const |
Public Member Functions inherited from zyppng::BasicState< DownloadPrivate, isFin > | |
| BasicState (DownloadPrivate &sm) | |
| BasicState (BasicState &&) noexcept=default | |
| ~BasicState () override | |
| BasicState & | operator= (BasicState &&) noexcept=default |
| DownloadPrivate & | stateMachine () |
| const DownloadPrivate & | stateMachine () const |
Public Member Functions inherited from zyppng::Base | |
| Base () | |
| virtual | ~Base () |
| WeakPtr | parent () const |
| void | addChild (const Base::Ptr &child) |
| void | removeChild (const Ptr &child) |
| const std::unordered_set< Ptr > & | children () const |
| std::thread::id | threadId () const |
| template<typename T > | |
| std::vector< std::weak_ptr< T > > | findChildren () const |
| template<typename T > | |
| std::shared_ptr< T > | shared_this () const |
| template<typename T > | |
| std::shared_ptr< T > | shared_this () |
| template<typename T > | |
| std::weak_ptr< T > | weak_this () const |
| template<typename T > | |
| std::weak_ptr< T > | weak_this () |
| template<typename SenderFunc , typename ReceiverFunc > | |
| auto | connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
| template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
| std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connection > | connectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
Public Attributes | |
| std::vector< Url > | _mirrors |
| zypp::media::MediaBlockList | _blockList |
Private Member Functions | |
| void | onMirrorsReady () |
Private Attributes | |
| sigc::connection | _mirrorControlReadyConn |
| Mode | _mode |
| std::shared_ptr< Request > | _oldRequest |
| NetworkRequestError | _error |
| Signal< void() > | _sigFinished |
| Signal< void() > | _sigFallback |
| Signal< void() > | _sigFailed |
Additional Inherited Members | |
Static Public Member Functions inherited from zyppng::Base | |
| template<typename Obj , typename Functor > | |
| static decltype(auto) | make_base_slot (Obj *o, Functor &&f) |
| template<typename SenderFunc , typename ReceiverFunc > | |
| static auto | connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
| template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
| static auto | connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
Static Public Attributes inherited from zyppng::SimpleState< DownloadPrivate, Download::PrepareMulti, false > | |
| static constexpr auto | stateId |
Static Public Attributes inherited from zyppng::BasicState< DownloadPrivate, isFin > | |
| static constexpr bool | isFinal |
Protected Member Functions inherited from zyppng::Base | |
| Base (BasePrivate &dd) | |
Protected Attributes inherited from zyppng::Base | |
| std::unique_ptr< BasePrivate > | d_ptr |
Metalink peparation state implementation, this state parses the downloaded Metalink file and registeres all mirrors in MirrorControl. Once the first mirror becomes ready it passes on to the next state.
Definition at line 37 of file preparemulti_p.h.
Definition at line 39 of file preparemulti_p.h.
| Enumerator | |
|---|---|
| Zsync | |
| Metalink | |
Definition at line 41 of file preparemulti_p.h.
| zyppng::PrepareMultiState::PrepareMultiState | ( | std::shared_ptr< Request > | oldReq, |
| Mode | m, | ||
| DownloadPrivate & | parent | ||
| ) |
Definition at line 26 of file preparemulti_p.cc.
| void zyppng::PrepareMultiState::enter | ( | ) |
Definition at line 34 of file preparemulti_p.cc.
| void zyppng::PrepareMultiState::exit | ( | ) |
Definition at line 139 of file preparemulti_p.cc.
|
inline |
Definition at line 51 of file preparemulti_p.h.
|
inline |
Definition at line 55 of file preparemulti_p.h.
|
inline |
Definition at line 58 of file preparemulti_p.h.
|
inline |
Definition at line 61 of file preparemulti_p.h.
| std::shared_ptr< DlNormalFileState > zyppng::PrepareMultiState::fallbackToNormalTransition | ( | ) |
Definition at line 195 of file preparemulti_p.cc.
| std::shared_ptr< DlMetalinkState > zyppng::PrepareMultiState::transitionToMetalinkDl | ( | ) |
Definition at line 214 of file preparemulti_p.cc.
| std::shared_ptr< FinishedState > zyppng::PrepareMultiState::transitionToFinished | ( | ) |
Definition at line 219 of file preparemulti_p.cc.
| bool zyppng::PrepareMultiState::toMetalinkDownloadGuard | ( | ) | const |
Definition at line 238 of file preparemulti_p.cc.
|
private |
Definition at line 146 of file preparemulti_p.cc.
| std::vector<Url> zyppng::PrepareMultiState::_mirrors |
Definition at line 75 of file preparemulti_p.h.
| zypp::media::MediaBlockList zyppng::PrepareMultiState::_blockList |
Definition at line 76 of file preparemulti_p.h.
|
private |
Definition at line 79 of file preparemulti_p.h.
|
private |
Definition at line 85 of file preparemulti_p.h.
|
private |
Definition at line 86 of file preparemulti_p.h.
|
private |
Definition at line 87 of file preparemulti_p.h.
|
private |
Definition at line 88 of file preparemulti_p.h.
|
private |
Definition at line 89 of file preparemulti_p.h.
|
private |
Definition at line 90 of file preparemulti_p.h.