aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgSignature.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-05-08 13:14:24 +0000
committerGitHub <[email protected]>2022-05-08 13:14:24 +0000
commitf722eec9a898c97e233619a50f6f1a94fef6f94c (patch)
tree26757206ff3e139a10968bd8ae6147ca1a1182a7 /src/core/model/GpgSignature.h
parentMerge pull request #50 from saturneric/develop-2.0.5 (diff)
parentdoc: update translate document. (diff)
downloadGpgFrontend-f722eec9a898c97e233619a50f6f1a94fef6f94c.tar.gz
GpgFrontend-f722eec9a898c97e233619a50f6f1a94fef6f94c.zip
Merge pull request #54 from saturneric/develop-2.0.6v2.0.6
Develop 2.0.6
Diffstat (limited to 'src/core/model/GpgSignature.h')
-rw-r--r--src/core/model/GpgSignature.h42
1 files changed, 13 insertions, 29 deletions
diff --git a/src/core/model/GpgSignature.h b/src/core/model/GpgSignature.h
index 942f0097..2e49c4d7 100644
--- a/src/core/model/GpgSignature.h
+++ b/src/core/model/GpgSignature.h
@@ -40,91 +40,75 @@ namespace GpgFrontend {
* @brief
*
*/
-class GpgSignature {
+class GPGFRONTEND_CORE_EXPORT GpgSignature {
public:
/**
* @brief
*
* @return gpgme_validity_t
*/
- [[nodiscard]] gpgme_validity_t GetValidity() const {
- return signature_ref_->validity;
- }
+ [[nodiscard]] gpgme_validity_t GetValidity() const;
/**
* @brief
*
* @return gpgme_error_t
*/
- [[nodiscard]] gpgme_error_t GetStatus() const {
- return signature_ref_->status;
- }
+ [[nodiscard]] gpgme_error_t GetStatus() const;
/**
* @brief
*
* @return gpgme_error_t
*/
- [[nodiscard]] gpgme_error_t GetSummary() const {
- return signature_ref_->summary;
- }
+ [[nodiscard]] gpgme_error_t GetSummary() const;
/**
* @brief
*
* @return std::string
*/
- [[nodiscard]] std::string GetPubkeyAlgo() const {
- return gpgme_pubkey_algo_name(signature_ref_->pubkey_algo);
- }
+ [[nodiscard]] std::string GetPubkeyAlgo() const;
/**
* @brief
*
* @return std::string
*/
- [[nodiscard]] std::string GetHashAlgo() const {
- return gpgme_hash_algo_name(signature_ref_->hash_algo);
- }
+ [[nodiscard]] std::string GetHashAlgo() const;
/**
* @brief Create a time object
*
* @return boost::posix_time::ptime
*/
- [[nodiscard]] boost::posix_time::ptime GetCreateTime() const {
- return boost::posix_time::from_time_t(signature_ref_->timestamp);
- }
+ [[nodiscard]] boost::posix_time::ptime GetCreateTime() const;
/**
* @brief
*
* @return boost::posix_time::ptime
*/
- [[nodiscard]] boost::posix_time::ptime GetExpireTime() const {
- return boost::posix_time::from_time_t(signature_ref_->exp_timestamp);
- }
+ [[nodiscard]] boost::posix_time::ptime GetExpireTime() const;
/**
* @brief
*
* @return std::string
*/
- [[nodiscard]] std::string GetFingerprint() const {
- return signature_ref_->fpr;
- }
+ [[nodiscard]] std::string GetFingerprint() const;
/**
* @brief Construct a new Gpg Signature object
*
*/
- GpgSignature() = default;
+ GpgSignature();
/**
* @brief Destroy the Gpg Signature object
*
*/
- ~GpgSignature() = default;
+ ~GpgSignature();
/**
* @brief Construct a new Gpg Signature object
@@ -137,7 +121,7 @@ class GpgSignature {
* @brief Construct a new Gpg Signature object
*
*/
- GpgSignature(GpgSignature &&) noexcept = default;
+ GpgSignature(GpgSignature &&) noexcept;
/**
* @brief Construct a new Gpg Signature object
@@ -150,7 +134,7 @@ class GpgSignature {
*
* @return GpgSignature&
*/
- GpgSignature &operator=(GpgSignature &&) noexcept = default;
+ GpgSignature &operator=(GpgSignature &&) noexcept;
/**
* @brief