libzypp 17.35.14
zyppng::DlNormalFileState Struct Reference

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

Inheritance diagram for zyppng::DlNormalFileState:

Public Member Functions

 DlNormalFileState (DownloadPrivate &parent)
 
 DlNormalFileState (std::shared_ptr< Request > &&oldReq, DownloadPrivate &parent)
 
std::shared_ptr< FinishedStatetransitionToFinished ()
 
SignalProxy< void() > sigFinished ()
 
SignalProxy< void() > sigFailed ()
 
- Public Member Functions inherited from zyppng::BasicDownloaderStateBase
 BasicDownloaderStateBase (DownloadPrivate &parent)
 
 BasicDownloaderStateBase (std::shared_ptr< Request > &&req, DownloadPrivate &parent)
 
void enter ()
 
void exit ()
 
virtual bool initializeRequest (std::shared_ptr< Request > &r)
 
virtual void gotFinished ()
 
virtual void failed (NetworkRequestError &&err)
 
void failed (std::string &&str)
 
void onRequestStarted (NetworkRequest &)
 
void onRequestProgress (NetworkRequest &, off_t dltotal, off_t dlnow, off_t, off_t)
 
void onRequestFinished (NetworkRequest &req, const NetworkRequestError &err)
 
const NetworkRequestErrorerror () const
 
void mirrorReceived (MirrorControl::MirrorPick mirror) override
 
void failedToPrepare () override
 
- Public Member Functions inherited from zyppng::MirrorHandlingStateBase
 MirrorHandlingStateBase (DownloadPrivate &parent)
 
 ~MirrorHandlingStateBase () override
 
PrepareResult prepareNextMirror ()
 
NetworkRequestError setupMirror (const MirrorControl::MirrorPick &pick, Url &url, TransferSettings &set)
 
- Public Member Functions inherited from zyppng::BasicState< DownloadPrivate, false >
 BasicState (DownloadPrivate &sm)
 
 BasicState (BasicState &&) noexcept=default
 
 ~BasicState () override
 
BasicStateoperator= (BasicState &&) noexcept=default
 
DownloadPrivatestateMachine ()
 
const DownloadPrivatestateMachine () 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 >, connectionconnectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers)
 

Static Public Attributes

static constexpr auto stateId = Download::DlSimple
 
- Static Public Attributes inherited from zyppng::BasicState< DownloadPrivate, false >
static constexpr bool isFinal
 

Additional Inherited Members

- Public Types inherited from zyppng::BasicDownloaderStateBase
using Request = DownloadPrivateBase::Request
 
- Public Types inherited from zyppng::MirrorHandlingStateBase
enum  PrepareResult { Failed , Ok , Delayed }
 
- Public Types inherited from zyppng::Base
using Ptr = std::shared_ptr<Base>
 
using WeakPtr = std::weak_ptr<Base>
 
- 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)
 
- Public Attributes inherited from zyppng::BasicDownloaderStateBase
std::shared_ptr< Request_request
 
std::optional< std::string > _chksumtype
 
std::optional< UByteArray_chksumVec
 
- Public Attributes inherited from zyppng::MirrorHandlingStateBase
std::vector< Url_fileMirrors
 
- Protected Member Functions inherited from zyppng::BasicDownloaderStateBase
void startWithMirror (MirrorControl::MirrorHandle mirror, const zypp::Url &url, const TransferSettings &set)
 
void startWithoutMirror ()
 
void startRequest ()
 
virtual void handleRequestProgress (NetworkRequest &req, off_t dltotal, off_t dlnow)
 
- Protected Member Functions inherited from zyppng::Base
 Base (BasePrivate &dd)
 
- Protected Attributes inherited from zyppng::BasicDownloaderStateBase
NetworkRequestError _error
 
Signal< void() > _sigFinished
 
Signal< void() > _sigFailed
 
- Protected Attributes inherited from zyppng::Base
std::unique_ptr< BasePrivated_ptr
 

Detailed Description

Just a plain normal file download, no metalink, nothing fancy. If this fails we have no more fallbacks

Definition at line 29 of file normal_p.h.

Constructor & Destructor Documentation

◆ DlNormalFileState() [1/2]

zyppng::DlNormalFileState::DlNormalFileState ( DownloadPrivate & parent)

Definition at line 18 of file normal_p.cc.

◆ DlNormalFileState() [2/2]

zyppng::DlNormalFileState::DlNormalFileState ( std::shared_ptr< Request > && oldReq,
DownloadPrivate & parent )

Definition at line 24 of file normal_p.cc.

Member Function Documentation

◆ transitionToFinished()

std::shared_ptr< FinishedState > zyppng::DlNormalFileState::transitionToFinished ( )

Definition at line 29 of file normal_p.cc.

◆ sigFinished()

SignalProxy< void() > zyppng::DlNormalFileState::sigFinished ( )
inline

Definition at line 37 of file normal_p.h.

◆ sigFailed()

SignalProxy< void() > zyppng::DlNormalFileState::sigFailed ( )
inline

Definition at line 40 of file normal_p.h.

Member Data Documentation

◆ stateId

auto zyppng::DlNormalFileState::stateId = Download::DlSimple
staticconstexpr

Definition at line 30 of file normal_p.h.


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