GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgVerifyResultAnalyse.h
1 
29 #pragma once
30 
31 #include "GpgResultAnalyse.h"
32 #include "core/model/GpgVerifyResult.h"
33 
34 namespace GpgFrontend {
39 class GPGFRONTEND_CORE_EXPORT GpgVerifyResultAnalyse : public GpgResultAnalyse {
40  Q_OBJECT
41  public:
48  explicit GpgVerifyResultAnalyse(GpgError error, GpgVerifyResult result);
49 
55  auto GetSignatures() const -> gpgme_signature_t;
56 
62  auto TakeChargeOfResult() -> GpgVerifyResult;
63 
64  protected:
69  void doAnalyse() final;
70 
71  private:
80  auto print_signer(QTextStream &stream, GpgSignature sign) -> bool;
81 
90  auto print_signer_without_key(QTextStream &stream, GpgSignature sign) -> bool;
91 
92  GpgError error_;
93  GpgVerifyResult result_;
94 };
95 
96 } // namespace GpgFrontend
Definition: GpgResultAnalyse.h:36
Definition: GpgSignature.h:39
Definition: GpgVerifyResultAnalyse.h:39
Definition: GpgVerifyResult.h:36
Definition: app.cpp:39
gpgme_error_t GpgError
gpgme error
Definition: GpgTypedef.h:42