GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgUIDOperator.h
1 
29 #ifndef GPGFRONTEND_ZH_CN_TS_UIDOPERATOR_H
30 #define GPGFRONTEND_ZH_CN_TS_UIDOPERATOR_H
31 
32 #include "core/GpgContext.h"
33 #include "core/GpgModel.h"
34 
35 namespace GpgFrontend {
40 class GPGFRONTEND_CORE_EXPORT GpgUIDOperator
41  : public SingletonFunctionObject<GpgUIDOperator> {
42  public:
48  explicit GpgUIDOperator(
50 
57  bool AddUID(const GpgKey& key, const std::string& uid);
58 
67  bool AddUID(const GpgKey& key, const std::string& name,
68  const std::string& comment, const std::string& email);
69 
76  bool RevUID(const GpgKey& key, const std::string& uid);
77 
84  bool SetPrimaryUID(const GpgKey& key, const std::string& uid);
85 
86  private:
87  GpgContext& ctx_ =
89 };
90 
91 } // namespace GpgFrontend
92 
93 #endif // GPGFRONTEND_ZH_CN_TS_UIDOPERATOR_H
GpgFrontend::SingletonFunctionObject
Definition: GpgFunctionObject.h:159
GpgFrontend
Definition: CoreCommonUtil.cpp:29
GpgFrontend::SingletonFunctionObject< GpgContext >::GetInstance
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:181
GpgFrontend::GpgUIDOperator::SetPrimaryUID
bool SetPrimaryUID(const GpgKey &key, const std::string &uid)
Definition: GpgUIDOperator.cpp:55
GpgFrontend::check_gpg_error
GPGFRONTEND_CORE_EXPORT GpgError check_gpg_error(GpgError err)
Definition: GpgConstants.cpp:57
GpgFrontend::SingletonFunctionObject::GetChannel
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:252
GpgFrontend::GpgContext
Definition: GpgContext.h:59
GpgFrontend::GpgUIDOperator::GpgUIDOperator
GpgUIDOperator(int channel=SingletonFunctionObject::GetDefaultChannel())
Construct a new Gpg UID Opera object.
Definition: GpgUIDOperator.cpp:33
GpgFrontend::GpgUIDOperator::RevUID
bool RevUID(const GpgKey &key, const std::string &uid)
Definition: GpgUIDOperator.cpp:45
GpgFrontend::GpgUIDOperator::AddUID
bool AddUID(const GpgKey &key, const std::string &uid)
Definition: GpgUIDOperator.cpp:36
GpgFrontend::SingletonFunctionObject::GetDefaultChannel
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:245
GpgFrontend::check_gpg_error_2_err_code
GPGFRONTEND_CORE_EXPORT gpg_err_code_t check_gpg_error_2_err_code(gpgme_error_t err, gpgme_error_t predict=GPG_ERR_NO_ERROR)
Definition: GpgConstants.cpp:66
GpgFrontend::GpgUIDOperator
Definition: GpgUIDOperator.h:40
GpgFrontend::GpgKey
Definition: GpgKey.h:44