GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgUIDOperator.h
1 
29 #pragma once
30 
31 #include "core/function/gpg/GpgContext.h"
32 #include "core/typedef/GpgTypedef.h"
33 
34 namespace GpgFrontend {
39 class GPGFRONTEND_CORE_EXPORT GpgUIDOperator
40  : public SingletonFunctionObject<GpgUIDOperator> {
41  public:
47  explicit GpgUIDOperator(
49 
56  auto AddUID(const GpgKey& key, const QString& uid) -> bool;
57 
66  auto AddUID(const GpgKey& key, const QString& name, const QString& comment,
67  const QString& email) -> bool;
68 
75  auto RevUID(const GpgKey& key, const QString& uid) -> bool;
76 
83  auto SetPrimaryUID(const GpgKey& key, const QString& uid) -> bool;
84 
85  private:
86  GpgContext& ctx_ =
88 };
89 
90 } // namespace GpgFrontend
Definition: GpgContext.h:58
Definition: GpgKey.h:40
Definition: GpgUIDOperator.h:40
Definition: GpgFunctionObject.h:58
auto GetChannel() const -> int
Get the Channel object.
Definition: GpgFunctionObject.h:140
static auto GetInstance(int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> GpgContext &
Get the Instance object.
Definition: GpgFunctionObject.h:80
static auto GetDefaultChannel() -> int
Get the Default Channel object.
Definition: GpgFunctionObject.h:131
Definition: app.cpp:39