libzypp  13.10.6
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 
14 #include "zypp/media/MediaAccess.h"
15 
16 namespace 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
Implementation of the traditional SUSE media verifier.
Interface to implement a media verifier.
Definition: MediaManager.h:55
virtual bool isDesiredMedia(const media::MediaAccessRef &ref)
Check if it is the desider media.
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:265
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