aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/UIDOperator.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-02-02 07:42:44 +0000
committerSaturneric <[email protected]>2022-02-02 07:42:44 +0000
commit7993367384ff5b63bdbc7b48ebb6817a798e0a2c (patch)
tree5dc6ad66570db2eea9ce044b9962289d287124b4 /src/gpg/function/UIDOperator.cpp
parent<doc>(project): Improve code document-related Settings (diff)
downloadGpgFrontend-7993367384ff5b63bdbc7b48ebb6817a798e0a2c.tar.gz
GpgFrontend-7993367384ff5b63bdbc7b48ebb6817a798e0a2c.zip
<refactor>(src, test): Normalize the naming of partial classes
Diffstat (limited to '')
-rw-r--r--src/gpg/function/GpgUIDOperator.cpp (renamed from src/gpg/function/UIDOperator.cpp)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpg/function/UIDOperator.cpp b/src/gpg/function/GpgUIDOperator.cpp
index a63f5923..4042eacc 100644
--- a/src/gpg/function/UIDOperator.cpp
+++ b/src/gpg/function/GpgUIDOperator.cpp
@@ -26,11 +26,11 @@
*
*/
-#include "gpg/function/UIDOperator.h"
+#include "gpg/function/GpgUIDOperator.h"
#include "boost/format.hpp"
-bool GpgFrontend::UIDOperator::AddUID(const GpgFrontend::GpgKey& key,
+bool GpgFrontend::GpgUIDOperator::AddUID(const GpgFrontend::GpgKey& key,
const std::string& uid) {
auto err = gpgme_op_adduid(ctx_, gpgme_key_t(key), uid.c_str(), 0);
if (check_gpg_error_2_err_code(err) == GPG_ERR_NO_ERROR)
@@ -39,7 +39,7 @@ bool GpgFrontend::UIDOperator::AddUID(const GpgFrontend::GpgKey& key,
return false;
}
-bool GpgFrontend::UIDOperator::RevUID(const GpgFrontend::GpgKey& key,
+bool GpgFrontend::GpgUIDOperator::RevUID(const GpgFrontend::GpgKey& key,
const std::string& uid) {
auto err =
check_gpg_error(gpgme_op_revuid(ctx_, gpgme_key_t(key), uid.c_str(), 0));
@@ -49,7 +49,7 @@ bool GpgFrontend::UIDOperator::RevUID(const GpgFrontend::GpgKey& key,
return false;
}
-bool GpgFrontend::UIDOperator::SetPrimaryUID(const GpgFrontend::GpgKey& key,
+bool GpgFrontend::GpgUIDOperator::SetPrimaryUID(const GpgFrontend::GpgKey& key,
const std::string& uid) {
auto err = check_gpg_error(gpgme_op_set_uid_flag(
ctx_, gpgme_key_t(key), uid.c_str(), "primary", nullptr));
@@ -58,7 +58,7 @@ bool GpgFrontend::UIDOperator::SetPrimaryUID(const GpgFrontend::GpgKey& key,
else
return false;
}
-bool GpgFrontend::UIDOperator::AddUID(const GpgFrontend::GpgKey& key,
+bool GpgFrontend::GpgUIDOperator::AddUID(const GpgFrontend::GpgKey& key,
const std::string& name,
const std::string& comment,
const std::string& email) {