1
/*---------------------------------------------------------------------\
3
| |__ / \ / / . \ . \ |
8
\---------------------------------------------------------------------*/
10
#ifndef ZYPP_SUSE_MEDIAVERIFIER_H
11
#define ZYPP_SUSE_MEDIAVERIFIER_H
13
#include "zypp/media/MediaManager.h"
14
#include "zypp/media/MediaAccess.h"
22
* \short Implementation of the traditional SUSE media verifier
24
class SUSEMediaVerifier : public zypp::media::MediaVerifierBase
28
* \short create a verifier from attributes
30
* Creates a verifier for the media using
33
* \param vendor_r i.e. "SUSE Linux Products GmbH"
34
* \param id_r i.e. "20070718164719"
35
* \param media_nr media number
37
SUSEMediaVerifier(const std::string & vendor_r,
38
const std::string & id_r,
39
const media::MediaNr media_nr = 1);
42
* \short creates a verifier from a media file
44
* \param path_r Path to media.1/media kind file
46
SUSEMediaVerifier( int media_nr, const Pathname &path_r );
49
* \short Check if it is the desider media
51
* Check if the specified attached media contains
52
* the desired media number (e.g. SLES10 CD1).
54
* Reimplementation of virtual function, will be
55
* called by the component verifying the media.
57
virtual bool isDesiredMedia(const media::MediaAccessRef &ref);
60
std::string _media_vendor;
61
std::string _media_id;
62
media::MediaNr _media_nr;