libzypp
13.10.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
13
#include "
zypp/media/MediaManager.h
"
14
#include "
zypp/media/MediaAccess.h
"
15
16
namespace
zypp
17
{
18
namespace
repo
19
{
20
24
class
SUSEMediaVerifier
:
public
zypp::media::MediaVerifierBase
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
;
62
media::MediaNr
_media_nr
;
63
};
64
65
}
66
}
67
#endif
zypp::repo::SUSEMediaVerifier
Implementation of the traditional SUSE media verifier.
Definition:
SUSEMediaVerifier.h:24
zypp::repo::SUSEMediaVerifier::_media_nr
media::MediaNr _media_nr
Definition:
SUSEMediaVerifier.h:62
zypp::media::MediaVerifierBase
Interface to implement a media verifier.
Definition:
MediaManager.h:55
MediaManager.h
zypp::repo::SUSEMediaVerifier::isDesiredMedia
virtual bool isDesiredMedia(const media::MediaAccessRef &ref)
Check if it is the desider media.
Definition:
SUSEMediaVerifier.cc:47
MediaAccess.h
zypp::RW_pointer
Wrapper for const correct access via Smart pointer types.
Definition:
PtrTypes.h:265
zypp::repo::SUSEMediaVerifier::SUSEMediaVerifier
SUSEMediaVerifier(const std::string &vendor_r, const std::string &id_r, const media::MediaNr media_nr=1)
create a verifier from attributes
Definition:
SUSEMediaVerifier.cc:20
zypp::repo::SUSEMediaVerifier::_media_vendor
std::string _media_vendor
Definition:
SUSEMediaVerifier.h:60
zypp::repo::SUSEMediaVerifier::_media_id
std::string _media_id
Definition:
SUSEMediaVerifier.h:61
zypp::media::MediaNr
unsigned int MediaNr
Definition:
MediaManager.h:40
zypp
repo
SUSEMediaVerifier.h
Generated by
1.8.5