diff --git a/lang/qt/src/util.h b/lang/qt/src/util.h index c6aa87ce..6aba62e6 100644 --- a/lang/qt/src/util.h +++ b/lang/qt/src/util.h @@ -36,6 +36,7 @@ #include +#include #include #include @@ -55,4 +56,12 @@ std::vector toStrings(const QStringList &l); QStringList toFingerprints(const std::vector &keys); +template +std::string toLogString(const Result &result) +{ + std::stringstream stream; + stream << result; + return stream.str(); +} + #endif // __QGPGME_UTIL_H__