diff options
author | Saturneric <[email protected]> | 2021-10-02 14:08:50 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-10-02 14:16:27 +0000 |
commit | 3c65d087eeee687ac01af2e80f3dd538f9a2c230 (patch) | |
tree | 1e860dc6343c1897e2224a002f2ca44c574381b3 /src/gpg/GpgModel.h | |
parent | The basic functions of the core pass the test. (diff) | |
download | GpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.tar.gz GpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.zip |
UI Framework Modified.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/GpgModel.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/gpg/GpgModel.h b/src/gpg/GpgModel.h index fcdadb5c..7b77d678 100644 --- a/src/gpg/GpgModel.h +++ b/src/gpg/GpgModel.h @@ -29,22 +29,41 @@ #include "gpg/model/GpgKey.h" #include <list> +#include <utility> namespace GpgFrontend { -using KeyIdArgsListPtr = std::unique_ptr<std::vector<std::string>>; +using KeyId = std::string; + +using SubkeyId = std::string; + +using KeyIdArgsList = std::vector<KeyId>; + +using KeyIdArgsListPtr = std::unique_ptr<KeyIdArgsList>; + +using UIDArgsList = std::vector<std::string>; + +using UIDArgsListPtr = std::unique_ptr<UIDArgsList>; + +// KeyID/UID +using SignIdArgsList = std::vector<std::pair<std::string, std::string>>; + +using SignIdArgsListPtr = std::unique_ptr<SignIdArgsList>; using KeyFprArgsListPtr = std::unique_ptr<std::vector<std::string>>; -using KeyArgsList = const std::vector<GpgKey>; +using KeyArgsList = std::vector<GpgKey>; using KeyListPtr = std::unique_ptr<KeyArgsList>; -using GpgKeyLinkList = const std::list<GpgFrontend::GpgKey>; +using GpgKeyLinkList = std::list<GpgFrontend::GpgKey>; + +using KeyLinkListPtr = std::unique_ptr<GpgKeyLinkList>; using KeyPtr = std::unique_ptr<GpgKey>; using KeyPtrArgsList = const std::initializer_list<KeyPtr>; + } // namespace GpgFrontend #endif // GPGFRONTEND_ZH_CN_TS_GPGMODEL_H |