libzypp 17.31.23
|
A ProvideRes object is a reference counted ownership of a resource in the cache provided by a Provide instance. More...
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/ng/provideres.h>
Public Member Functions | |
ProvideRes (std::shared_ptr< ProvideResourceData > dataPtr) | |
virtual | ~ProvideRes () |
const zypp::Pathname | file () const |
const zypp::ManagedFile & | asManagedFile () const |
const ProvideMediaHandle & | mediaHandle () const |
const zypp::Url & | resourceUrl () const |
const HeaderValueMap & | headers () const |
Private Attributes | |
std::shared_ptr< ProvideResourceData > | _data |
A ProvideRes object is a reference counted ownership of a resource in the cache provided by a Provide instance.
It is generally advisable to release a ProvideRes instance asap, to make sure resources can be released and devices are free to be ejected.
Definition at line 35 of file provideres.h.
zyppng::ProvideRes::ProvideRes | ( | std::shared_ptr< ProvideResourceData > | dataPtr | ) |
Definition at line 17 of file provideres.cc.
|
virtual |
Definition at line 20 of file provideres.cc.
const zypp::filesystem::Pathname zyppng::ProvideRes::file | ( | ) | const |
Returns the path to the provided file
Definition at line 23 of file provideres.cc.
const zypp::ManagedFile & zyppng::ProvideRes::asManagedFile | ( | ) | const |
Returns a reference to the internally used managed file instance.
Definition at line 28 of file provideres.cc.
const ProvideMediaHandle & zyppng::ProvideRes::mediaHandle | ( | ) | const |
Returns a reference to the currently held media handle, this can be a invalid handle
Definition at line 33 of file provideres.cc.
const zypp::Url & zyppng::ProvideRes::resourceUrl | ( | ) | const |
The URL this ressource was provided from, can be empty
Definition at line 38 of file provideres.cc.
const HeaderValueMap & zyppng::ProvideRes::headers | ( | ) | const |
All headers that were received from the worker when sending the result
Definition at line 43 of file provideres.cc.
|
private |
Definition at line 69 of file provideres.h.