diff options
author | saturneric <[email protected]> | 2023-12-03 20:25:21 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-03 20:25:21 +0000 |
commit | 054e6e28cca2517dda2319ef683314b3318c39a6 (patch) | |
tree | ae9ff4a9fe280f3640ca249bad45ab250cfd1610 /src/core/function/gpg/GpgContext.h | |
parent | fix: slove issues in key/subkey generation (diff) | |
download | GpgFrontend-054e6e28cca2517dda2319ef683314b3318c39a6.tar.gz GpgFrontend-054e6e28cca2517dda2319ef683314b3318c39a6.zip |
feat: standarized and speed up app env loading process
Diffstat (limited to 'src/core/function/gpg/GpgContext.h')
-rw-r--r-- | src/core/function/gpg/GpgContext.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/core/function/gpg/GpgContext.h b/src/core/function/gpg/GpgContext.h index 527099fc..ea8c0e6a 100644 --- a/src/core/function/gpg/GpgContext.h +++ b/src/core/function/gpg/GpgContext.h @@ -37,17 +37,16 @@ namespace GpgFrontend { * */ struct GpgContextInitArgs { - std::string db_path = {}; + std::string db_path = {}; ///< - bool test_mode = false; - bool ascii = true; - bool offline_mode = false; - bool auto_import_missing_key = false; + bool test_mode = false; ///< + bool offline_mode = false; ///< + bool auto_import_missing_key = false; ///< - bool custom_gpgconf = false; - std::string custom_gpgconf_path; + bool custom_gpgconf = false; ///< + std::string custom_gpgconf_path; ///< - bool use_pinentry = false; + bool use_pinentry = false; ///< }; /** @@ -67,9 +66,9 @@ class GPGFRONTEND_CORE_EXPORT GpgContext [[nodiscard]] auto Good() const -> bool; - operator gpgme_ctx_t() const; + auto BinaryContext() -> gpgme_ctx_t; - void SetPassphraseCb(gpgme_passphrase_cb_t passphrase_cb) const; + auto DefaultContext() -> gpgme_ctx_t; private: class Impl; |