libzypp
10.5.0
|
Implementation of the traditional SUSE media verifier. More...
#include <SUSEMediaVerifier.h>
Public Member Functions | |
SUSEMediaVerifier (const std::string &vendor_r, const std::string &id_r, const media::MediaNr media_nr=1) | |
create a verifier from attributes | |
SUSEMediaVerifier (int media_nr, const Pathname &path_r) | |
creates a verifier from a media file | |
virtual bool | isDesiredMedia (const media::MediaAccessRef &ref) |
Check if it is the desider media. | |
Private Attributes | |
std::string | _media_vendor |
std::string | _media_id |
media::MediaNr | _media_nr |
Implementation of the traditional SUSE media verifier.
Definition at line 24 of file SUSEMediaVerifier.h.
zypp::repo::SUSEMediaVerifier::SUSEMediaVerifier | ( | const std::string & | vendor_r, |
const std::string & | id_r, | ||
const media::MediaNr | media_nr = 1 |
||
) |
create a verifier from attributes
Creates a verifier for the media using the attributes
vendor_r | i.e. "SUSE Linux Products GmbH" |
id_r | i.e. "20070718164719" |
media_nr | media number |
Definition at line 20 of file SUSEMediaVerifier.cc.
zypp::repo::SUSEMediaVerifier::SUSEMediaVerifier | ( | int | media_nr, |
const Pathname & | path_r | ||
) |
creates a verifier from a media file
path_r | Path to media.1/media kind file |
Definition at line 28 of file SUSEMediaVerifier.cc.
bool zypp::repo::SUSEMediaVerifier::isDesiredMedia | ( | const media::MediaAccessRef & | ref | ) | [virtual] |
Check if it is the desider media.
Check if the specified attached media contains the desired media number (e.g. SLES10 CD1).
Reimplementation of virtual function, will be called by the component verifying the media.
Implements zypp::media::MediaVerifierBase.
Definition at line 47 of file SUSEMediaVerifier.cc.
std::string zypp::repo::SUSEMediaVerifier::_media_vendor [private] |
Definition at line 60 of file SUSEMediaVerifier.h.
std::string zypp::repo::SUSEMediaVerifier::_media_id [private] |
Definition at line 61 of file SUSEMediaVerifier.h.
Definition at line 62 of file SUSEMediaVerifier.h.