GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgVerifyResultAnalyse.h
1 
29 #ifndef GPGFRONTEND_GPGVERIFYRESULTANALYSE_H
30 #define GPGFRONTEND_GPGVERIFYRESULTANALYSE_H
31 
32 #include "GpgResultAnalyse.h"
33 #include "core/model/GpgKeySignature.h"
34 
35 namespace GpgFrontend {
40 class GPGFRONTEND_CORE_EXPORT GpgVerifyResultAnalyse : public GpgResultAnalyse {
41  public:
48  explicit GpgVerifyResultAnalyse(GpgError error, GpgVerifyResult result);
49 
55  gpgme_signature_t GetSignatures() const;
56 
62  GpgVerifyResult TakeChargeOfResult();
63 
64  private:
69  void do_analyse();
70 
71  private:
80  bool print_signer(std::stringstream &stream, gpgme_signature_t sign);
81 
82  GpgError error_;
83  GpgVerifyResult result_;
84 };
85 
86 } // namespace GpgFrontend
87 
88 #endif // GPGFRONTEND_GPGVERIFYRESULTANALYSE_H
GpgFrontend::beautify_fingerprint
GPGFRONTEND_CORE_EXPORT std::string beautify_fingerprint(BypeArrayConstRef fingerprint)
Definition: GpgConstants.cpp:85
GpgFrontend::GpgVerifyResultAnalyse::GpgVerifyResultAnalyse
GpgVerifyResultAnalyse(GpgError error, GpgVerifyResult result)
Construct a new Verify Result Analyse object.
Definition: GpgVerifyResultAnalyse.cpp:37
GpgFrontend
Definition: CoreCommonUtil.cpp:29
GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance
static GpgKeyGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
GpgFrontend::GpgVerifyResultAnalyse
Definition: GpgVerifyResultAnalyse.h:40
GpgFrontend::GpgResultAnalyse
Definition: GpgResultAnalyse.h:37
GpgFrontend::GpgVerifyResultAnalyse::print_signer
bool print_signer(std::stringstream &stream, gpgme_signature_t sign)
Definition: GpgVerifyResultAnalyse.cpp:175
GpgFrontend::GpgVerifyResultAnalyse::GetSignatures
gpgme_signature_t GetSignatures() const
Get the Signatures object.
Definition: GpgVerifyResultAnalyse.cpp:205
GpgFrontend::GpgKeyGetter::GetKey
GpgKey GetKey(const std::string &fpr)
Get the Key object.
Definition: GpgKeyGetter.cpp:38
GpgFrontend::GpgVerifyResultAnalyse::TakeChargeOfResult
GpgVerifyResult TakeChargeOfResult()
Definition: GpgVerifyResultAnalyse.cpp:212