# GpgFrontend Project: src/core/function/gpg/GpgUIDOperator.h Source File

GpgUIDOperator.h
#ifndef GPGFRONTEND_ZH_CN_TS_UIDOPERATOR_H
#define GPGFRONTEND_ZH_CN_TS_UIDOPERATOR_H
#include "core/GpgContext.h"
#include "core/GpgModel.h"
namespace GpgFrontend {
class GPGFRONTEND_CORE_EXPORT GpgUIDOperator
: public SingletonFunctionObject<GpgUIDOperator> {
public:
explicit GpgUIDOperator(
int channel = SingletonFunctionObject::GetDefaultChannel());
bool AddUID(const GpgKey& key, const std::string& uid);
bool AddUID(const GpgKey& key, const std::string& name,
const std::string& comment, const std::string& email);
bool RevUID(const GpgKey& key, const std::string& uid);
bool SetPrimaryUID(const GpgKey& key, const std::string& uid);
private:
GpgContext& ctx_ =
GpgContext::GetInstance(SingletonFunctionObject::GetChannel());
};
} // namespace GpgFrontend
#endif // GPGFRONTEND_ZH_CN_TS_UIDOPERATOR_H
GpgFrontend::GpgContext
Definition: GpgContext.h:64
GpgFrontend::GpgKey
Definition: GpgKey.h:43
GpgFrontend::GpgUIDOperator
Definition: GpgUIDOperator.h:41
GpgFrontend::SingletonFunctionObject
Definition: GpgFunctionObject.h:150
GpgFrontend::SingletonFunctionObject::GetDefaultChannel
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:251
GpgFrontend::SingletonFunctionObject< GpgContext >::GetInstance
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:172
GpgFrontend::SingletonFunctionObject::GetChannel
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:258
GpgFrontend
Definition: CoreCommonUtil.cpp:31