2022-05-08 19:59:26 +00:00
\hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager} { } \doxysection { Gpg\+ Frontend\+ ::Gpg\+ Key\+ Manager Class Reference}
\label { classGpgFrontend_ 1_ 1GpgKeyManager} \index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
Inheritance diagram for Gpg\+ Frontend\+ ::Gpg\+ Key\+ Manager\+ :
2022-05-08 22:01:23 +00:00
\nopagebreak
\begin { figure} [H]
\begin { center}
\leavevmode
\includegraphics [height=550pt] { classGpgFrontend_ 1_ 1GpgKeyManager_ _ inherit_ _ graph}
\end { center}
\end { figure}
2022-05-08 19:59:26 +00:00
Collaboration diagram for Gpg\+ Frontend\+ ::Gpg\+ Key\+ Manager\+ :
2022-05-08 22:01:23 +00:00
\nopagebreak
\begin { figure} [H]
\begin { center}
\leavevmode
2024-01-23 07:22:33 +00:00
\includegraphics [height=550pt] { classGpgFrontend_ 1_ 1GpgKeyManager_ _ coll_ _ graph}
2022-05-08 22:01:23 +00:00
\end { center}
\end { figure}
2023-08-01 15:09:22 +00:00
\doxysubsection * { Classes}
\begin { DoxyCompactItemize}
\item
struct \mbox { \hyperlink { structGpgFrontend_ 1_ 1GpgKeyManager_ 1_ 1AutomatonHandelStruct} { Automaton\+ Handel\+ Struct} }
\end { DoxyCompactItemize}
2022-05-08 19:59:26 +00:00
\doxysubsection * { Public Member Functions}
\begin { DoxyCompactItemize}
\item
2024-01-23 07:22:33 +00:00
\mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKeyManager_ a210b717fd8ee63b064d77f32b0df4c5d} { Gpg\+ Key\+ Manager} } (int channel=\mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ ad983153cbe3a0c32c123c506e04f31fc} { Singleton\+ Function\+ Object\+ ::\+ Get\+ Default\+ Channel} } ())
2022-05-08 19:59:26 +00:00
\begin { DoxyCompactList} \small \item \em Construct a new Gpg Key Manager object. \end { DoxyCompactList} \item
2024-01-23 07:22:33 +00:00
auto \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKeyManager_ ab5e56b3a2161f3251666c988d7eaa929} { Sign\+ Key} } (const \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKey} { Gpg\+ Key} } \& target, Key\+ Args\+ List \& keys, const QString \& uid, const std\+ ::unique\+ \_ \+ ptr$ < $ QDate\+ Time $ > $ \& expires) -\/ $ > $ bool
2022-05-08 19:59:26 +00:00
\begin { DoxyCompactList} \small \item \em Sign a key pair(actually a certain uid) \end { DoxyCompactList} \item
2024-01-23 07:22:33 +00:00
auto \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKeyManager_ a85c5ca9f31480fe3351c056b92b0aa12} { Rev\+ Sign} } (const \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKey} { Gpg\+ Frontend\+ ::\+ Gpg\+ Key} } \& key, const Gpg\+ Frontend\+ ::\+ Sign\+ Id\+ Args\+ List\+ Ptr \& signature\+ \_ \+ id) -\/ $ > $ bool
2022-05-08 19:59:26 +00:00
\item
2024-01-23 07:22:33 +00:00
auto \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKeyManager_ ab4a61f4a895ddc965a018a851b222dce} { Set\+ Expire} } (const \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKey} { Gpg\+ Key} } \& key, std\+ ::unique\+ \_ \+ ptr$ < $ \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgSubKey} { Gpg\+ Sub\+ Key} } $ > $ \& subkey, std\+ ::unique\+ \_ \+ ptr$ < $ QDate\+ Time $ > $ \& expires) -\/ $ > $ bool
2023-08-01 15:09:22 +00:00
\begin { DoxyCompactList} \small \item \em Set the Expire object. \end { DoxyCompactList} \item
2024-01-23 07:22:33 +00:00
auto \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKeyManager_ a5fa56401416872cd4ed741830b72041b} { Set\+ Owner\+ Trust\+ Level} } (const \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgKey} { Gpg\+ Key} } \& key, int trust\+ \_ \+ level) -\/ $ > $ bool
2023-08-01 15:09:22 +00:00
\end { DoxyCompactItemize}
\doxysubsection * { Private Types}
\begin { DoxyCompactItemize}
\item
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ ab86c354a43ee32eb1216659bdd697d68} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ ab86c354a43ee32eb1216659bdd697d68} }
using { \bfseries Command} = QString
2023-08-01 15:09:22 +00:00
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ a8372d745ded9676dbab290780f7389ae} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ a8372d745ded9676dbab290780f7389ae} }
using { \bfseries Automaton\+ State} = enum \{ AS\+ \_ \+ \+ START, AS\+ \_ \+ \+ COMMAND, AS\+ \_ \+ \+ VALUE, AS\+ \_ \+ \+ REALLY\+ \_ \+ \+ ULTIMATE, AS\+ \_ \+ \+ SAVE, AS\+ \_ \+ \+ ERROR, AS\+ \_ \+ \+ QUIT, \}
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ abbd0d9893967a342b0f1062a856d0647} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ abbd0d9893967a342b0f1062a856d0647} }
using { \bfseries Automaton\+ Action\+ Handler} = std\+ ::function$ < $ Command(\mbox { \hyperlink { structGpgFrontend_ 1_ 1GpgKeyManager_ 1_ 1AutomatonHandelStruct} { Automaton\+ Handel\+ Struct} } \& , Automaton\+ State)$ > $
\item
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ adbb73cdb2ad6bc7a2a641871b2a17c17} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ adbb73cdb2ad6bc7a2a641871b2a17c17} }
using { \bfseries Automaton\+ Next\+ State\+ Handler} = std\+ ::function$ < $ Automaton\+ State(Automaton\+ State, QString, QString)$ > $
2023-08-01 15:09:22 +00:00
\end { DoxyCompactItemize}
\doxysubsection * { Static Private Member Functions}
\begin { DoxyCompactItemize}
\item
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ a9b5cc56fefa0e9ef0dd01aec92c2041d} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ a9b5cc56fefa0e9ef0dd01aec92c2041d} }
static auto { \bfseries interactor\+ \_ \+ cb\+ \_ \+ fnc} (void $ \ast $ handle, const char $ \ast $ status, const char $ \ast $ args, int fd) -\/ $ > $ gpgme\+ \_ \+ error\+ \_ \+ t
2023-08-01 15:09:22 +00:00
\end { DoxyCompactItemize}
2022-05-08 19:59:26 +00:00
\doxysubsection * { Private Attributes}
\begin { DoxyCompactItemize}
\item
2022-05-08 22:01:23 +00:00
\mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgContext} { Gpg\+ Context} } \& { \bfseries ctx\+ \_ \+ }
2022-05-08 19:59:26 +00:00
\end { DoxyCompactItemize}
\doxysubsection * { Additional Inherited Members}
\doxysubsection { Constructor \& Destructor Documentation}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ a210b717fd8ee63b064d77f32b0df4c5d} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ a210b717fd8ee63b064d77f32b0df4c5d} }
\index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} !GpgKeyManager@{ GpgKeyManager} }
\index { GpgKeyManager@{ GpgKeyManager} !GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
\doxysubsubsection { \texorpdfstring { GpgKeyManager()} { GpgKeyManager()} }
2024-01-23 07:22:33 +00:00
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::\+ Gpg\+ Key\+ Manager (\begin { DoxyParamCaption} \item [{int}] { channel = { \ttfamily \mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ ad983153cbe3a0c32c123c506e04f31fc} { Singleton\+ Function\+ Object\+ ::\+ Get\+ Default\+ Channel} } ()} } \end { DoxyParamCaption} )\hspace { 0.3cm} { \ttfamily [explicit]} }
2022-05-08 19:59:26 +00:00
Construct a new Gpg Key Manager object.
\begin { DoxyParams} { Parameters}
2024-01-23 07:22:33 +00:00
{ \em channel} & Copyright (C) 2021 Saturneric \href { mailto:eric@bktus.com} { \texttt { eric@bktus.\+ com} } \\
2022-05-08 19:59:26 +00:00
\hline
\end { DoxyParams}
This file is part of \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } .
2022-11-26 18:19:17 +00:00
\mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } is free software\+ : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
2022-05-08 19:59:26 +00:00
2022-11-26 18:19:17 +00:00
\mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2022-05-08 19:59:26 +00:00
2022-11-26 18:19:17 +00:00
You should have received a copy of the GNU General Public License along with \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } . If not, see \href { https://www.gnu.org/licenses/} { \texttt { https\+ ://www.\+ gnu.\+ org/licenses/} } .
2022-05-08 19:59:26 +00:00
2022-11-26 18:19:17 +00:00
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-\/ 3.\+ 0-\/ or-\/ later.
2022-05-08 19:59:26 +00:00
2024-01-23 07:22:33 +00:00
All the source code of \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } was modified and released by Saturneric \href { mailto:eric@bktus.com} { \texttt { eric@bktus.\+ com} } starting on May 12, 2021.
2022-05-08 19:59:26 +00:00
2022-11-26 18:19:17 +00:00
SPDX-\/ \+ License-\/ \+ Identifier\+ : GPL-\/ 3.\+ 0-\/ or-\/ later
2022-05-08 19:59:26 +00:00
\doxysubsection { Member Function Documentation}
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ a85c5ca9f31480fe3351c056b92b0aa12} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ a85c5ca9f31480fe3351c056b92b0aa12} }
2022-05-08 19:59:26 +00:00
\index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} !RevSign@{ RevSign} }
\index { RevSign@{ RevSign} !GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
\doxysubsubsection { \texorpdfstring { RevSign()} { RevSign()} }
2024-01-23 07:22:33 +00:00
{ \footnotesize \ttfamily auto Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::\+ Rev\+ Sign (\begin { DoxyParamCaption} \item [{const \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{Gpg\+Frontend\+::\+Gpg\+Key}} \&}] { key, } \item [{const Gpg\+Frontend\+::\+Sign\+Id\+Args\+List\+Ptr \&}] { signature\+ \_ \+ id } \end { DoxyParamCaption} ) -\/ $ > $ bool}
2022-05-08 19:59:26 +00:00
\begin { DoxyParams} { Parameters}
{ \em key} & \\
\hline
{ \em signature\+ \_ \+ id} & \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
true
false
\end { DoxyReturn}
2024-01-23 07:22:33 +00:00
References Gpg\+ Frontend\+ ::\+ Check\+ Gpg\+ Error(), and Gpg\+ Frontend\+ ::\+ Singleton\+ Function\+ Object$ < $ Gpg\+ Key\+ Getter $ > $ \+ ::\+ Get\+ Instance().
2022-05-08 19:59:26 +00:00
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ ab4a61f4a895ddc965a018a851b222dce} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ ab4a61f4a895ddc965a018a851b222dce} }
2022-05-08 19:59:26 +00:00
\index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} !SetExpire@{ SetExpire} }
\index { SetExpire@{ SetExpire} !GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
\doxysubsubsection { \texorpdfstring { SetExpire()} { SetExpire()} }
2024-01-23 07:22:33 +00:00
{ \footnotesize \ttfamily auto Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::\+ Set\+ Expire (\begin { DoxyParamCaption} \item [{const \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{Gpg\+Key}} \&}] { key, } \item [{std\+::unique\+\_\+ptr$<$ \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{Gpg\+Sub\+Key}} $>$ \&}] { subkey, } \item [{std\+::unique\+\_\+ptr$<$ QDate\+Time $>$ \&}] { expires } \end { DoxyParamCaption} ) -\/ $ > $ bool}
2022-05-08 19:59:26 +00:00
Set the Expire object.
\begin { DoxyParams} { Parameters}
{ \em key} & \\
\hline
{ \em subkey} & \\
\hline
{ \em expires} & \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
true
false
\end { DoxyReturn}
2024-01-23 07:22:33 +00:00
References Gpg\+ Frontend\+ ::\+ Check\+ Gpg\+ Error().
2022-05-08 19:59:26 +00:00
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ a5fa56401416872cd4ed741830b72041b} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ a5fa56401416872cd4ed741830b72041b} }
2023-08-01 15:09:22 +00:00
\index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} !SetOwnerTrustLevel@{ SetOwnerTrustLevel} }
\index { SetOwnerTrustLevel@{ SetOwnerTrustLevel} !GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
\doxysubsubsection { \texorpdfstring { SetOwnerTrustLevel()} { SetOwnerTrustLevel()} }
2024-01-23 07:22:33 +00:00
{ \footnotesize \ttfamily auto Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::\+ Set\+ Owner\+ Trust\+ Level (\begin { DoxyParamCaption} \item [{const \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{Gpg\+Key}} \&}] { key, } \item [{int}] { trust\+ \_ \+ level } \end { DoxyParamCaption} ) -\/ $ > $ bool}
2023-08-01 15:09:22 +00:00
\begin { DoxyReturn} { Returns}
\end { DoxyReturn}
2024-01-23 07:22:33 +00:00
References Gpg\+ Frontend\+ ::\+ Check\+ Gpg\+ Error().
2023-08-01 15:09:22 +00:00
2024-01-23 07:22:33 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ ab5e56b3a2161f3251666c988d7eaa929} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ ab5e56b3a2161f3251666c988d7eaa929} }
2022-05-08 19:59:26 +00:00
\index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} !SignKey@{ SignKey} }
\index { SignKey@{ SignKey} !GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
\doxysubsubsection { \texorpdfstring { SignKey()} { SignKey()} }
2024-01-23 07:22:33 +00:00
{ \footnotesize \ttfamily auto Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::\+ Sign\+ Key (\begin { DoxyParamCaption} \item [{const \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{Gpg\+Key}} \&}] { target, } \item [{Gpg\+Frontend\+::\+Key\+Args\+List \&}] { keys, } \item [{const QString \&}] { uid, } \item [{const std\+::unique\+\_\+ptr$<$ QDate\+Time $>$ \&}] { expires } \end { DoxyParamCaption} ) -\/ $ > $ bool}
2022-05-08 19:59:26 +00:00
Sign a key pair(actually a certain uid)
\begin { DoxyParams} { Parameters}
{ \em target} & target key pair \\
\hline
{ \em uid} & target \\
\hline
{ \em expires} & expire date and time of the signature \\
\hline
\end { DoxyParams}
\begin { DoxyReturn} { Returns}
if successful
\end { DoxyReturn}
2024-01-23 07:22:33 +00:00
References Gpg\+ Frontend\+ ::\+ Check\+ Gpg\+ Error(), and Gpg\+ Frontend\+ ::\+ Singleton\+ Function\+ Object$ < $ Gpg\+ Basic\+ Operator $ > $ \+ ::\+ Get\+ Instance().
2022-05-08 19:59:26 +00:00
\doxysubsection { Member Data Documentation}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1GpgKeyManager_ a073f96ccfa483a8856197610b8bdee9e} \label { classGpgFrontend_ 1_ 1GpgKeyManager_ a073f96ccfa483a8856197610b8bdee9e} }
\index { GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} !ctx\_ @{ ctx\_ } }
\index { ctx\_ @{ ctx\_ } !GpgFrontend::GpgKeyManager@{ GpgFrontend::GpgKeyManager} }
\doxysubsubsection { \texorpdfstring { ctx\_ } { ctx\_ } }
{ \footnotesize \ttfamily \mbox { \hyperlink { classGpgFrontend_ 1_ 1GpgContext} { Gpg\+ Context} } \& Gpg\+ Frontend\+ ::\+ Gpg\+ Key\+ Manager\+ ::ctx\+ \_ \+ \hspace { 0.3cm} { \ttfamily [private]} }
{ \bfseries Initial value\+ :}
\begin { DoxyCode} { 0}
\DoxyCodeLine { =}
2024-01-23 07:22:33 +00:00
\DoxyCodeLine { \mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ ac963fee992753970bfb5c81608d4070f} { GpgContext::GetInstance} } (\mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ a94ee1e1251023610590e675ae3de8bd5} { SingletonFunctionObject::GetChannel} } ())}
2022-05-08 19:59:26 +00:00
\end { DoxyCode}
The documentation for this class was generated from the following files\+ :\begin { DoxyCompactItemize}
\item
src/core/function/gpg/Gpg\+ Key\+ Manager.\+ h\item
src/core/function/gpg/Gpg\+ Key\+ Manager.\+ cpp\end { DoxyCompactItemize}