00001 #ifndef GPGCHECK_H 00002 #define GPGCHECK_H 00003 00004 #include <y2util/Pathname.h> 00005 00006 #include <string> 00007 00008 class GPGCheck 00009 { 00010 public: 00011 GPGCheck (); 00012 00016 void set_keyring ( const Pathname& keyring ); 00017 00026 bool check_file ( const Pathname& filename, bool strip = false ); 00027 00038 bool check_file ( const Pathname &sourceFile, 00039 const Pathname &destFile ); 00040 00041 private: 00042 std::string _keyring; 00043 std::string _gnupghome; 00044 }; 00045 00046 #endif