diff options
author | Saturneric <[email protected]> | 2021-09-05 15:02:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-05 15:02:19 +0000 |
commit | 39440522111abf3adeef6b56cb23722119fbf3c2 (patch) | |
tree | 5979b3808d58c8c576e288004877d826556b4cda /src/gpg/function/GpgKeyGetter.h | |
parent | Modified ResultAnalyse. (diff) | |
download | GpgFrontend-39440522111abf3adeef6b56cb23722119fbf3c2.tar.gz GpgFrontend-39440522111abf3adeef6b56cb23722119fbf3c2.zip |
Rewrite the core.
Adjust the structure.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/function/GpgKeyGetter.h (renamed from include/gpg/function/GpgKeyGetter.h) | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/include/gpg/function/GpgKeyGetter.h b/src/gpg/function/GpgKeyGetter.h index 87307f1b..a848b2f8 100644 --- a/include/gpg/function/GpgKeyGetter.h +++ b/src/gpg/function/GpgKeyGetter.h @@ -25,31 +25,26 @@ #ifndef GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H #define GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H -#include "GpgFrontend.h" -#include "gpg/GpgModel.h" #include "gpg/GpgContext.h" #include "gpg/GpgFunctionObject.h" +#include "gpg/GpgModel.h" namespace GpgFrontend { - class GpgKeyGetter : public SingletonFunctionObject<GpgKeyGetter>{ - - public: - - GpgKey &&getKey(const std::string &fpr); - - GpgKey &&getPubkey(const std::string &fpr); - - GpgKeyGetter() = default; - - private: +class GpgKeyGetter : public SingletonFunctionObject<GpgKeyGetter> { - GpgContext &ctx = GpgContext::getInstance(); +public: + GpgKey &&GetKey(const std::string &fpr); - }; -} + GpgKey &&GetPubkey(const std::string &fpr); + KeyListPtr FetchKey(); + GpgKeyGetter() = default; +private: + GpgContext &ctx = GpgContext::GetInstance(); +}; +} // namespace GpgFrontend -#endif //GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H +#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H |