#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.11/zypp-media/ng/private/provideitem_p.h>
|
| | 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) |
| |
| 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 std::exception_ptr excpt) |
| |
| bool | safeRedirectTo (ProvideRequestRef startedReq, const zypp::Url &url) |
| |
| void | redirectTo (ProvideRequestRef startedReq, const zypp::Url &url) |
| |
| virtual bool | enqueueRequest (ProvideRequestRef request) |
| |
| bool | dequeue () |
| |
| void | updateState (const State newState) |
| |
| void | setFinished () |
| |
Item attaching and verifying a medium
Definition at line 171 of file provideitem_p.h.
◆ ~AttachMediaItem()
| zyppng::AttachMediaItem::~AttachMediaItem |
( |
| ) |
|
◆ AttachMediaItem()
◆ create()
◆ sigReady()
| SignalProxy< void(const zyppng::expected< AttachedMediaInfo * > &)> zyppng::AttachMediaItem::sigReady |
( |
| ) |
|
◆ promise()
◆ initialize()
| void zyppng::AttachMediaItem::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ finishReq() [1/3]
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.
◆ cancelWithError()
| void zyppng::AttachMediaItem::cancelWithError |
( |
std::exception_ptr |
error | ) |
|
|
overrideprotectedvirtual |
◆ finishWithSuccess()
◆ authenticationRequired()
| expected< zypp::media::AuthData > zyppng::AttachMediaItem::authenticationRequired |
( |
ProvideQueue & |
queue, |
|
|
ProvideRequestRef |
req, |
|
|
const zypp::Url & |
effectiveUrl, |
|
|
int64_t |
lastTimestamp, |
|
|
const std::map< std::string, std::string > & |
extraFields |
|
) |
| |
|
overrideprotectedvirtual |
◆ onMasterItemReady()
| void zyppng::AttachMediaItem::onMasterItemReady |
( |
const zyppng::expected< AttachedMediaInfo *> & |
result | ) |
|
|
protected |
◆ finishReq() [2/3]
| void zyppng::ProvideItem::finishReq |
|
protected |
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
Definition at line 190 of file provideitem.cc.
◆ finishReq() [3/3]
| void zyppng::ProvideItem::finishReq |
|
protected |
Request was finished with a error The base implementation simply calls cancelWithError
- Note
- queue is allowed to be a nullptr here
Definition at line 382 of file provideitem.cc.
◆ _sigReady
| Signal< void( const zyppng::expected<AttachedMediaInfo *> & )> zyppng::AttachMediaItem::_sigReady |
|
private |
◆ _promiseCreated
| bool zyppng::AttachMediaItem::_promiseCreated = false |
|
private |
◆ _masterItemConn
| connection zyppng::AttachMediaItem::_masterItemConn |
|
private |
◆ _mirrorList
| std::vector<zypp::Url> zyppng::AttachMediaItem::_mirrorList |
|
private |
◆ _initialSpec
◆ _workerType
| ProvideQueue::Config::WorkerType zyppng::AttachMediaItem::_workerType = ProvideQueue::Config::Invalid |
|
private |
◆ _promise
◆ _verifier
| MediaDataVerifierRef zyppng::AttachMediaItem::_verifier |
|
private |
The documentation for this class was generated from the following files: