libzypp 17.37.17
|
#include <zypp-media/ng/providespec.h>
Classes | |
class | Impl |
Public Member Functions | |
ProvideMediaSpec (std::string label="", zypp::Pathname verifyData=zypp::Pathname(), unsigned medianr=1) | |
const std::string & | label () const |
ProvideMediaSpec & | setLabel (const std::string &label) |
unsigned | medianr () const |
ProvideMediaSpec & | setMedianr (unsigned medianr) |
zypp::Pathname | mediaFile () const |
ProvideMediaSpec & | setMediaFile (const zypp::Pathname &pName) |
HeaderValueMap & | customHeaders () |
const HeaderValueMap & | customHeaders () const |
ProvideMediaSpec & | setCustomHeaderValue (const std::string &key, const HeaderValueMap::Value &val) |
ProvideMediaSpec & | addCustomHeaderValue (const std::string &key, const HeaderValueMap::Value &val) |
zypp::TriBool | isSameMedium (const ProvideMediaSpec &other) const |
Private Attributes | |
zypp::RWCOW_pointer< Impl > | _pimpl |
Implementation class. |
Definition at line 28 of file providespec.h.
zyppng::ProvideMediaSpec::ProvideMediaSpec | ( | std::string | label = "", |
zypp::Pathname | verifyData = zypp::Pathname(), | ||
unsigned | medianr = 1 ) |
Definition at line 95 of file providespec.cc.
const std::string & zyppng::ProvideMediaSpec::label | ( | ) | const |
The label of the medium, this will be shown in case a media change is required
Definition at line 101 of file providespec.cc.
ProvideMediaSpec & zyppng::ProvideMediaSpec::setLabel | ( | const std::string & | label | ) |
Changes the label of the medium
Definition at line 104 of file providespec.cc.
unsigned zyppng::ProvideMediaSpec::medianr | ( | ) | const |
The media number the resource is located on.
Definition at line 110 of file providespec.cc.
ProvideMediaSpec & zyppng::ProvideMediaSpec::setMedianr | ( | unsigned | medianr | ) |
Individual manipulation of medianr
(prefer setLocation).
Definition at line 113 of file providespec.cc.
zypp::filesystem::Pathname zyppng::ProvideMediaSpec::mediaFile | ( | ) | const |
Returns the media validation file path. This can be empty if there is no file to validate.
Definition at line 119 of file providespec.cc.
ProvideMediaSpec & zyppng::ProvideMediaSpec::setMediaFile | ( | const zypp::Pathname & | pName | ) |
Changes the media file to the name path pName.
Definition at line 122 of file providespec.cc.
HeaderValueMap & zyppng::ProvideMediaSpec::customHeaders | ( | ) |
Returns a map of custom key->value pairs that can control special aspects of how all files are provided by the medium after it was attached
Definition at line 128 of file providespec.cc.
const HeaderValueMap & zyppng::ProvideMediaSpec::customHeaders | ( | ) | const |
Definition at line 131 of file providespec.cc.
ProvideMediaSpec & zyppng::ProvideMediaSpec::setCustomHeaderValue | ( | const std::string & | key, |
const HeaderValueMap::Value & | val ) |
Set the custom header value identified by key to val
Definition at line 134 of file providespec.cc.
ProvideMediaSpec & zyppng::ProvideMediaSpec::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 140 of file providespec.cc.
zypp::TriBool zyppng::ProvideMediaSpec::isSameMedium | ( | const ProvideMediaSpec & | other | ) | const |
Definition at line 146 of file providespec.cc.
|
private |