libzypp 17.31.23
zyppng::ProvideMediaSpec Class Reference

#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/ng/providespec.h>

Classes

class  Impl
 

Public Member Functions

 ProvideMediaSpec (const std::string &label, const zypp::Pathname &verifyData=zypp::Pathname(), unsigned medianr=1)
 
const std::string & label () const
 
ProvideMediaSpecsetLabel (const std::string &label)
 
unsigned medianr () const
 
ProvideMediaSpecsetMedianr (unsigned medianr)
 
zypp::Pathname mediaFile () const
 
ProvideMediaSpecsetMediaFile (const zypp::Pathname &pName)
 
HeaderValueMapcustomHeaders ()
 
const HeaderValueMapcustomHeaders () const
 
ProvideMediaSpecsetCustomHeaderValue (const std::string &key, const HeaderValueMap::Value &val)
 
ProvideMediaSpecaddCustomHeaderValue (const std::string &key, const HeaderValueMap::Value &val)
 
zypp::TriBool isSameMedium (const ProvideMediaSpec &other)
 

Private Attributes

zypp::RWCOW_pointer< Impl_pimpl
 Implementation class.
 

Detailed Description

Definition at line 28 of file providespec.h.

Constructor & Destructor Documentation

◆ ProvideMediaSpec()

zyppng::ProvideMediaSpec::ProvideMediaSpec ( const std::string &  label,
const zypp::Pathname verifyData = zypp::Pathname(),
unsigned  medianr = 1 
)

Definition at line 89 of file providespec.cc.

Member Function Documentation

◆ label()

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 95 of file providespec.cc.

◆ setLabel()

ProvideMediaSpec & zyppng::ProvideMediaSpec::setLabel ( const std::string &  label)

Changes the label of the medium

Definition at line 98 of file providespec.cc.

◆ medianr()

unsigned zyppng::ProvideMediaSpec::medianr ( ) const

The media number the resource is located on.

Definition at line 104 of file providespec.cc.

◆ setMedianr()

ProvideMediaSpec & zyppng::ProvideMediaSpec::setMedianr ( unsigned  medianr)

Individual manipulation of medianr (prefer setLocation).

Definition at line 107 of file providespec.cc.

◆ mediaFile()

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 113 of file providespec.cc.

◆ setMediaFile()

ProvideMediaSpec & zyppng::ProvideMediaSpec::setMediaFile ( const zypp::Pathname pName)

Changes the media file to the name path pName.

Definition at line 116 of file providespec.cc.

◆ customHeaders() [1/2]

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 122 of file providespec.cc.

◆ customHeaders() [2/2]

const HeaderValueMap & zyppng::ProvideMediaSpec::customHeaders ( ) const

Definition at line 125 of file providespec.cc.

◆ setCustomHeaderValue()

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 128 of file providespec.cc.

◆ addCustomHeaderValue()

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 134 of file providespec.cc.

◆ isSameMedium()

zypp::TriBool zyppng::ProvideMediaSpec::isSameMedium ( const ProvideMediaSpec other)

Definition at line 140 of file providespec.cc.

Member Data Documentation

◆ _pimpl

zypp::RWCOW_pointer<Impl> zyppng::ProvideMediaSpec::_pimpl
private

Implementation class.

Pointer to implementation.

Definition at line 87 of file providespec.h.


The documentation for this class was generated from the following files: