GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgVerifyResult.h
1 
29 #pragma once
30 
31 #include "core/GpgFrontendCoreExport.h"
32 #include "core/typedef/GpgTypedef.h"
33 
34 namespace GpgFrontend {
35 
36 class GPGFRONTEND_CORE_EXPORT GpgVerifyResult {
37  public:
38  [[nodiscard]] auto IsGood() const -> bool;
39 
40  [[nodiscard]] auto GetRaw() const -> gpgme_verify_result_t;
41 
42  [[nodiscard]] auto GetSignature() const -> std::vector<GpgSignature>;
43 
44  explicit GpgVerifyResult(gpgme_verify_result_t);
45 
47 
48  virtual ~GpgVerifyResult();
49 
50  private:
51  std::shared_ptr<struct _gpgme_op_verify_result> result_ref_ = nullptr;
52 };
53 } // namespace GpgFrontend
Definition: GpgVerifyResult.h:36
Definition: app.cpp:39