GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgKeyManager.h
1
29#ifndef GPGFRONTEND_ZH_CN_TS_GPGKEYMANAGER_H
30#define GPGFRONTEND_ZH_CN_TS_GPGKEYMANAGER_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 GpgKeyManager
43 : public SingletonFunctionObject<GpgKeyManager> {
44 public:
50 explicit GpgKeyManager(
52
60 bool SignKey(const GpgKey& target, KeyArgsList& keys, const std::string& uid,
61 const std::unique_ptr<boost::posix_time::ptime>& expires);
62
71 bool RevSign(const GpgFrontend::GpgKey& key,
72 const GpgFrontend::SignIdArgsListPtr& signature_id);
73
83 bool SetExpire(const GpgKey& key, std::unique_ptr<GpgSubKey>& subkey,
84 std::unique_ptr<boost::posix_time::ptime>& expires);
85
86 private:
87 GpgContext& ctx_ =
89};
90
91} // namespace GpgFrontend
92
93#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYMANAGER_H
Definition: GpgContext.h:60
Definition: GpgKeyManager.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