aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgTOFUInfo.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/GpgTOFUInfo.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/GpgTOFUInfo.h')
-rw-r--r--src/core/model/GpgTOFUInfo.h44
1 files changed, 12 insertions, 32 deletions
diff --git a/src/core/model/GpgTOFUInfo.h b/src/core/model/GpgTOFUInfo.h
index b2fea4cf..b82a4eb2 100644
--- a/src/core/model/GpgTOFUInfo.h
+++ b/src/core/model/GpgTOFUInfo.h
@@ -36,83 +36,68 @@ namespace GpgFrontend {
* @brief
*
*/
-class GpgTOFUInfo {
+class GPGFRONTEND_CORE_EXPORT GpgTOFUInfo {
public:
/**
* @brief
*
* @return unsigned
*/
- [[nodiscard]] unsigned GetValidity() const {
- return _tofu_info_ref->validity;
- }
-
+ [[nodiscard]] unsigned GetValidity() const;
/**
* @brief
*
* @return unsigned
*/
- [[nodiscard]] unsigned GetPolicy() const { return _tofu_info_ref->policy; }
+ [[nodiscard]] unsigned GetPolicy() const;
/**
* @brief
*
* @return unsigned long
*/
- [[nodiscard]] unsigned long GetSignCount() const {
- return _tofu_info_ref->signcount;
- }
+ [[nodiscard]] unsigned long GetSignCount() const;
/**
* @brief
*
* @return unsigned long
*/
- [[nodiscard]] unsigned long GetEncrCount() const {
- return _tofu_info_ref->encrcount;
- }
+ [[nodiscard]] unsigned long GetEncrCount() const;
/**
* @brief
*
* @return unsigned long
*/
- [[nodiscard]] unsigned long GetSignFirst() const {
- return _tofu_info_ref->signfirst;
- }
+ [[nodiscard]] unsigned long GetSignFirst() const;
/**
* @brief
*
* @return unsigned long
*/
- [[nodiscard]] unsigned long GetSignLast() const {
- return _tofu_info_ref->signlast;
- }
+ [[nodiscard]] unsigned long GetSignLast() const;
/**
* @brief
*
* @return unsigned long
*/
- [[nodiscard]] unsigned long GetEncrLast() const {
- return _tofu_info_ref->encrlast;
- }
+ [[nodiscard]] unsigned long GetEncrLast() const;
/**
* @brief
*
* @return std::string
*/
- [[nodiscard]] std::string GetDescription() const {
- return _tofu_info_ref->description;
- }
+ [[nodiscard]] std::string GetDescription() const;
/**
* @brief Construct a new Gpg T O F U Info object
*
*/
- GpgTOFUInfo() = default;
+ GpgTOFUInfo();
/**
* @brief Construct a new Gpg T O F U Info object
@@ -126,9 +111,7 @@ class GpgTOFUInfo {
*
* @param o
*/
- GpgTOFUInfo(GpgTOFUInfo&& o) noexcept {
- swap(_tofu_info_ref, o._tofu_info_ref);
- }
+ GpgTOFUInfo(GpgTOFUInfo&& o) noexcept;
/**
* @brief Construct a new Gpg T O F U Info object
@@ -142,10 +125,7 @@ class GpgTOFUInfo {
* @param o
* @return GpgTOFUInfo&
*/
- GpgTOFUInfo& operator=(GpgTOFUInfo&& o) noexcept {
- swap(_tofu_info_ref, o._tofu_info_ref);
- return *this;
- };
+ GpgTOFUInfo& operator=(GpgTOFUInfo&& o) noexcept;
/**
* @brief