GpgTOFUInfo.h
#ifndef GPGFRONTEND_GPGTOFU_H
#define GPGFRONTEND_GPGTOFU_H
#include "core/GpgConstants.h"
namespace GpgFrontend {
class GPGFRONTEND_CORE_EXPORT GpgTOFUInfo {
public:
[[nodiscard]] unsigned GetValidity() const;
[[nodiscard]] unsigned GetPolicy() const;
[[nodiscard]] unsigned long GetSignCount() const;
[[nodiscard]] unsigned long GetEncrCount() const;
[[nodiscard]] unsigned long GetSignFirst() const;
[[nodiscard]] unsigned long GetSignLast() const;
[[nodiscard]] unsigned long GetEncrLast() const;
[[nodiscard]] std::string GetDescription() const;
GpgTOFUInfo();
explicit GpgTOFUInfo(gpgme_tofu_info_t tofu_info);
GpgTOFUInfo(GpgTOFUInfo&& o) noexcept;
GpgTOFUInfo(const GpgTOFUInfo&) = delete;
GpgTOFUInfo& operator=(GpgTOFUInfo&& o) noexcept;
GpgTOFUInfo& operator=(const GpgTOFUInfo&) = delete;
private:
using SubkeyRefHandler =
std::unique_ptr<struct _gpgme_tofu_info,
std::function<void(gpgme_tofu_info_t)>>;
SubkeyRefHandler _tofu_info_ref = nullptr;
};
} // namespace GpgFrontend
#endif // GPGFRONTEND_GPGTOFU_H
GpgFrontend::GpgTOFUInfo::GpgTOFUInfo
GpgTOFUInfo()
Construct a new Gpg T O F U Info object.
GpgFrontend::GpgTOFUInfo::operator=
GpgTOFUInfo & operator=(GpgTOFUInfo &&o) noexcept
Definition: GpgTOFUInfo.cpp:40
GpgFrontend::GpgTOFUInfo::GetPolicy
unsigned GetPolicy() const
Definition: GpgTOFUInfo.cpp:50
GpgFrontend
Definition: CoreCommonUtil.cpp:29
GpgFrontend::GpgTOFUInfo::GetDescription
std::string GetDescription() const
Definition: GpgTOFUInfo.cpp:89
GpgFrontend::GpgTOFUInfo
Definition: GpgTOFUInfo.h:39
GpgFrontend::GpgTOFUInfo::GetEncrLast
unsigned long GetEncrLast() const
Definition: GpgTOFUInfo.cpp:80
GpgFrontend::GpgTOFUInfo::GetSignLast
unsigned long GetSignLast() const
Definition: GpgTOFUInfo.cpp:71
GpgFrontend::GpgTOFUInfo::GetSignFirst
unsigned long GetSignFirst() const
Definition: GpgTOFUInfo.cpp:62
GpgFrontend::GpgTOFUInfo::GetValidity
unsigned GetValidity() const
Definition: GpgTOFUInfo.cpp:46
GpgFrontend::GpgTOFUInfo::GetEncrCount
unsigned long GetEncrCount() const
Definition: GpgTOFUInfo.cpp:58
GpgFrontend::GpgTOFUInfo::GetSignCount
unsigned long GetSignCount() const
Definition: GpgTOFUInfo.cpp:54