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;
GpgUID()
Construct a new Gpg U I D object.
GpgUID(const GpgUID &)=delete
Construct a new Gpg U I D object.
GpgUID & operator=(const GpgUID &)=delete
GpgUID & operator=(GpgUID &&o) noexcept
Definition: CoreCommonUtil.cpp:29