diff options
author | saturneric <[email protected]> | 2023-10-30 06:52:29 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-30 06:52:29 +0000 |
commit | 5d7b1d5493df8723259eca0613a9ce0af6077289 (patch) | |
tree | 12c0c820e956a1182d21d5897dc85610732767fd /src/core/function/gpg/GpgFileOpera.h | |
parent | chore: add project infos in cmake config file (diff) | |
download | GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.tar.gz GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.zip |
style: improve code style of core
Diffstat (limited to 'src/core/function/gpg/GpgFileOpera.h')
-rw-r--r-- | src/core/function/gpg/GpgFileOpera.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/function/gpg/GpgFileOpera.h b/src/core/function/gpg/GpgFileOpera.h index 0d8ed0f2..8fd6bb34 100644 --- a/src/core/function/gpg/GpgFileOpera.h +++ b/src/core/function/gpg/GpgFileOpera.h @@ -28,7 +28,6 @@ #pragma once -#include "core/GpgConstants.h" #include "core/GpgModel.h" namespace GpgFrontend { @@ -52,7 +51,7 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { */ static auto EncryptFile(KeyListPtr keys, const std::string& in_path, const std::string& out_path, GpgEncrResult& result, - int channel = GPGFRONTEND_DEFAULT_CHANNEL) + int channel = kGpgfrontendDefaultChannel) -> unsigned int; /** @@ -67,7 +66,7 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { static auto EncryptFileSymmetric(const std::string& in_path, const std::string& out_path, GpgEncrResult& result, - int channel = GPGFRONTEND_DEFAULT_CHANNEL) + int channel = kGpgfrontendDefaultChannel) -> unsigned int; /** @@ -94,7 +93,7 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { */ static auto SignFile(KeyListPtr keys, const std::string& in_path, const std::string& out_path, GpgSignResult& result, - int channel = GPGFRONTEND_DEFAULT_CHANNEL) -> GpgError; + int channel = kGpgfrontendDefaultChannel) -> GpgError; /** * @brief Verify file with public key @@ -107,7 +106,7 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { */ static auto VerifyFile(const std::string& data_path, const std::string& sign_path, GpgVerifyResult& result, - int channel = GPGFRONTEND_DEFAULT_CHANNEL) -> GpgError; + int channel = kGpgfrontendDefaultChannel) -> GpgError; /** * @brief Encrypt and sign file with public key and private key @@ -125,7 +124,7 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { const std::string& in_path, const std::string& out_path, GpgEncrResult& encr_res, GpgSignResult& sign_res, - int channel = GPGFRONTEND_DEFAULT_CHANNEL) + int channel = kGpgfrontendDefaultChannel) -> GpgError; /** |