230 lines
14 KiB
TeX
230 lines
14 KiB
TeX
\hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils}{}\doxysection{Gpg\+Frontend\+::UI\+::Common\+Utils Class Reference}
|
|
\label{classGpgFrontend_1_1UI_1_1CommonUtils}\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
|
|
|
|
Inheritance diagram for Gpg\+Frontend\+::UI\+::Common\+Utils\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=259pt]{classGpgFrontend_1_1UI_1_1CommonUtils__inherit__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
Collaboration diagram for Gpg\+Frontend\+::UI\+::Common\+Utils\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[height=550pt]{classGpgFrontend_1_1UI_1_1CommonUtils__coll__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{Public Types}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_aadd249062c24f9b7fc545c03296bbb83}\label{classGpgFrontend_1_1UI_1_1CommonUtils_aadd249062c24f9b7fc545c03296bbb83}}
|
|
using {\bfseries Import\+Callback\+Functiopn} = std\+::function$<$ void(const std\+::string \&, const std\+::string \&, size\+\_\+t, size\+\_\+t)$>$
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Public Slots}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a3bc26cc1e0f00f0ce2f95c0b6c8778d8}{Slot\+Import\+Keys}} (QWidget $\ast$parent, const std\+::string \&in\+\_\+buffer)
|
|
\item
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a057526790f6b2f6288c3a35322c34d8d}{Slot\+Import\+Key\+From\+File}} (QWidget $\ast$parent)
|
|
\item
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_af1b3538d3119c8564e83c7661f73f6ea}{Slot\+Import\+Key\+From\+Key\+Server}} (QWidget $\ast$parent)
|
|
\item
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a0c8bf56fc5371cd2c5e9d2a0f67bf72a}{Slot\+Import\+Key\+From\+Clipboard}} (QWidget $\ast$parent)
|
|
\item
|
|
static void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a35a47fc31b81b6c4f5899e8ab5c4c51a}{Slot\+Import\+Key\+From\+Key\+Server}} (const Gpg\+Frontend\+::\+Key\+Id\+Args\+List \&key\+\_\+ids, const Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Import\+Callback\+Functiopn \&callback)
|
|
\item
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_afc845c1c37487c99f78d8e66f6874f6d}{Slot\+Execute\+Gpg\+Command}} (const QString\+List \&arguments, const std\+::function$<$ void(QProcess $\ast$)$>$ \&interact\+\_\+func)
|
|
\item
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a95cd625a2e0e74ee4d564843c6d16791}{Slot\+Execute\+Command}} (const std\+::string \&cmd, const QString\+List \&arguments, const std\+::function$<$ void(QProcess $\ast$)$>$ \&interact\+\_\+func)
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Signals}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a4bc9e91daa0d3c4ee4141ba4bd8726bb}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a4bc9e91daa0d3c4ee4141ba4bd8726bb}}
|
|
void {\bfseries Signal\+Key\+Status\+Updated} ()
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a4d2f10c2089c2bfb23be5c1f573af31f}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a4d2f10c2089c2bfb23be5c1f573af31f}}
|
|
void {\bfseries Signal\+Gnupg\+Not\+Install} ()
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a1abc83bba95579aa94d0870181991a28}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a1abc83bba95579aa94d0870181991a28}}
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a1abc83bba95579aa94d0870181991a28}{Signal\+Key\+Database\+Refresh\+Done}} ()
|
|
\begin{DoxyCompactList}\small\item\em emit when the key database is refreshed \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{Public Member Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a78f5c2696152e9326e845c76c94be965}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a78f5c2696152e9326e845c76c94be965}}
|
|
\mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_a78f5c2696152e9326e845c76c94be965}{Common\+Utils}} ()
|
|
\begin{DoxyCompactList}\small\item\em Construct a new Common Utils object. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{Static Public Member Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
static \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils}{Common\+Utils}} $\ast$ \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_aed529969f54e39e3f9da14ae6dd00d49}{Get\+Instance}} ()
|
|
\begin{DoxyCompactList}\small\item\em Get the Instance object. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{Private Slots}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_ab4ac26378d6a07757720163eb4b1cb0e}\label{classGpgFrontend_1_1UI_1_1CommonUtils_ab4ac26378d6a07757720163eb4b1cb0e}}
|
|
void \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils_ab4ac26378d6a07757720163eb4b1cb0e}{slot\+\_\+update\+\_\+key\+\_\+status}} ()
|
|
\begin{DoxyCompactList}\small\item\em update the key status when signal is emitted \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{Static Private Attributes}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_aa533206591b0c57ea93b8f0cb7d795cd}\label{classGpgFrontend_1_1UI_1_1CommonUtils_aa533206591b0c57ea93b8f0cb7d795cd}}
|
|
static std\+::unique\+\_\+ptr$<$ \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils}{Common\+Utils}} $>$ {\bfseries instance\+\_\+} = nullptr
|
|
\end{DoxyCompactItemize}
|
|
|
|
|
|
\doxysubsection{Member Function Documentation}
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_aed529969f54e39e3f9da14ae6dd00d49}\label{classGpgFrontend_1_1UI_1_1CommonUtils_aed529969f54e39e3f9da14ae6dd00d49}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!GetInstance@{GetInstance}}
|
|
\index{GetInstance@{GetInstance}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{GetInstance()}{GetInstance()}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1CommonUtils}{Common\+Utils}} $\ast$ Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Get\+Instance (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
|
|
|
|
Get the Instance object.
|
|
|
|
\begin{DoxyReturn}{Returns}
|
|
Common\+Utils$\ast$
|
|
\end{DoxyReturn}
|
|
|
|
|
|
Referenced by Gpg\+Frontend\+::\+UI\+::\+Key\+Mgmt\+::create\+\_\+actions(), Gpg\+Frontend\+::\+UI\+::\+Main\+Window\+::create\+\_\+actions(), Gpg\+Frontend\+::\+UI\+::\+Init\+Gpg\+Frontend\+UI(), and Gpg\+Frontend\+::\+UI\+::\+Main\+Window\+::slot\+\_\+import\+\_\+key\+\_\+from\+\_\+edit().
|
|
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a95cd625a2e0e74ee4d564843c6d16791}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a95cd625a2e0e74ee4d564843c6d16791}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotExecuteCommand@{SlotExecuteCommand}}
|
|
\index{SlotExecuteCommand@{SlotExecuteCommand}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotExecuteCommand}{SlotExecuteCommand}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Execute\+Command (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{cmd, }\item[{const QString\+List \&}]{arguments, }\item[{const std\+::function$<$ void(QProcess $\ast$)$>$ \&}]{interact\+\_\+func }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em arguments} & \\
|
|
\hline
|
|
{\em interact\+\_\+func} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_afc845c1c37487c99f78d8e66f6874f6d}\label{classGpgFrontend_1_1UI_1_1CommonUtils_afc845c1c37487c99f78d8e66f6874f6d}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotExecuteGpgCommand@{SlotExecuteGpgCommand}}
|
|
\index{SlotExecuteGpgCommand@{SlotExecuteGpgCommand}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotExecuteGpgCommand}{SlotExecuteGpgCommand}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Execute\+Gpg\+Command (\begin{DoxyParamCaption}\item[{const QString\+List \&}]{arguments, }\item[{const std\+::function$<$ void(QProcess $\ast$)$>$ \&}]{interact\+\_\+func }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em arguments} & \\
|
|
\hline
|
|
{\em interact\+\_\+func} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
References Gpg\+Frontend\+::\+Gpg\+Info\+::\+App\+Path, Gpg\+Frontend\+::\+Gpg\+Context\+::\+Get\+Info(), and Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Gpg\+Context $>$\+::\+Get\+Instance().
|
|
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a0c8bf56fc5371cd2c5e9d2a0f67bf72a}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a0c8bf56fc5371cd2c5e9d2a0f67bf72a}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotImportKeyFromClipboard@{SlotImportKeyFromClipboard}}
|
|
\index{SlotImportKeyFromClipboard@{SlotImportKeyFromClipboard}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotImportKeyFromClipboard}{SlotImportKeyFromClipboard}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Import\+Key\+From\+Clipboard (\begin{DoxyParamCaption}\item[{QWidget $\ast$}]{parent }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em parent} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
References Slot\+Import\+Keys().
|
|
|
|
|
|
|
|
Referenced by Gpg\+Frontend\+::\+UI\+::\+Key\+Mgmt\+::create\+\_\+actions(), and Gpg\+Frontend\+::\+UI\+::\+Main\+Window\+::create\+\_\+actions().
|
|
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a057526790f6b2f6288c3a35322c34d8d}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a057526790f6b2f6288c3a35322c34d8d}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotImportKeyFromFile@{SlotImportKeyFromFile}}
|
|
\index{SlotImportKeyFromFile@{SlotImportKeyFromFile}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotImportKeyFromFile}{SlotImportKeyFromFile}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Import\+Key\+From\+File (\begin{DoxyParamCaption}\item[{QWidget $\ast$}]{parent }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em parent} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
References Gpg\+Frontend\+::\+File\+Operator\+::\+Read\+File(), and Slot\+Import\+Keys().
|
|
|
|
|
|
|
|
Referenced by Gpg\+Frontend\+::\+UI\+::\+Key\+Mgmt\+::create\+\_\+actions(), and Gpg\+Frontend\+::\+UI\+::\+Main\+Window\+::create\+\_\+actions().
|
|
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a35a47fc31b81b6c4f5899e8ab5c4c51a}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a35a47fc31b81b6c4f5899e8ab5c4c51a}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotImportKeyFromKeyServer@{SlotImportKeyFromKeyServer}}
|
|
\index{SlotImportKeyFromKeyServer@{SlotImportKeyFromKeyServer}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotImportKeyFromKeyServer}{SlotImportKeyFromKeyServer}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Import\+Key\+From\+Key\+Server (\begin{DoxyParamCaption}\item[{const Gpg\+Frontend\+::\+Key\+Id\+Args\+List \&}]{key\+\_\+ids, }\item[{const Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Import\+Callback\+Functiopn \&}]{callback }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}, {\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em ctx\+\_\+channel} & \\
|
|
\hline
|
|
{\em key\+\_\+ids} & \\
|
|
\hline
|
|
{\em callback} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
References Gpg\+Frontend\+::\+UI\+::\+Settings\+Object\+::\+Check(), Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Gpg\+Key\+Import\+Exporter $>$\+::\+Get\+Instance(), Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Global\+Setting\+Station $>$\+::\+Get\+Instance(), Gpg\+Frontend\+::\+Global\+Setting\+Station\+::\+Get\+UISettings(), and Gpg\+Frontend\+::\+Gpg\+Key\+Import\+Exporter\+::\+Import\+Key().
|
|
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_af1b3538d3119c8564e83c7661f73f6ea}\label{classGpgFrontend_1_1UI_1_1CommonUtils_af1b3538d3119c8564e83c7661f73f6ea}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotImportKeyFromKeyServer@{SlotImportKeyFromKeyServer}}
|
|
\index{SlotImportKeyFromKeyServer@{SlotImportKeyFromKeyServer}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotImportKeyFromKeyServer}{SlotImportKeyFromKeyServer}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Import\+Key\+From\+Key\+Server (\begin{DoxyParamCaption}\item[{QWidget $\ast$}]{parent }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em parent} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
Referenced by Gpg\+Frontend\+::\+UI\+::\+Key\+Mgmt\+::create\+\_\+actions(), and Gpg\+Frontend\+::\+UI\+::\+Main\+Window\+::create\+\_\+actions().
|
|
|
|
\mbox{\Hypertarget{classGpgFrontend_1_1UI_1_1CommonUtils_a3bc26cc1e0f00f0ce2f95c0b6c8778d8}\label{classGpgFrontend_1_1UI_1_1CommonUtils_a3bc26cc1e0f00f0ce2f95c0b6c8778d8}}
|
|
\index{GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}!SlotImportKeys@{SlotImportKeys}}
|
|
\index{SlotImportKeys@{SlotImportKeys}!GpgFrontend::UI::CommonUtils@{GpgFrontend::UI::CommonUtils}}
|
|
\doxysubsubsection{\texorpdfstring{SlotImportKeys}{SlotImportKeys}}
|
|
{\footnotesize\ttfamily void Gpg\+Frontend\+::\+UI\+::\+Common\+Utils\+::\+Slot\+Import\+Keys (\begin{DoxyParamCaption}\item[{QWidget $\ast$}]{parent, }\item[{const std\+::string \&}]{in\+\_\+buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em parent} & \\
|
|
\hline
|
|
{\em in\+\_\+buffer} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
References Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Gpg\+Key\+Import\+Exporter $>$\+::\+Get\+Instance(), and Gpg\+Frontend\+::\+Gpg\+Key\+Import\+Exporter\+::\+Import\+Key().
|
|
|
|
|
|
|
|
Referenced by Gpg\+Frontend\+::\+UI\+::\+Main\+Window\+::slot\+\_\+import\+\_\+key\+\_\+from\+\_\+edit(), Slot\+Import\+Key\+From\+Clipboard(), and Slot\+Import\+Key\+From\+File().
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
|
|
\item
|
|
src/ui/User\+Interface\+Utils.\+h\item
|
|
src/ui/User\+Interface\+Utils.\+cpp\end{DoxyCompactItemize}
|