From c480f6bbd460af903f9dc2048fb9485dde38c573 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sat, 11 Feb 2023 20:26:23 +0800 Subject: feat: add more gnupg operations --- src/core/function/gpg/GpgAdvancedOperator.h | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'src/core/function/gpg/GpgAdvancedOperator.h') diff --git a/src/core/function/gpg/GpgAdvancedOperator.h b/src/core/function/gpg/GpgAdvancedOperator.h index 267f1614..5325020a 100644 --- a/src/core/function/gpg/GpgAdvancedOperator.h +++ b/src/core/function/gpg/GpgAdvancedOperator.h @@ -49,14 +49,62 @@ class GPGFRONTEND_CORE_EXPORT GpgAdvancedOperator explicit GpgAdvancedOperator( int channel = SingletonFunctionObject::GetDefaultChannel()); + /** + * @brief + * + * @return true + * @return false + */ bool ClearGpgPasswordCache(); + /** + * @brief + * + * @return true + * @return false + */ bool ReloadGpgComponents(); + /** + * @brief + * + * @return true + * @return false + */ bool RestartGpgComponents(); + /** + * @brief + * + * @return true + * @return false + */ bool ResetConfigures(); + /** + * @brief + * + * @return true + * @return false + */ + bool StartGpgAgent(); + + /** + * @brief + * + * @return true + * @return false + */ + bool StartDirmngr(); + + /** + * @brief + * + * @return true + * @return false + */ + bool StartKeyBoxd(); + private: GpgContext& ctx_ = GpgContext::GetInstance( SingletonFunctionObject::GetChannel()); ///< Corresponding context -- cgit v1.2.3