libzypp 17.25.7
SUSEMediaVerifier.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9
10#ifndef ZYPP_SUSE_MEDIAVERIFIER_H
11#define ZYPP_SUSE_MEDIAVERIFIER_H
12
15
16namespace zypp
17{
18 namespace repo
19 {
20
25 {
26 public:
37 SUSEMediaVerifier(const std::string & vendor_r,
38 const std::string & id_r,
39 const media::MediaNr media_nr = 1);
40
46 SUSEMediaVerifier( int media_nr, const Pathname &path_r );
47
57 virtual bool isDesiredMedia(const media::MediaAccessRef &ref);
58
59 private:
60 std::string _media_vendor;
61 std::string _media_id;
63 };
64
65 }
66}
67#endif
Interface to implement a media verifier.
Definition: MediaManager.h:56
Implementation of the traditional SUSE media verifier.
virtual bool isDesiredMedia(const media::MediaAccessRef &ref)
Check if it is the desider media.
SUSEMediaVerifier(const std::string &vendor_r, const std::string &id_r, const media::MediaNr media_nr=1)
create a verifier from attributes
unsigned int MediaNr
Definition: MediaManager.h:40
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:286