diff options
author | saturneric <[email protected]> | 2025-04-12 23:03:57 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 23:03:57 +0000 |
commit | 571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990 (patch) | |
tree | a4efe7ba4d5344897c60513c03172d5de0191658 /src/core/model/GpgSubKey.h | |
parent | fix: upgrade to gpgme 1.24.2 (diff) | |
download | GpgFrontend-571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990.tar.gz GpgFrontend-571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990.zip |
feat: add openpgp smart card support
Diffstat (limited to 'src/core/model/GpgSubKey.h')
-rw-r--r-- | src/core/model/GpgSubKey.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/model/GpgSubKey.h b/src/core/model/GpgSubKey.h index fe925f8e..c947b8af 100644 --- a/src/core/model/GpgSubKey.h +++ b/src/core/model/GpgSubKey.h @@ -35,6 +35,8 @@ namespace GpgFrontend { +class GpgKey; + /** * @brief * @@ -232,7 +234,14 @@ class GPGFRONTEND_CORE_EXPORT GpgSubKey : public GpgAbstractKey { * * @return QString */ - [[nodiscard]] auto SmartCardSerialNumber() -> QString; + [[nodiscard]] auto SmartCardSerialNumber() const -> QString; + + /** + * @brief + * + * @return QString + */ + [[nodiscard]] auto Convert2GpgKey() const -> QSharedPointer<GpgKey>; private: QSharedPointer<struct _gpgme_key> key_ref_; |