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