GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgGenerateKeyResult.h
1 
29 #pragma once
30 
31 #include "core/GpgFrontendCore.h"
32 #include "core/GpgFrontendCoreExport.h"
33 
34 namespace GpgFrontend {
35 
36 class GPGFRONTEND_CORE_EXPORT GpgGenerateKeyResult {
37  public:
38  auto IsGood() -> bool;
39 
40  auto GetFingerprint() -> QString const;
41 
42  explicit GpgGenerateKeyResult(gpgme_genkey_result_t);
43 
45 
47 
48  auto operator=(const GpgGenerateKeyResult &) -> GpgGenerateKeyResult &;
49 
50  virtual ~GpgGenerateKeyResult();
51 
52  private:
53  using ResultRefHandler =
54  std::shared_ptr<struct _gpgme_op_genkey_result>;
55 
56  ResultRefHandler result_ref_ = nullptr;
57 };
58 
59 } // namespace GpgFrontend
Definition: GpgGenerateKeyResult.h:36
Definition: app.cpp:39