diff options
author | saturneric <[email protected]> | 2023-11-06 12:49:44 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-11-06 12:49:44 +0000 |
commit | 889cb8092381b073a0f4a0411a4ede04cd7bdd14 (patch) | |
tree | 87ae80ee7be8b426afe869baff7c99384bbafaaa /src/core/GpgModel.h | |
parent | refactor: clean up core's codes (diff) | |
download | GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.tar.gz GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.zip |
refactor: improve the code structure of core
Diffstat (limited to 'src/core/GpgModel.h')
-rw-r--r-- | src/core/GpgModel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/GpgModel.h b/src/core/GpgModel.h index d227e25d..facb1f72 100644 --- a/src/core/GpgModel.h +++ b/src/core/GpgModel.h @@ -28,13 +28,14 @@ #pragma once -#include "core/GpgConstants.h" #include "core/model/GpgData.h" #include "core/model/GpgKey.h" #include "core/model/GpgSignature.h" namespace GpgFrontend { +using GpgError = gpgme_error_t; ///< + using KeyId = std::string; ///< using SubkeyId = std::string; ///< using KeyIdArgsList = std::vector<KeyId>; ///< @@ -46,7 +47,7 @@ using SignIdArgsListPtr = std::unique_ptr<SignIdArgsList>; ///< using KeyFprArgsListPtr = std::unique_ptr<std::vector<std::string>>; ///< using KeyArgsList = std::vector<GpgKey>; ///< using KeyListPtr = std::shared_ptr<KeyArgsList>; ///< -using GpgKeyLinkList = std::list<GpgFrontend::GpgKey>; ///< +using GpgKeyLinkList = std::list<GpgKey>; ///< using KeyLinkListPtr = std::unique_ptr<GpgKeyLinkList>; ///< using KeyPtr = std::unique_ptr<GpgKey>; ///< using KeyPtrArgsList = const std::initializer_list<KeyPtr>; ///< |