GpgUID.h
#ifndef GPGFRONTEND_GPGUID_H
#define GPGFRONTEND_GPGUID_H
#include "GpgKeySignature.h"
#include "GpgTOFUInfo.h"
namespace GpgFrontend {
class GPGFRONTEND_CORE_EXPORT GpgUID {
public:
[[nodiscard]] std::string GetName() const;
[[nodiscard]] std::string GetEmail() const;
[[nodiscard]] std::string GetComment() const;
[[nodiscard]] std::string GetUID() const;
[[nodiscard]] bool GetRevoked() const;
[[nodiscard]] bool GetInvalid() const;
[[nodiscard]] std::unique_ptr<std::vector<GpgTOFUInfo>> GetTofuInfos() const;
[[nodiscard]] std::unique_ptr<std::vector<GpgKeySignature>> GetSignatures()
const;
GpgUID();
explicit GpgUID(gpgme_user_id_t uid);
GpgUID(GpgUID &&o) noexcept;
GpgUID(const GpgUID &) = delete;
GpgUID &operator=(GpgUID &&o) noexcept;
GpgUID &operator=(const GpgUID &) = delete;
private:
using UidRefHandler =
std::unique_ptr<struct _gpgme_user_id,
std::function<void(gpgme_user_id_t)>>;
UidRefHandler uid_ref_ = nullptr;
};
} // namespace GpgFrontend
#endif // GPGFRONTEND_GPGUID_H
GpgFrontend::GpgUID::GetRevoked
bool GetRevoked() const
Definition: GpgUID.cpp:48
GpgFrontend
Definition: CoreCommonUtil.cpp:29
GpgFrontend::GpgUID::GetInvalid
bool GetInvalid() const
Definition: GpgUID.cpp:50
GpgFrontend::GpgKeySignature
Definition: GpgKeySignature.h:47
GpgFrontend::GpgUID::GetComment
std::string GetComment() const
Definition: GpgUID.cpp:42
GpgFrontend::GpgUID::GpgUID
GpgUID()
Construct a new Gpg U I D object.
GpgFrontend::GpgTOFUInfo
Definition: GpgTOFUInfo.h:39
GpgFrontend::GpgUID::GetName
std::string GetName() const
Definition: GpgUID.cpp:38
GpgFrontend::GpgUID::GetTofuInfos
std::unique_ptr< std::vector< GpgTOFUInfo > > GetTofuInfos() const
Definition: GpgUID.cpp:53
GpgFrontend::GpgUID::GetUID
std::string GetUID() const
Definition: GpgUID.cpp:46
GpgFrontend::GpgUID
Definition: GpgUID.h:40
GpgFrontend::GpgUID::GetEmail
std::string GetEmail() const
Definition: GpgUID.cpp:40
GpgFrontend::GpgUID::GetSignatures
std::unique_ptr< std::vector< GpgKeySignature > > GetSignatures() const
Definition: GpgUID.cpp:64