libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/ng/providespec.h>
Classes | |
class | Impl |
Public Member Functions | |
ProvideFileSpec () | |
ProvideFileSpec (const zypp::OnMediaLocation &loc) | |
~ProvideFileSpec () | |
Dtor. | |
const zypp::Pathname & | destFilenameHint () const |
ProvideFileSpec & | setDestFilenameHint (const zypp::Pathname &filename) |
bool | checkExistsOnly () const |
ProvideFileSpec & | setCheckExistsOnly (const bool set=true) |
bool | optional () const |
Whether this is an optional resource. | |
ProvideFileSpec & | setOptional (bool val) |
Set whether the resource is optional. | |
const zypp::ByteCount & | downloadSize () const |
The size of the resource on the server. | |
ProvideFileSpec & | setDownloadSize (const zypp::ByteCount &val_r) |
Set the downloadSize. | |
const zypp::CheckSum & | checksum () const |
The checksum of the resource on the server. | |
ProvideFileSpec & | setChecksum (const zypp::CheckSum &val_r) |
Set the checksum. | |
const zypp::ByteCount & | openSize () const |
The size of the resource once it has been uncompressed or unpacked. | |
ProvideFileSpec & | setOpenSize (const zypp::ByteCount &val_r) |
Set the openSize. | |
const zypp::CheckSum & | openChecksum () const |
The checksum of the resource once it has been uncompressed or unpacked. | |
ProvideFileSpec & | setOpenChecksum (const zypp::CheckSum &val_r) |
Set the openChecksum. | |
const zypp::ByteCount & | headerSize () const |
The size of the header prepending the resource (e.g. | |
ProvideFileSpec & | setHeaderSize (const zypp::ByteCount &val_r) |
Set the headerSize. | |
const zypp::CheckSum & | headerChecksum () const |
The checksum of the header prepending the resource (e.g. | |
ProvideFileSpec & | setHeaderChecksum (const zypp::CheckSum &val_r) |
Set the headerChecksum. | |
const zypp::Pathname & | deltafile () const |
The existing deltafile that can be used to reduce download size ( zchunk or metalink ) | |
ProvideFileSpec & | setDeltafile (const zypp::Pathname &path) |
Set the deltafile. | |
HeaderValueMap & | customHeaders () |
const HeaderValueMap & | customHeaders () const |
ProvideFileSpec & | setCustomHeaderValue (const std::string &key, const HeaderValueMap::Value &val) |
ProvideFileSpec & | addCustomHeaderValue (const std::string &key, const HeaderValueMap::Value &val) |
Static Public Member Functions | |
template<typename... T> | |
static ProvideFileSpecRef | create (T... args) |
Private Attributes | |
zypp::RWCOW_pointer< Impl > | _pimpl |
Implementation class. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const ProvideFileSpec &obj) |
std::ostream & | dumpOn (std::ostream &str, const ProvideFileSpec &obj) |
Definition at line 91 of file providespec.h.
zyppng::ProvideFileSpec::ProvideFileSpec | ( | ) |
Definition at line 166 of file providespec.cc.
zyppng::ProvideFileSpec::ProvideFileSpec | ( | const zypp::OnMediaLocation & | loc | ) |
Definition at line 170 of file providespec.cc.
zyppng::ProvideFileSpec::~ProvideFileSpec | ( | ) |
Dtor.
Definition at line 183 of file providespec.cc.
|
inlinestatic |
Definition at line 105 of file providespec.h.
const zypp::filesystem::Pathname & zyppng::ProvideFileSpec::destFilenameHint | ( | ) | const |
The destination file name, this is optional and is only a hint to the Provide instance where to put the file IF possible. The file provider does not need to consider this.
Definition at line 186 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setDestFilenameHint | ( | const zypp::Pathname & | filename | ) |
Definition at line 189 of file providespec.cc.
bool zyppng::ProvideFileSpec::checkExistsOnly | ( | ) | const |
Definition at line 192 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setCheckExistsOnly | ( | const bool | set = true | ) |
Definition at line 195 of file providespec.cc.
bool zyppng::ProvideFileSpec::optional | ( | ) | const |
Whether this is an optional resource.
This is a hint to the downloader not to report an error if the resource is not present on the server.
Definition at line 198 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setOptional | ( | bool | val | ) |
Set whether the resource is optional.
Definition at line 201 of file providespec.cc.
const zypp::ByteCount & zyppng::ProvideFileSpec::downloadSize | ( | ) | const |
The size of the resource on the server.
Definition at line 204 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setDownloadSize | ( | const zypp::ByteCount & | val_r | ) |
Set the downloadSize.
Definition at line 207 of file providespec.cc.
const zypp::CheckSum & zyppng::ProvideFileSpec::checksum | ( | ) | const |
The checksum of the resource on the server.
Definition at line 210 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setChecksum | ( | const zypp::CheckSum & | val_r | ) |
Set the checksum.
Definition at line 213 of file providespec.cc.
const zypp::ByteCount & zyppng::ProvideFileSpec::openSize | ( | ) | const |
The size of the resource once it has been uncompressed or unpacked.
Definition at line 216 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setOpenSize | ( | const zypp::ByteCount & | val_r | ) |
Set the openSize.
Definition at line 219 of file providespec.cc.
const zypp::CheckSum & zyppng::ProvideFileSpec::openChecksum | ( | ) | const |
The checksum of the resource once it has been uncompressed or unpacked.
Definition at line 222 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setOpenChecksum | ( | const zypp::CheckSum & | val_r | ) |
Set the openChecksum.
Definition at line 225 of file providespec.cc.
const zypp::ByteCount & zyppng::ProvideFileSpec::headerSize | ( | ) | const |
The size of the header prepending the resource (e.g.
for zchunk).
Definition at line 228 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setHeaderSize | ( | const zypp::ByteCount & | val_r | ) |
Set the headerSize.
Definition at line 231 of file providespec.cc.
const zypp::CheckSum & zyppng::ProvideFileSpec::headerChecksum | ( | ) | const |
The checksum of the header prepending the resource (e.g.
for zchunk).
Definition at line 234 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setHeaderChecksum | ( | const zypp::CheckSum & | val_r | ) |
Set the headerChecksum.
Definition at line 237 of file providespec.cc.
const zypp::Pathname & zyppng::ProvideFileSpec::deltafile | ( | ) | const |
The existing deltafile that can be used to reduce download size ( zchunk or metalink )
Definition at line 240 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setDeltafile | ( | const zypp::Pathname & | path | ) |
Set the deltafile.
Definition at line 243 of file providespec.cc.
HeaderValueMap & zyppng::ProvideFileSpec::customHeaders | ( | ) |
Returns a map of custom key->value pairs that can control special aspects of how the provide operation is processed.
Definition at line 246 of file providespec.cc.
const HeaderValueMap & zyppng::ProvideFileSpec::customHeaders | ( | ) | const |
Definition at line 249 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::setCustomHeaderValue | ( | const std::string & | key, |
const HeaderValueMap::Value & | val | ||
) |
Set the custom header value identified by key to val
Definition at line 252 of file providespec.cc.
ProvideFileSpec & zyppng::ProvideFileSpec::addCustomHeaderValue | ( | const std::string & | key, |
const HeaderValueMap::Value & | val | ||
) |
Adds the custom header value val to the list of values identified by key
Definition at line 258 of file providespec.cc.
|
friend |
Definition at line 264 of file providespec.cc.
|
friend |
Definition at line 267 of file providespec.cc.
|
private |