GpgFrontend Project A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.

GpgResultAnalyse.h
1
28 #ifndef GPGFRONTEND_GPGRESULTANALYSE_H
29 #define GPGFRONTEND_GPGRESULTANALYSE_H
30
31 #include <sstream>
32 #include <string>
33
34 #include "core/GpgConstants.h"
35 namespace GpgFrontend {
36
37 class GPGFRONTEND_CORE_EXPORT GpgResultAnalyse {
38 public:
43 GpgResultAnalyse() = default;
44
50 [[nodiscard]] const std::string GetResultReport() const;
51
57 [[nodiscard]] int GetStatus() const;
58
63 void Analyse();
64
65 protected:
70 virtual void do_analyse() = 0;
71
77 void set_status(int m_status);
78
79 std::stringstream stream_;
80 int status_ = 1;
81 bool analysed_ = false;
82 };
83
84 } // namespace GpgFrontend
85
86 #endif // GPGFRONTEND_GPGRESULTANALYSE_H
GpgFrontend::GpgResultAnalyse
Definition: GpgResultAnalyse.h:37
GpgFrontend::GpgResultAnalyse::GpgResultAnalyse
GpgResultAnalyse()=default
Construct a new Result Analyse object.
GpgFrontend
Definition: CoreCommonUtil.cpp:31