GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
29 #ifndef GPGFRONTEND_GPGUID_H
30 #define GPGFRONTEND_GPGUID_H
32 #include "GpgKeySignature.h"
33 #include "GpgTOFUInfo.h"
40 class GPGFRONTEND_CORE_EXPORT
GpgUID {
47 [[nodiscard]] std::string GetName()
const;
54 [[nodiscard]] std::string GetEmail()
const;
61 [[nodiscard]] std::string GetComment()
const;
68 [[nodiscard]] std::string GetUID()
const;
76 [[nodiscard]]
bool GetRevoked()
const;
84 [[nodiscard]]
bool GetInvalid()
const;
91 [[nodiscard]] std::unique_ptr<std::vector<GpgTOFUInfo>> GetTofuInfos()
const;
98 [[nodiscard]] std::unique_ptr<std::vector<GpgKeySignature>> GetSignatures()
112 explicit GpgUID(gpgme_user_id_t uid);
143 using UidRefHandler =
144 std::unique_ptr<
struct _gpgme_user_id,
145 std::function<void(gpgme_user_id_t)>>;
147 UidRefHandler uid_ref_ = nullptr;
152 #endif // GPGFRONTEND_GPGUID_H
bool GetRevoked() const
Definition: GpgUID.cpp:48
Definition: CoreCommonUtil.cpp:29
bool GetInvalid() const
Definition: GpgUID.cpp:50
Definition: GpgKeySignature.h:47
std::string GetComment() const
Definition: GpgUID.cpp:42
GpgUID()
Construct a new Gpg U I D object.
Definition: GpgTOFUInfo.h:39
std::string GetName() const
Definition: GpgUID.cpp:38
std::unique_ptr< std::vector< GpgTOFUInfo > > GetTofuInfos() const
Definition: GpgUID.cpp:53
std::string GetUID() const
Definition: GpgUID.cpp:46
std::string GetEmail() const
Definition: GpgUID.cpp:40
std::unique_ptr< std::vector< GpgKeySignature > > GetSignatures() const
Definition: GpgUID.cpp:64