libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/ng/private/provideitem_p.h>
Public Member Functions | |
~AttachMediaItem () | |
SignalProxy< void(const zyppng::expected< AttachedMediaInfo * > &) > | sigReady () |
ProvidePromiseRef< Provide::MediaHandle > | promise () |
Public Member Functions inherited from zyppng::ProvideItem | |
ProvideItem (ProvidePrivate &parent) | |
~ProvideItem () | |
virtual void | initialize ()=0 |
virtual void | released () |
State | state () const |
SignalProxy< void(ProvideItem &item, State oldState, State newState)> | sigStateChanged () |
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 |
Static Public Member Functions | |
static AttachMediaItemRef | create (const std::vector< zypp::Url > &urls, const ProvideMediaSpec &request, ProvidePrivate &parent) |
Protected Member Functions | |
AttachMediaItem (const std::vector< zypp::Url > &urls, const ProvideMediaSpec &request, ProvidePrivate &parent) | |
void | initialize () override |
void | finishReq (ProvideQueue &queue, ProvideRequestRef finishedReq, const ProvideMessage &msg) override |
void | cancelWithError (std::exception_ptr error) override |
void | finishWithSuccess (AttachedMediaInfo &medium) |
expected< zypp::media::AuthData > | authenticationRequired (ProvideQueue &queue, ProvideRequestRef req, const zypp::Url &effectiveUrl, int64_t lastTimestamp, const std::map< std::string, std::string > &extraFields) override |
void | onMasterItemReady (const zyppng::expected< AttachedMediaInfo * > &result) |
virtual void | finishReq (ProvideQueue &queue, ProvideRequestRef finishedReq, const ProvideMessage &msg) |
virtual void | finishReq (ProvideQueue *queue, ProvideRequestRef finishedReq, const std::exception_ptr excpt) |
Protected Member Functions inherited from zyppng::ProvideItem | |
virtual ItemStats | makeStats () |
virtual void | informalMessage (ProvideQueue &, ProvideRequestRef req, const ProvideMessage &msg) |
virtual void | cacheMiss (ProvideRequestRef req) |
virtual void | finishReq (ProvideQueue &queue, ProvideRequestRef finishedReq, const ProvideMessage &msg) |
virtual void | finishReq (ProvideQueue *queue, ProvideRequestRef finishedReq, const std::exception_ptr excpt) |
virtual expected< zypp::media::AuthData > | authenticationRequired (ProvideQueue &queue, ProvideRequestRef req, const zypp::Url &effectiveUrl, int64_t lastTimestamp, const std::map< std::string, std::string > &extraFields) |
bool | safeRedirectTo (ProvideRequestRef startedReq, const zypp::Url &url) |
void | redirectTo (ProvideRequestRef startedReq, const zypp::Url &url) |
virtual bool | enqueueRequest (ProvideRequestRef request) |
virtual void | cancelWithError (std::exception_ptr error)=0 |
bool | dequeue () |
void | updateState (const State newState) |
void | setFinished () |
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 | |
Public Types inherited from zyppng::ProvideItem | |
enum | State { Uninitialized , Pending , Downloading , Processing , Cancelling , Finalizing , Finished } |
Protected Attributes inherited from zyppng::ProvideItem | |
ProvideRequestRef | _runningReq |
Item attaching and verifying a medium
Definition at line 171 of file provideitem_p.h.
zyppng::AttachMediaItem::~AttachMediaItem | ( | ) |
Definition at line 812 of file provideitem.cc.
|
protected |
Definition at line 806 of file provideitem.cc.
|
static |
Definition at line 1098 of file provideitem.cc.
SignalProxy< void(const zyppng::expected< AttachedMediaInfo * > &)> zyppng::AttachMediaItem::sigReady | ( | ) |
Definition at line 1103 of file provideitem.cc.
ProvidePromiseRef< Provide::MediaHandle > zyppng::AttachMediaItem::promise | ( | ) |
Definition at line 817 of file provideitem.cc.
|
overrideprotectedvirtual |
Called by the controller when the item is supposed to start fetching / processing
Implements zyppng::ProvideItem.
Definition at line 828 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 1108 of file provideitem.cc.
|
overrideprotectedvirtual |
Cancels all running requests and immediately moves to error state
Implements zyppng::ProvideItem.
Definition at line 1042 of file provideitem.cc.
|
protected |
Definition at line 1002 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 1181 of file provideitem.cc.
|
protected |
Definition at line 1073 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 195 of file provideitem_p.h.
|
private |
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.