29 #ifndef GPGFRONTEND_GPGSIGNATURE_H
30 #define GPGFRONTEND_GPGSIGNATURE_H
32 #include <boost/date_time/gregorian/greg_date.hpp>
33 #include <boost/date_time/posix_time/conversion.hpp>
35 #include "core/GpgConstants.h"
50 [[nodiscard]] gpgme_validity_t GetValidity()
const;
57 [[nodiscard]] gpgme_error_t GetStatus()
const;
64 [[nodiscard]] gpgme_error_t GetSummary()
const;
71 [[nodiscard]] std::string GetPubkeyAlgo()
const;
78 [[nodiscard]] std::string GetHashAlgo()
const;
85 [[nodiscard]] boost::posix_time::ptime GetCreateTime()
const;
92 [[nodiscard]] boost::posix_time::ptime GetExpireTime()
const;
99 [[nodiscard]] std::string GetFingerprint()
const;
147 using KeySignatrueRefHandler =
148 std::unique_ptr<struct _gpgme_signature,
149 std::function<
void(gpgme_signature_t)>>;
151 KeySignatrueRefHandler signature_ref_ =
nullptr;
Definition: GpgSignature.h:43
~GpgSignature()
Destroy the Gpg Signature object.
GpgSignature()
Construct a new Gpg Signature object.
GpgSignature(GpgSignature &&) noexcept
Construct a new Gpg Signature object.
Definition: CoreCommonUtil.cpp:31