GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgKeyGetter.h
1
29#ifndef GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H
30#define GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H
31
32#include "core/GpgContext.h"
33#include "core/GpgFunctionObject.h"
34#include "core/GpgModel.h"
35
36namespace GpgFrontend {
37
42class GPGFRONTEND_CORE_EXPORT GpgKeyGetter
43 : public SingletonFunctionObject<GpgKeyGetter> {
44 public:
50 explicit GpgKeyGetter(
52
59 GpgKey GetKey(const std::string& fpr);
60
67 KeyListPtr GetKeys(const KeyIdArgsListPtr& ids);
68
75 GpgKey GetPubkey(const std::string& fpr);
76
82 KeyLinkListPtr FetchKey();
83
90 static KeyListPtr GetKeysCopy(const KeyListPtr& keys);
91
98 static KeyLinkListPtr GetKeysCopy(const KeyLinkListPtr& keys);
99
100 private:
105 GpgContext& ctx_ =
107};
108} // namespace GpgFrontend
109
110#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H
Definition: GpgContext.h:60
Definition: GpgKeyGetter.h:43
Definition: GpgKey.h:44
Definition: GpgFunctionObject.h:49
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:127
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:134
Definition: CoreCommonUtil.cpp:29