GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
29 #ifndef GPGFRONTEND_ZH_CN_TS_GPGKEYMANAGER_H
30 #define GPGFRONTEND_ZH_CN_TS_GPGKEYMANAGER_H
32 #include "core/GpgContext.h"
33 #include "core/GpgFunctionObject.h"
34 #include "core/GpgModel.h"
60 bool SignKey(
const GpgKey& target, KeyArgsList& keys,
const std::string& uid,
61 const std::unique_ptr<boost::posix_time::ptime>& expires);
72 const GpgFrontend::SignIdArgsListPtr& signature_id);
83 bool SetExpire(
const GpgKey& key, std::unique_ptr<GpgSubKey>& subkey,
84 std::unique_ptr<boost::posix_time::ptime>& expires);
93 #endif // GPGFRONTEND_ZH_CN_TS_GPGKEYMANAGER_H
Definition: GpgFunctionObject.h:148
Definition: CoreCommonUtil.cpp:29
static GpgBasicOperator & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
bool SetExpire(const GpgKey &key, std::unique_ptr< GpgSubKey > &subkey, std::unique_ptr< boost::posix_time::ptime > &expires)
Set the Expire object.
Definition: GpgKeyManager.cpp:78
GPGFRONTEND_CORE_EXPORT GpgError check_gpg_error(GpgError err)
Definition: GpgConstants.cpp:54
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:239
void SetSigners(KeyArgsList &signers)
Set the private key for signatures, this operation is a global operation.
Definition: GpgBasicOperator.cpp:178
Definition: GpgContext.h:59
bool SignKey(const GpgKey &target, KeyArgsList &keys, const std::string &uid, const std::unique_ptr< boost::posix_time::ptime > &expires)
Sign a key pair(actually a certain uid)
Definition: GpgKeyManager.cpp:40
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:232
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:63
GpgKeyManager(int channel=SingletonFunctionObject::GetDefaultChannel())
Construct a new Gpg Key Manager object.
Definition: GpgKeyManager.cpp:37
Definition: GpgKeyManager.h:42
bool RevSign(const GpgFrontend::GpgKey &key, const GpgFrontend::SignIdArgsListPtr &signature_id)
Definition: GpgKeyManager.cpp:62