34 #ifndef __QGPGME_UTIL_H__
35 #define __QGPGME_UTIL_H__
50 static inline gpgme_error_t make_error(gpgme_err_code_t code)
52 return gpgme_err_make((gpgme_err_source_t)22, code);
55 std::vector<std::string> toStrings(
const QStringList &l);
57 QStringList toFingerprints(
const std::vector<GpgME::Key> &keys);
59 template<
class Result>
60 std::string toLogString(
const Result &result)
62 std::stringstream stream;