\hypertarget{GpgKeyManager_8h_source}{}\doxysection{Gpg\+Key\+Manager.\+h} \label{GpgKeyManager_8h_source}\index{src/core/function/gpg/GpgKeyManager.h@{src/core/function/gpg/GpgKeyManager.h}} \begin{DoxyCode}{0} \DoxyCodeLine{1 } \DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_ZH\_CN\_TS\_GPGKEYMANAGER\_H}} \DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_ZH\_CN\_TS\_GPGKEYMANAGER\_H}} \DoxyCodeLine{31 } \DoxyCodeLine{32 \textcolor{preprocessor}{\#include "{}core/GpgContext.h"{}}} \DoxyCodeLine{33 \textcolor{preprocessor}{\#include "{}core/GpgFunctionObject.h"{}}} \DoxyCodeLine{34 \textcolor{preprocessor}{\#include "{}core/GpgModel.h"{}}} \DoxyCodeLine{35 } \DoxyCodeLine{36 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{} \DoxyCodeLine{37 } \DoxyCodeLine{42 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgKeyManager}{GpgKeyManager}}} \DoxyCodeLine{43 : \textcolor{keyword}{public} \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject}{SingletonFunctionObject}} \{} \DoxyCodeLine{44 \textcolor{keyword}{public}:} \DoxyCodeLine{50 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgKeyManager}{GpgKeyManager}}(} \DoxyCodeLine{51 \textcolor{keywordtype}{int} channel = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a50e2b3794d6553f4231eaec72d9d0a50}{SingletonFunctionObject::GetDefaultChannel}}());} \DoxyCodeLine{52 } \DoxyCodeLine{60 \textcolor{keywordtype}{bool} SignKey(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgKey}}\& target, KeyArgsList\& keys, \textcolor{keyword}{const} std::string\& uid,} \DoxyCodeLine{61 \textcolor{keyword}{const} std::unique\_ptr\& expires);} \DoxyCodeLine{62 } \DoxyCodeLine{71 \textcolor{keywordtype}{bool} RevSign(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgFrontend::GpgKey}}\& key,} \DoxyCodeLine{72 \textcolor{keyword}{const} GpgFrontend::SignIdArgsListPtr\& signature\_id);} \DoxyCodeLine{73 } \DoxyCodeLine{83 \textcolor{keywordtype}{bool} SetExpire(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgKey}}\& key, std::unique\_ptr\& subkey,} \DoxyCodeLine{84 std::unique\_ptr\& expires);} \DoxyCodeLine{85 } \DoxyCodeLine{86 \textcolor{keyword}{private}:} \DoxyCodeLine{87 \mbox{\hyperlink{classGpgFrontend_1_1GpgContext}{GpgContext}}\& ctx\_ =} \DoxyCodeLine{88 \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a8a378452876a685af879e04bfa456b6f}{GpgContext::GetInstance}}(\mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_aa99440b9177f5d0c18840f08a40d64b7}{SingletonFunctionObject::GetChannel}}()); } \DoxyCodeLine{89 \};} \DoxyCodeLine{90 } \DoxyCodeLine{91 \} \textcolor{comment}{// namespace GpgFrontend}} \DoxyCodeLine{92 } \DoxyCodeLine{93 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_ZH\_CN\_TS\_GPGKEYMANAGER\_H}} \end{DoxyCode}