diff options
Diffstat (limited to '')
-rw-r--r-- | include/gpg/result_analyse/SignResultAnalyse.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/gpg/result_analyse/SignResultAnalyse.h b/include/gpg/result_analyse/SignResultAnalyse.h new file mode 100644 index 00000000..933089bf --- /dev/null +++ b/include/gpg/result_analyse/SignResultAnalyse.h @@ -0,0 +1,31 @@ +// +// Created by eric on 2021/6/8. +// + +#ifndef GPGFRONTEND_SIGNRESULTANALYSE_H +#define GPGFRONTEND_SIGNRESULTANALYSE_H + +#include "GpgFrontend.h" + +class SignResultAnalyse { +public: + SignResultAnalyse(gpgme_sign_result_t result); + + [[nodiscard]] const QString &getResultReport() const; + + [[nodiscard]] int getStatus() const; + +private: + QString resultText; + QTextStream stream{&resultText}; + + int status = 1; + + void setStatus(int mStatus) { + if(mStatus < status) status = mStatus; + } + + +}; + +#endif //GPGFRONTEND_SIGNRESULTANALYSE_H |