libzypp 17.35.9
|
#include <zypp-media/ng/private/provideitem_p.h>
Static Public Member Functions | |
static ProvideFileItemRef | create (const std::vector< zypp::Url > &urls, const ProvideFileSpec &request, ProvidePrivate &parent) |
![]() | |
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) |
Private Attributes | |
Provide::MediaHandle | _handleRef |
bool | _promiseCreated = false |
std::vector< zypp::Url > | _mirrorList |
ProvideFileSpec | _initialSpec |
zypp::Pathname | _targetFile |
zypp::Pathname | _stagingFile |
zypp::ByteCount | _expectedBytes |
ProvidePromiseWeakRef< ProvideRes > | _promise |
Additional Inherited Members | |
![]() | |
enum | State { Uninitialized , Pending , Downloading , Processing , Cancelling , Finalizing , Finished } |
![]() | |
using | Ptr = std::shared_ptr<Base> |
using | WeakPtr = std::weak_ptr<Base> |
![]() | |
SignalProxy< void(ProvideItem &item, State oldState, State newState) | sigStateChanged )() |
![]() | |
ProvideRequestRef | _runningReq |
![]() | |
std::unique_ptr< BasePrivate > | d_ptr |
Item downloading and providing a file
Definition at line 130 of file provideitem_p.h.
|
protected |
Definition at line 559 of file provideitem.cc.
|
static |
Definition at line 565 of file provideitem.cc.
|
overridevirtual |
Called by the controller when the item is supposed to start fetching / processing
Implements zyppng::ProvideItem.
Definition at line 570 of file provideitem.cc.
ProvidePromiseRef< ProvideRes > zyppng::ProvideFileItem::promise | ( | ) |
Definition at line 592 of file provideitem.cc.
void zyppng::ProvideFileItem::setMediaRef | ( | Provide::MediaHandle && | hdl | ) |
Definition at line 603 of file provideitem.cc.
Provide::MediaHandle & zyppng::ProvideFileItem::mediaRef | ( | ) |
Definition at line 608 of file provideitem.cc.
|
overridevirtual |
Reimplemented from zyppng::ProvideItem.
Definition at line 794 of file provideitem.cc.
|
overridevirtual |
Returns the bytes the item expects to provide, the default impl returns 0
Reimplemented from zyppng::ProvideItem.
Definition at line 819 of file provideitem.cc.
|
overrideprotectedvirtual |
Request received a informal message, e.g. ProvideStarted
Reimplemented from zyppng::ProvideItem.
Definition at line 613 of file provideitem.cc.
|
overrideprotectedvirtual |
Request was finished by the queue Base implementation handles redirect, metalink and error messages. If a different message is received, cancelWithError is called.
A subclass has to overload this function to handle success messages
Reimplemented from zyppng::ProvideItem.
|
overrideprotectedvirtual |
Cancels all running requests and immediately moves to error state
Implements zyppng::ProvideItem.
Definition at line 758 of file provideitem.cc.
|
overrideprotectedvirtual |
Request needs authentication data, the function is supposed to return the AuthData to use for the response, or an error The default implementation simply uses the given URL to look for a Auth match in the zypp::media::CredentialManager.
Reimplemented from zyppng::ProvideItem.
Definition at line 780 of file provideitem.cc.
|
protectedvirtual |
Request was finished by the queue Base implementation handles redirect, metalink and error messages. If a different message is received, cancelWithError is called.
A subclass has to overload this function to handle success messages
Reimplemented from zyppng::ProvideItem.
Definition at line 135 of file provideitem.cc.
|
protectedvirtual |
Request was finished with a error The base implementation simply calls cancelWithError
Reimplemented from zyppng::ProvideItem.
Definition at line 143 of file provideitem.cc.
|
private |
Definition at line 157 of file provideitem_p.h.
Definition at line 158 of file provideitem_p.h.
|
private |
Definition at line 159 of file provideitem_p.h.
|
private |
Definition at line 160 of file provideitem_p.h.
|
private |
Definition at line 161 of file provideitem_p.h.
|
private |
Definition at line 162 of file provideitem_p.h.
|
private |
Definition at line 163 of file provideitem_p.h.
|
private |
Definition at line 164 of file provideitem_p.h.