diff options
Diffstat (limited to 'src/core/model')
-rw-r--r-- | src/core/model/GpgSubKey.cpp | 2 | ||||
-rw-r--r-- | src/core/model/GpgSubKey.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/core/model/GpgSubKey.cpp b/src/core/model/GpgSubKey.cpp index 98b87706..02411726 100644 --- a/src/core/model/GpgSubKey.cpp +++ b/src/core/model/GpgSubKey.cpp @@ -74,6 +74,8 @@ auto GpgSubKey::IsHasAuthCap() const -> bool { return subkey_ref_->can_authenticate; } +auto GpgSubKey::IsADSK() const -> bool { return subkey_ref_->can_renc; } + auto GpgSubKey::IsPrivateKey() const -> bool { return subkey_ref_->secret; } auto GpgSubKey::IsExpired() const -> bool { return subkey_ref_->expired; } diff --git a/src/core/model/GpgSubKey.h b/src/core/model/GpgSubKey.h index f7d6afd9..affd56bd 100644 --- a/src/core/model/GpgSubKey.h +++ b/src/core/model/GpgSubKey.h @@ -167,7 +167,15 @@ class GPGFRONTEND_CORE_EXPORT GpgSubKey { * * @return QDateTime */ - [[nodiscard]] QDateTime GetExpireTime() const; + [[nodiscard]] auto GetExpireTime() const -> QDateTime; + + /** + * @brief + * + * @return true + * @return false + */ + [[nodiscard]] auto IsADSK() const -> bool; /** * @brief Construct a new Gpg Sub Key object |