diff options
author | Saturneric <[email protected]> | 2021-09-19 15:54:06 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-19 15:54:06 +0000 |
commit | 0f0b9510bbb8be150984bfa8af03f43e1d4135d3 (patch) | |
tree | 6436834f05ac0fe32646dbf47488d25a98ddf8fa /src/gpg/function/GpgKeyGetter.h | |
parent | Continue to write core test code. (diff) | |
download | GpgFrontend-0f0b9510bbb8be150984bfa8af03f43e1d4135d3.tar.gz GpgFrontend-0f0b9510bbb8be150984bfa8af03f43e1d4135d3.zip |
Support multi-channel Context.
Make the test configurable.
Other modifications.
Diffstat (limited to 'src/gpg/function/GpgKeyGetter.h')
-rw-r--r-- | src/gpg/function/GpgKeyGetter.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gpg/function/GpgKeyGetter.h b/src/gpg/function/GpgKeyGetter.h index 3a291d2d..af22e2f2 100644 --- a/src/gpg/function/GpgKeyGetter.h +++ b/src/gpg/function/GpgKeyGetter.h @@ -32,19 +32,19 @@ namespace GpgFrontend { class GpgKeyGetter : public SingletonFunctionObject<GpgKeyGetter> { + public: + GpgKeyGetter() = default; -public: - GpgKey GetKey(const std::string &fpr); + GpgKey GetKey(const std::string& fpr); - GpgKey GetPubkey(const std::string &fpr); + GpgKey GetPubkey(const std::string& fpr); KeyListPtr FetchKey(); - GpgKeyGetter() = default; - -private: - GpgContext &ctx = GpgContext::GetInstance(); + private: + GpgContext& ctx = + GpgContext::GetInstance(SingletonFunctionObject::GetDefaultChannel()); }; -} // namespace GpgFrontend +} // namespace GpgFrontend -#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H +#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H |