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
(
48
int
channel =
SingletonFunctionObject::GetDefaultChannel
());
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_ =
87
GpgContext::GetInstance
(
SingletonFunctionObject::GetChannel
());
88
};
89
90
}
// namespace GpgFrontend
GpgFrontend::GpgContext
Definition:
GpgContext.h:58
GpgFrontend::GpgKey
Definition:
GpgKey.h:40
GpgFrontend::GpgUIDOperator
Definition:
GpgUIDOperator.h:40
GpgFrontend::SingletonFunctionObject
Definition:
GpgFunctionObject.h:58
GpgFrontend::SingletonFunctionObject::GetChannel
auto GetChannel() const -> int
Get the Channel object.
Definition:
GpgFunctionObject.h:140
GpgFrontend::SingletonFunctionObject< GpgContext >::GetInstance
static auto GetInstance(int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> GpgContext &
Get the Instance object.
Definition:
GpgFunctionObject.h:80
GpgFrontend::SingletonFunctionObject::GetDefaultChannel
static auto GetDefaultChannel() -> int
Get the Default Channel object.
Definition:
GpgFunctionObject.h:131
GpgFrontend
Definition:
app.cpp:39
src
core
function
gpg
GpgUIDOperator.h
Generated by
1.9.1