libzypp  11.13.5
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