libzypp 17.34.0
|
#include <zypp-media/ng/private/provideitem_p.h>
Public Member Functions | |
~AttachMediaItem () | |
ProvidePromiseRef< Provide::MediaHandle > | promise () |
![]() | |
ProvideItem (ProvidePrivate &parent) | |
~ProvideItem () | |
virtual void | released () |
State | state () const |
ProvidePrivate & | provider () |
virtual bool | canRedirectTo (ProvideRequestRef startedReq, const zypp::Url &url) |
const std::optional< ItemStats > & | currentStats () const |
const std::optional< ItemStats > & | previousStats () const |
virtual std::chrono::steady_clock::time_point | startTime () const |
virtual std::chrono::steady_clock::time_point | finishedTime () const |
void | pulse () |
virtual zypp::ByteCount | bytesExpected () const |
![]() | |
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) |
Static Public Member Functions | |
static AttachMediaItemRef | create (const std::vector< zypp::Url > &urls, const ProvideMediaSpec &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) |
Public Attributes | |
SignalProxy< void(const zyppng::expected< AttachedMediaInfo * > &) | sigReady )() |
![]() | |
SignalProxy< void(ProvideItem &item, State oldState, State newState) | sigStateChanged )() |
Private Attributes | |
Signal< void(const zyppng::expected< AttachedMediaInfo * > &) | _sigReady ) |
bool | _promiseCreated = false |
connection | _masterItemConn |
std::vector< zypp::Url > | _mirrorList |
ProvideMediaSpec | _initialSpec |
ProvideQueue::Config::WorkerType | _workerType = ProvideQueue::Config::Invalid |
ProvidePromiseWeakRef< Provide::MediaHandle > | _promise |
MediaDataVerifierRef | _verifier |
Additional Inherited Members | |
![]() | |
enum | State { Uninitialized , Pending , Downloading , Processing , Cancelling , Finalizing , Finished } |
![]() | |
using | Ptr = std::shared_ptr<Base> |
using | WeakPtr = std::weak_ptr<Base> |
![]() | |
ProvideRequestRef | _runningReq |
![]() | |
std::unique_ptr< BasePrivate > | d_ptr |
Item attaching and verifying a medium
Definition at line 171 of file provideitem_p.h.
zyppng::AttachMediaItem::~AttachMediaItem | ( | ) |
Definition at line 828 of file provideitem.cc.
|
protected |
Definition at line 822 of file provideitem.cc.
|
static |
Definition at line 1103 of file provideitem.cc.
ProvidePromiseRef< Provide::MediaHandle > zyppng::AttachMediaItem::promise | ( | ) |
Definition at line 833 of file provideitem.cc.
|
overrideprotectedvirtual |
Called by the controller when the item is supposed to start fetching / processing
Implements zyppng::ProvideItem.
Definition at line 844 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.
Definition at line 1113 of file provideitem.cc.
|
overrideprotectedvirtual |
Cancels all running requests and immediately moves to error state
Implements zyppng::ProvideItem.
Definition at line 1048 of file provideitem.cc.
|
protected |
Definition at line 1018 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 1196 of file provideitem.cc.
|
protected |
Definition at line 1079 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.
SignalProxy< void(const zyppng::expected< AttachedMediaInfo * > &) zyppng::AttachMediaItem::sigReady) () |
|
private |
Definition at line 195 of file provideitem_p.h.
Definition at line 196 of file provideitem_p.h.
|
private |
Definition at line 197 of file provideitem_p.h.
|
private |
Definition at line 198 of file provideitem_p.h.
|
private |
Definition at line 199 of file provideitem_p.h.
|
private |
Definition at line 200 of file provideitem_p.h.
|
private |
Definition at line 201 of file provideitem_p.h.
|
private |
Definition at line 202 of file provideitem_p.h.