GpgFrontend-Doxygen/docs/latex/GpgBasicOperator_8h_source.tex
2022-05-09 03:59:26 +08:00

60 lines
4.1 KiB
TeX

\hypertarget{GpgBasicOperator_8h_source}{}\doxysection{Gpg\+Basic\+Operator.\+h}
\label{GpgBasicOperator_8h_source}\index{src/core/function/gpg/GpgBasicOperator.h@{src/core/function/gpg/GpgBasicOperator.h}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_ZH\_CN\_TS\_BASICOPERATOR\_H}}
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_ZH\_CN\_TS\_BASICOPERATOR\_H}}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include "{}core/GpgConstants.h"{}}}
\DoxyCodeLine{33 \textcolor{preprocessor}{\#include "{}core/GpgContext.h"{}}}
\DoxyCodeLine{34 \textcolor{preprocessor}{\#include "{}core/GpgFunctionObject.h"{}}}
\DoxyCodeLine{35 \textcolor{preprocessor}{\#include "{}core/GpgModel.h"{}}}
\DoxyCodeLine{36 }
\DoxyCodeLine{37 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{}
\DoxyCodeLine{38 }
\DoxyCodeLine{43 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgBasicOperator}{GpgBasicOperator}}}
\DoxyCodeLine{44 : \textcolor{keyword}{public} \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject}{SingletonFunctionObject}}<GpgBasicOperator> \{}
\DoxyCodeLine{45 \textcolor{keyword}{public}:}
\DoxyCodeLine{51 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgBasicOperator}{GpgBasicOperator}}(}
\DoxyCodeLine{52 \textcolor{keywordtype}{int} channel = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a50e2b3794d6553f4231eaec72d9d0a50}{SingletonFunctionObject::GetDefaultChannel}}());}
\DoxyCodeLine{53 }
\DoxyCodeLine{66 gpg\_error\_t Encrypt(KeyListPtr keys, BypeArrayRef in\_buffer,}
\DoxyCodeLine{67 ByteArrayPtr\& out\_buffer, GpgEncrResult\& result);}
\DoxyCodeLine{68 }
\DoxyCodeLine{77 gpg\_error\_t EncryptSymmetric(BypeArrayRef in\_buffer, ByteArrayPtr\& out\_buffer,}
\DoxyCodeLine{78 GpgEncrResult\& result);}
\DoxyCodeLine{79 }
\DoxyCodeLine{93 gpgme\_error\_t EncryptSign(KeyListPtr keys, KeyListPtr signers,}
\DoxyCodeLine{94 BypeArrayRef in\_buffer, ByteArrayPtr\& out\_buffer,}
\DoxyCodeLine{95 GpgEncrResult\& encr\_result,}
\DoxyCodeLine{96 GpgSignResult\& sign\_result);}
\DoxyCodeLine{97 }
\DoxyCodeLine{106 gpgme\_error\_t Decrypt(BypeArrayRef in\_buffer, ByteArrayPtr\& out\_buffer,}
\DoxyCodeLine{107 GpgDecrResult\& result);}
\DoxyCodeLine{108 }
\DoxyCodeLine{119 gpgme\_error\_t DecryptVerify(BypeArrayRef in\_buffer, ByteArrayPtr\& out\_buffer,}
\DoxyCodeLine{120 GpgDecrResult\& decrypt\_result,}
\DoxyCodeLine{121 GpgVerifyResult\& verify\_result);}
\DoxyCodeLine{122 }
\DoxyCodeLine{131 gpgme\_error\_t Verify(BypeArrayRef in\_buffer, ByteArrayPtr\& sig\_buffer,}
\DoxyCodeLine{132 GpgVerifyResult\& result) \textcolor{keyword}{const};}
\DoxyCodeLine{133 }
\DoxyCodeLine{154 gpg\_error\_t Sign(KeyListPtr signers, BypeArrayRef in\_buffer,}
\DoxyCodeLine{155 ByteArrayPtr\& out\_buffer, gpgme\_sig\_mode\_t mode,}
\DoxyCodeLine{156 GpgSignResult\& result);}
\DoxyCodeLine{157 }
\DoxyCodeLine{164 \textcolor{keywordtype}{void} SetSigners(KeyArgsList\& signers);}
\DoxyCodeLine{165 }
\DoxyCodeLine{171 std::unique\_ptr<KeyArgsList> GetSigners();}
\DoxyCodeLine{172 }
\DoxyCodeLine{173 \textcolor{keyword}{private}:}
\DoxyCodeLine{174 \mbox{\hyperlink{classGpgFrontend_1_1GpgContext}{GpgContext}}\& ctx\_ = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a8a378452876a685af879e04bfa456b6f}{GpgContext::GetInstance}}(}
\DoxyCodeLine{175 \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_aa99440b9177f5d0c18840f08a40d64b7}{SingletonFunctionObject::GetChannel}}()); }
\DoxyCodeLine{176 \};}
\DoxyCodeLine{177 \} \textcolor{comment}{// namespace GpgFrontend}}
\DoxyCodeLine{178 }
\DoxyCodeLine{179 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_ZH\_CN\_TS\_BASICOPERATOR\_H}}
\end{DoxyCode}