GpgFrontend-Doxygen/docs/html/classGpgFrontend_1_1UI_1_1CommonUtils.html

555 lines
32 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GpgFrontend Project: GpgFrontend::UI::CommonUtils Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GpgFrontend Project
</div>
<div id="projectbrief">A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classGpgFrontend_1_1UI_1_1CommonUtils.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="classGpgFrontend_1_1UI_1_1CommonUtils-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">GpgFrontend::UI::CommonUtils Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for GpgFrontend::UI::CommonUtils:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1UI_1_1CommonUtils__inherit__graph.png" border="0" usemap="#aGpgFrontend_1_1UI_1_1CommonUtils_inherit__map" alt="Inheritance graph"/></div>
<map name="aGpgFrontend_1_1UI_1_1CommonUtils_inherit__map" id="aGpgFrontend_1_1UI_1_1CommonUtils_inherit__map">
<area shape="rect" title=" " alt="" coords="5,131,244,472"/>
<area shape="rect" title=" " alt="" coords="85,5,164,83"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for GpgFrontend::UI::CommonUtils:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1UI_1_1CommonUtils__coll__graph.png" border="0" usemap="#aGpgFrontend_1_1UI_1_1CommonUtils_coll__map" alt="Collaboration graph"/></div>
<map name="aGpgFrontend_1_1UI_1_1CommonUtils_coll__map" id="aGpgFrontend_1_1UI_1_1CommonUtils_coll__map">
<area shape="rect" title=" " alt="" coords="5,455,244,781"/>
<area shape="rect" title=" " alt="" coords="32,307,111,385"/>
<area shape="rect" title=" " alt="" coords="135,300,352,392"/>
<area shape="rect" title=" " alt="" coords="165,145,322,223"/>
<area shape="rect" title=" " alt="" coords="224,5,263,83"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aadd249062c24f9b7fc545c03296bbb83"><td class="memItemLeft" align="right" valign="top"><a id="aadd249062c24f9b7fc545c03296bbb83"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>ImportCallbackFunctiopn</b> = std::function&lt; void(const std::string &amp;, const std::string &amp;, size_t, size_t)&gt;</td></tr>
<tr class="separator:aadd249062c24f9b7fc545c03296bbb83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a3bc26cc1e0f00f0ce2f95c0b6c8778d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a3bc26cc1e0f00f0ce2f95c0b6c8778d8">SlotImportKeys</a> (QWidget *parent, const std::string &amp;in_buffer)</td></tr>
<tr class="separator:a3bc26cc1e0f00f0ce2f95c0b6c8778d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a057526790f6b2f6288c3a35322c34d8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a057526790f6b2f6288c3a35322c34d8d">SlotImportKeyFromFile</a> (QWidget *parent)</td></tr>
<tr class="separator:a057526790f6b2f6288c3a35322c34d8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1b3538d3119c8564e83c7661f73f6ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#af1b3538d3119c8564e83c7661f73f6ea">SlotImportKeyFromKeyServer</a> (QWidget *parent)</td></tr>
<tr class="separator:af1b3538d3119c8564e83c7661f73f6ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c8bf56fc5371cd2c5e9d2a0f67bf72a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a0c8bf56fc5371cd2c5e9d2a0f67bf72a">SlotImportKeyFromClipboard</a> (QWidget *parent)</td></tr>
<tr class="separator:a0c8bf56fc5371cd2c5e9d2a0f67bf72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35a47fc31b81b6c4f5899e8ab5c4c51a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a35a47fc31b81b6c4f5899e8ab5c4c51a">SlotImportKeyFromKeyServer</a> (const GpgFrontend::KeyIdArgsList &amp;key_ids, const GpgFrontend::UI::CommonUtils::ImportCallbackFunctiopn &amp;callback)</td></tr>
<tr class="separator:a35a47fc31b81b6c4f5899e8ab5c4c51a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc845c1c37487c99f78d8e66f6874f6d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#afc845c1c37487c99f78d8e66f6874f6d">SlotExecuteGpgCommand</a> (const QStringList &amp;arguments, const std::function&lt; void(QProcess *)&gt; &amp;interact_func)</td></tr>
<tr class="separator:afc845c1c37487c99f78d8e66f6874f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95cd625a2e0e74ee4d564843c6d16791"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a95cd625a2e0e74ee4d564843c6d16791">SlotExecuteCommand</a> (const std::string &amp;cmd, const QStringList &amp;arguments, const std::function&lt; void(QProcess *)&gt; &amp;interact_func)</td></tr>
<tr class="separator:a95cd625a2e0e74ee4d564843c6d16791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86d3827a2e5df17747c58d00b2f5fe6e"><td class="memItemLeft" align="right" valign="top"><a id="a86d3827a2e5df17747c58d00b2f5fe6e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SlotRestartApplication</b> (int)</td></tr>
<tr class="separator:a86d3827a2e5df17747c58d00b2f5fe6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a4bc9e91daa0d3c4ee4141ba4bd8726bb"><td class="memItemLeft" align="right" valign="top"><a id="a4bc9e91daa0d3c4ee4141ba4bd8726bb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalKeyStatusUpdated</b> ()</td></tr>
<tr class="separator:a4bc9e91daa0d3c4ee4141ba4bd8726bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d2f10c2089c2bfb23be5c1f573af31f"><td class="memItemLeft" align="right" valign="top"><a id="a4d2f10c2089c2bfb23be5c1f573af31f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalGnupgNotInstall</b> ()</td></tr>
<tr class="separator:a4d2f10c2089c2bfb23be5c1f573af31f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1abc83bba95579aa94d0870181991a28"><td class="memItemLeft" align="right" valign="top"><a id="a1abc83bba95579aa94d0870181991a28"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a1abc83bba95579aa94d0870181991a28">SignalKeyDatabaseRefreshDone</a> ()</td></tr>
<tr class="memdesc:a1abc83bba95579aa94d0870181991a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">emit when the key database is refreshed <br /></td></tr>
<tr class="separator:a1abc83bba95579aa94d0870181991a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e7dff5252d5ec77c8450ad356891ebb"><td class="memItemLeft" align="right" valign="top"><a id="a1e7dff5252d5ec77c8450ad356891ebb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalNeedUserInputPassphrase</b> ()</td></tr>
<tr class="separator:a1e7dff5252d5ec77c8450ad356891ebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80350e7fe1cd696004c9aa2a43eab184"><td class="memItemLeft" align="right" valign="top"><a id="a80350e7fe1cd696004c9aa2a43eab184"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalUserInputPassphraseDone</b> (QString passphrase)</td></tr>
<tr class="separator:a80350e7fe1cd696004c9aa2a43eab184"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa69efbcd684e9a99cc5c47c23de8d38c"><td class="memItemLeft" align="right" valign="top"><a id="aa69efbcd684e9a99cc5c47c23de8d38c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalRestartApplication</b> (int)</td></tr>
<tr class="separator:aa69efbcd684e9a99cc5c47c23de8d38c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a78f5c2696152e9326e845c76c94be965"><td class="memItemLeft" align="right" valign="top"><a id="a78f5c2696152e9326e845c76c94be965"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a78f5c2696152e9326e845c76c94be965">CommonUtils</a> ()</td></tr>
<tr class="memdesc:a78f5c2696152e9326e845c76c94be965"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new Common Utils object. <br /></td></tr>
<tr class="separator:a78f5c2696152e9326e845c76c94be965"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb25baa60d62d6842028e174f7e341fe"><td class="memItemLeft" align="right" valign="top"><a id="abb25baa60d62d6842028e174f7e341fe"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isApplicationNeedRestart</b> ()</td></tr>
<tr class="separator:abb25baa60d62d6842028e174f7e341fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a570b6d08ceb683f950e94d648bf334ea"><td class="memItemLeft" align="right" valign="top"><a id="a570b6d08ceb683f950e94d648bf334ea"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>KeyExistsinFavouriteList</b> (const <a class="el" href="classGpgFrontend_1_1GpgKey.html">GpgKey</a> &amp;key)</td></tr>
<tr class="separator:a570b6d08ceb683f950e94d648bf334ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a7b01b992c465ded7e25e54e3ebacec"><td class="memItemLeft" align="right" valign="top"><a id="a7a7b01b992c465ded7e25e54e3ebacec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>AddKey2Favourtie</b> (const <a class="el" href="classGpgFrontend_1_1GpgKey.html">GpgKey</a> &amp;key)</td></tr>
<tr class="separator:a7a7b01b992c465ded7e25e54e3ebacec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cf35e9d02ff3464cb83435a61d060c2"><td class="memItemLeft" align="right" valign="top"><a id="a0cf35e9d02ff3464cb83435a61d060c2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>RemoveKeyFromFavourite</b> (const <a class="el" href="classGpgFrontend_1_1GpgKey.html">GpgKey</a> &amp;key)</td></tr>
<tr class="separator:a0cf35e9d02ff3464cb83435a61d060c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aed529969f54e39e3f9da14ae6dd00d49"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html">CommonUtils</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#aed529969f54e39e3f9da14ae6dd00d49">GetInstance</a> ()</td></tr>
<tr class="memdesc:aed529969f54e39e3f9da14ae6dd00d49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Instance object. <a href="classGpgFrontend_1_1UI_1_1CommonUtils.html#aed529969f54e39e3f9da14ae6dd00d49">More...</a><br /></td></tr>
<tr class="separator:aed529969f54e39e3f9da14ae6dd00d49"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr class="memitem:ab4ac26378d6a07757720163eb4b1cb0e"><td class="memItemLeft" align="right" valign="top"><a id="ab4ac26378d6a07757720163eb4b1cb0e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#ab4ac26378d6a07757720163eb4b1cb0e">slot_update_key_status</a> ()</td></tr>
<tr class="memdesc:ab4ac26378d6a07757720163eb4b1cb0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">update the key status when signal is emitted <br /></td></tr>
<tr class="separator:ab4ac26378d6a07757720163eb4b1cb0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef14c7eaaf8b73bd1b8f845a5484748e"><td class="memItemLeft" align="right" valign="top"><a id="aef14c7eaaf8b73bd1b8f845a5484748e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>slot_popup_passphrase_input_dialog</b> ()</td></tr>
<tr class="separator:aef14c7eaaf8b73bd1b8f845a5484748e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a99b5dad4b17d1e71120e2c7708ef47a0"><td class="memItemLeft" align="right" valign="top"><a id="a99b5dad4b17d1e71120e2c7708ef47a0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>application_need_to_restart_at_once_</b> = false</td></tr>
<tr class="separator:a99b5dad4b17d1e71120e2c7708ef47a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:aa533206591b0c57ea93b8f0cb7d795cd"><td class="memItemLeft" align="right" valign="top"><a id="aa533206591b0c57ea93b8f0cb7d795cd"></a>
static std::unique_ptr&lt; <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html">CommonUtils</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>instance_</b> = nullptr</td></tr>
<tr class="separator:aa533206591b0c57ea93b8f0cb7d795cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aed529969f54e39e3f9da14ae6dd00d49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed529969f54e39e3f9da14ae6dd00d49">&#9670;&nbsp;</a></span>GetInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html">CommonUtils</a> * GpgFrontend::UI::CommonUtils::GetInstance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the Instance object. </p>
<dl class="section return"><dt>Returns</dt><dd>CommonUtils* </dd></dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1KeyMgmt.html#a23cf6665537f2a96708e9d5423ce3bb8">GpgFrontend::UI::KeyMgmt::create_actions()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a0ab96012df041f2c2e47092db0600355">GpgFrontend::UI::MainWindow::create_actions()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a04668246525874760f47a340b4b7d8de">GpgFrontend::UI::MainWindow::create_dock_windows()</a>, <a class="el" href="namespaceGpgFrontend_1_1UI.html#ab0311557c1d7bde9c56cbca85fefa6ad">GpgFrontend::UI::InitGpgFrontendUI()</a>, <a class="el" href="namespaceGpgFrontend_1_1UI.html#a9e2d085812ef8fdd6f19ea94a241b4da">GpgFrontend::UI::RunGpgFrontendUI()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a55926649e28a96318b89afba01b966bf">GpgFrontend::UI::MainWindow::slot_import_key_from_edit()</a>.</p>
</div>
</div>
<a id="a95cd625a2e0e74ee4d564843c6d16791"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95cd625a2e0e74ee4d564843c6d16791">&#9670;&nbsp;</a></span>SlotExecuteCommand</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotExecuteCommand </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>cmd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QStringList &amp;&#160;</td>
<td class="paramname"><em>arguments</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::function&lt; void(QProcess *)&gt; &amp;&#160;</td>
<td class="paramname"><em>interact_func</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">arguments</td><td></td></tr>
<tr><td class="paramname">interact_func</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="afc845c1c37487c99f78d8e66f6874f6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc845c1c37487c99f78d8e66f6874f6d">&#9670;&nbsp;</a></span>SlotExecuteGpgCommand</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotExecuteGpgCommand </td>
<td>(</td>
<td class="paramtype">const QStringList &amp;&#160;</td>
<td class="paramname"><em>arguments</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::function&lt; void(QProcess *)&gt; &amp;&#160;</td>
<td class="paramname"><em>interact_func</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">arguments</td><td></td></tr>
<tr><td class="paramname">interact_func</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1GpgInfo.html#a2416ae0ab9bedc61782d16075750a9c0">GpgFrontend::GpgInfo::AppPath</a>, <a class="el" href="classGpgFrontend_1_1GpgContext.html#a4a8f6ff37e45979159ab375b2c7d48c3">GpgFrontend::GpgContext::GetInfo()</a>, and <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36">GpgFrontend::SingletonFunctionObject&lt; GpgContext &gt;::GetInstance()</a>.</p>
</div>
</div>
<a id="a0c8bf56fc5371cd2c5e9d2a0f67bf72a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c8bf56fc5371cd2c5e9d2a0f67bf72a">&#9670;&nbsp;</a></span>SlotImportKeyFromClipboard</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotImportKeyFromClipboard </td>
<td>(</td>
<td class="paramtype">QWidget *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a3bc26cc1e0f00f0ce2f95c0b6c8778d8">SlotImportKeys()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1KeyMgmt.html#a23cf6665537f2a96708e9d5423ce3bb8">GpgFrontend::UI::KeyMgmt::create_actions()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a0ab96012df041f2c2e47092db0600355">GpgFrontend::UI::MainWindow::create_actions()</a>.</p>
</div>
</div>
<a id="a057526790f6b2f6288c3a35322c34d8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a057526790f6b2f6288c3a35322c34d8d">&#9670;&nbsp;</a></span>SlotImportKeyFromFile</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotImportKeyFromFile </td>
<td>(</td>
<td class="paramtype">QWidget *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1FileOperator.html#a28a3572dc01192b6a4d50b544181084c">GpgFrontend::FileOperator::ReadFile()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a3bc26cc1e0f00f0ce2f95c0b6c8778d8">SlotImportKeys()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1KeyMgmt.html#a23cf6665537f2a96708e9d5423ce3bb8">GpgFrontend::UI::KeyMgmt::create_actions()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a0ab96012df041f2c2e47092db0600355">GpgFrontend::UI::MainWindow::create_actions()</a>.</p>
</div>
</div>
<a id="a35a47fc31b81b6c4f5899e8ab5c4c51a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35a47fc31b81b6c4f5899e8ab5c4c51a">&#9670;&nbsp;</a></span>SlotImportKeyFromKeyServer <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotImportKeyFromKeyServer </td>
<td>(</td>
<td class="paramtype">const GpgFrontend::KeyIdArgsList &amp;&#160;</td>
<td class="paramname"><em>key_ids</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const GpgFrontend::UI::CommonUtils::ImportCallbackFunctiopn &amp;&#160;</td>
<td class="paramname"><em>callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ctx_channel</td><td></td></tr>
<tr><td class="paramname">key_ids</td><td></td></tr>
<tr><td class="paramname">callback</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1SettingsObject.html#a5ddcc2e0bc6d4c2f88e6e00371d4792e">GpgFrontend::UI::SettingsObject::Check()</a>, <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36">GpgFrontend::SingletonFunctionObject&lt; GpgKeyImportExporter &gt;::GetInstance()</a>, <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36">GpgFrontend::SingletonFunctionObject&lt; GlobalSettingStation &gt;::GetInstance()</a>, <a class="el" href="classGpgFrontend_1_1GlobalSettingStation.html#a1d8b9f91c75ef7a1d008a171f09f2c0e">GpgFrontend::GlobalSettingStation::GetUISettings()</a>, and <a class="el" href="classGpgFrontend_1_1GpgKeyImportExporter.html#ab7a9be5283047695cd47562775adf79d">GpgFrontend::GpgKeyImportExporter::ImportKey()</a>.</p>
</div>
</div>
<a id="af1b3538d3119c8564e83c7661f73f6ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1b3538d3119c8564e83c7661f73f6ea">&#9670;&nbsp;</a></span>SlotImportKeyFromKeyServer <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotImportKeyFromKeyServer </td>
<td>(</td>
<td class="paramtype">QWidget *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1KeyMgmt.html#a23cf6665537f2a96708e9d5423ce3bb8">GpgFrontend::UI::KeyMgmt::create_actions()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a0ab96012df041f2c2e47092db0600355">GpgFrontend::UI::MainWindow::create_actions()</a>.</p>
</div>
</div>
<a id="a3bc26cc1e0f00f0ce2f95c0b6c8778d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bc26cc1e0f00f0ce2f95c0b6c8778d8">&#9670;&nbsp;</a></span>SlotImportKeys</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::CommonUtils::SlotImportKeys </td>
<td>(</td>
<td class="paramtype">QWidget *&#160;</td>
<td class="paramname"><em>parent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>in_buffer</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td></td></tr>
<tr><td class="paramname">in_buffer</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36">GpgFrontend::SingletonFunctionObject&lt; GpgKeyImportExporter &gt;::GetInstance()</a>, and <a class="el" href="classGpgFrontend_1_1GpgKeyImportExporter.html#ab7a9be5283047695cd47562775adf79d">GpgFrontend::GpgKeyImportExporter::ImportKey()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a55926649e28a96318b89afba01b966bf">GpgFrontend::UI::MainWindow::slot_import_key_from_edit()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a0c8bf56fc5371cd2c5e9d2a0f67bf72a">SlotImportKeyFromClipboard()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a057526790f6b2f6288c3a35322c34d8d">SlotImportKeyFromFile()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/ui/<a class="el" href="UserInterfaceUtils_8h_source.html">UserInterfaceUtils.h</a></li>
<li>src/ui/UserInterfaceUtils.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a></li><li class="navelem"><a class="el" href="namespaceGpgFrontend_1_1UI.html">UI</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html">CommonUtils</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>