libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00009 00010 #ifndef ZYPP_SUSE_MEDIAVERIFIER_H 00011 #define ZYPP_SUSE_MEDIAVERIFIER_H 00012 00013 #include "zypp/media/MediaManager.h" 00014 #include "zypp/media/MediaAccess.h" 00015 00016 namespace zypp 00017 { 00018 namespace repo 00019 { 00020 00024 class SUSEMediaVerifier : public zypp::media::MediaVerifierBase 00025 { 00026 public: 00037 SUSEMediaVerifier(const std::string & vendor_r, 00038 const std::string & id_r, 00039 const media::MediaNr media_nr = 1); 00040 00046 SUSEMediaVerifier( int media_nr, const Pathname &path_r ); 00047 00057 virtual bool isDesiredMedia(const media::MediaAccessRef &ref); 00058 00059 private: 00060 std::string _media_vendor; 00061 std::string _media_id; 00062 media::MediaNr _media_nr; 00063 }; 00064 00065 } 00066 } 00067 #endif