diff options
Diffstat (limited to 'include/gpg/result_analyse/ResultAnalyse.h')
-rw-r--r-- | include/gpg/result_analyse/ResultAnalyse.h | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/include/gpg/result_analyse/ResultAnalyse.h b/include/gpg/result_analyse/ResultAnalyse.h index da2e5676..0ee569c6 100644 --- a/include/gpg/result_analyse/ResultAnalyse.h +++ b/include/gpg/result_analyse/ResultAnalyse.h @@ -26,23 +26,34 @@ #include "GpgFrontend.h" -class ResultAnalyse : public QObject { -Q_OBJECT -public: - ResultAnalyse() = default; +namespace GpgFrontend { - [[nodiscard]] const QString &getResultReport() const; + class ResultAnalyse : public QObject { + Q_OBJECT + public: + ResultAnalyse() = default; - [[nodiscard]] int getStatus() const; + [[nodiscard]] const QString &getResultReport(); -protected: - QString resultText; - QTextStream stream{&resultText}; + [[nodiscard]] int getStatus(); - int status = 1; + void analyse(); - void setStatus(int mStatus); -}; + protected: + + virtual void do_analyse() = 0; + + QString resultText; + QTextStream stream{&resultText}; + + int status = 1; + + bool analysed_ = false; + + void setStatus(int mStatus); + }; + +} #endif //GPGFRONTEND_RESULTANALYSE_H |