aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgTOFUInfo.cpp
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.cpp
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.cpp')
-rw-r--r--src/core/model/GpgTOFUInfo.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/core/model/GpgTOFUInfo.cpp b/src/core/model/GpgTOFUInfo.cpp
index 8c83b360..84ce1e29 100644
--- a/src/core/model/GpgTOFUInfo.cpp
+++ b/src/core/model/GpgTOFUInfo.cpp
@@ -28,5 +28,64 @@
#include "GpgTOFUInfo.h"
+GpgFrontend::GpgTOFUInfo::GpgTOFUInfo() = default;
+
GpgFrontend::GpgTOFUInfo::GpgTOFUInfo(gpgme_tofu_info_t tofu_info)
: _tofu_info_ref(tofu_info, [&](gpgme_tofu_info_t tofu_info) {}) {}
+
+GpgFrontend::GpgTOFUInfo::GpgTOFUInfo(GpgTOFUInfo&& o) noexcept {
+ swap(_tofu_info_ref, o._tofu_info_ref);
+}
+
+GpgFrontend::GpgTOFUInfo& GpgFrontend::GpgTOFUInfo::operator=(
+ GpgTOFUInfo&& o) noexcept {
+ swap(_tofu_info_ref, o._tofu_info_ref);
+ return *this;
+};
+
+unsigned GpgFrontend::GpgTOFUInfo::GetValidity() const {
+ return _tofu_info_ref->validity;
+}
+
+unsigned GpgFrontend::GpgTOFUInfo::GetPolicy() const {
+ return _tofu_info_ref->policy;
+}
+
+unsigned long GpgFrontend::GpgTOFUInfo::GetSignCount() const {
+ return _tofu_info_ref->signcount;
+}
+
+unsigned long GpgFrontend::GpgTOFUInfo::GetEncrCount() const {
+ return _tofu_info_ref->encrcount;
+}
+
+unsigned long GpgFrontend::GpgTOFUInfo::GetSignFirst() const {
+ return _tofu_info_ref->signfirst;
+}
+
+/**
+ * @brief
+ *
+ * @return unsigned long
+ */
+unsigned long GpgFrontend::GpgTOFUInfo::GetSignLast() const {
+ return _tofu_info_ref->signlast;
+}
+
+/**
+ * @brief
+ *
+ * @return unsigned long
+ */
+unsigned long GpgFrontend::GpgTOFUInfo::GetEncrLast() const {
+ return _tofu_info_ref->encrlast;
+}
+
+/**
+ * @brief
+ *
+ * @return std::string
+ */
+std::string GpgFrontend::GpgTOFUInfo::GetDescription() const {
+ return _tofu_info_ref->description;
+} \ No newline at end of file