libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/ng/mediaverifier.h>
Public Member Functions | |
MediaDataVerifier () noexcept | |
virtual | ~MediaDataVerifier () |
virtual bool | valid () const =0 |
Data considered to be valid if we have vendor and ident. | |
virtual bool | matches (const MediaDataVerifierRef &rhs) const =0 |
Whether rhs belongs to the same media set. | |
virtual const std::string & | mediaVendor () const =0 |
virtual const std::string & | mediaIdent () const =0 |
virtual uint | totalMedia () const =0 |
virtual std::ostream & | toStream (std::ostream &str) const =0 |
virtual bool | load (const zypp::Pathname &data)=0 |
virtual bool | loadFromMedium (const zypp::Pathname &data, uint mediaNr)=0 |
virtual zypp::Pathname | mediaFilePath (uint mediaNr) const =0 |
virtual MediaDataVerifierRef | clone () const =0 |
virtual std::string | expectedAsUserString (uint mediaNr=1) const =0 |
Static Public Member Functions | |
static MediaDataVerifierRef | createVerifier (const std::string &verifierType) |
The MediaDataVerifier is used to verify if a specific medium, e.g. a DVD, is the medium we actually need. Each verifier is defined by a verifier type and the data that is used to validate against the medium.
Definition at line 30 of file mediaverifier.h.
|
noexcept |
Definition at line 116 of file mediaverifier.cc.
|
virtual |
Definition at line 119 of file mediaverifier.cc.
|
static |
Definition at line 122 of file mediaverifier.cc.
|
pure virtual |
Data considered to be valid if we have vendor and ident.
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Whether rhs belongs to the same media set.
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Returns the media vendor string
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Returns the media ident string
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Returns the total number of mediums in this set
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Writes the mediaverifier data to stream
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Load verification information from a given file, all media data must be storeable in a file so that the controller can store a copy of it somewhere.
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Generates the file information from a mounted medium, the path given in data is the mountpoint of the device.
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Returns the path of the media identifier file on the medium
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Clones this and returns a reference to the clone
Implemented in zyppng::SuseMediaDataVerifier.
|
pure virtual |
Returns a error string describing the expected medium.
Implemented in zyppng::SuseMediaDataVerifier.