12 #ifndef ZYPP_FILECHECKER_H
13 #define ZYPP_FILECHECKER_H
36 typedef function<void ( const Pathname &file )>
FileChecker;
124 void operator()(
const Pathname &file )
const;
138 void operator()(
const Pathname &file )
const;
162 void operator()(
const Pathname &file )
const;
175 #endif // ZYPP_FILECHECKER_H
Checks for nothing Used as the default checker.
const std::string & msg() const
Return the message string provided to the ctor.
Checks for the validity of a signature.
SignatureFileChecker()
Default Constructor.
std::list< FileChecker > _checkers
void operator()(const Pathname &file) const
Try to validate the file.
void addPublicKey(const PublicKey &publickey, const KeyContext &keycontext=KeyContext())
add a public key to the list of known keys
void operator()(const Pathname &file) const
std::ostream & operator<<(std::ostream &str, const Exception &obj)
void add(const FileChecker &checker)
void operator()(const Pathname &file) const
Checker composed of more checkers.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
Base class for Exception.
std::string checksum(const Pathname &file, const std::string &algorithm)
Compute a files checksum.
void operator()(const Pathname &file) const
Try to validate the file.
function< void(const Pathname &file)> FileChecker
Functor signature used to check files.
ChecksumFileChecker(const CheckSum &checksum)
Constructor.
void setKeyContext(const KeyContext &keycontext)
Set context for this checker.
FileCheckException(const std::string &msg)