GpgFrontend-Doxygen/docs/html/classGpgFrontend_1_1UI_1_1CommonUtils.html

698 lines
40 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,531"/>
<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,840"/>
<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:a90722cc0708fdb2637052151c5141a80"><td class="memItemLeft" align="right" valign="top"><a id="a90722cc0708fdb2637052151c5141a80"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>ImportCallbackFunctiopn</b> = std::function&lt; void(const QString &amp;, const QString &amp;, size_t, size_t)&gt;</td></tr>
<tr class="separator:a90722cc0708fdb2637052151c5141a80"><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:ae730cf0ee73379186f082f29a90a2f94"><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#ae730cf0ee73379186f082f29a90a2f94">SlotImportKeys</a> (QWidget *parent, const QString &amp;in_buffer)</td></tr>
<tr class="separator:ae730cf0ee73379186f082f29a90a2f94"><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:a39fbfbc9ab39581330a02d9cb54e6e4d"><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#a39fbfbc9ab39581330a02d9cb54e6e4d">SlotExecuteCommand</a> (const QString &amp;cmd, const QStringList &amp;arguments, const std::function&lt; void(QProcess *)&gt; &amp;interact_func)</td></tr>
<tr class="separator:a39fbfbc9ab39581330a02d9cb54e6e4d"><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:ac114b2cd508cfbf988e251a36f51762e"><td class="memItemLeft" align="right" valign="top"><a id="ac114b2cd508cfbf988e251a36f51762e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalBadGnupgEnv</b> (QString)</td></tr>
<tr class="separator:ac114b2cd508cfbf988e251a36f51762e"><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: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:ae42826374fcdb0fe72af06542ab155dd"><td class="memItemLeft" align="right" valign="top"><a id="ae42826374fcdb0fe72af06542ab155dd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isApplicationNeedRestart</b> ()</td></tr>
<tr class="separator:ae42826374fcdb0fe72af06542ab155dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2b48eecb23d985b6fe1e2ac70f3be29"><td class="memItemLeft" align="right" valign="top"><a id="ac2b48eecb23d985b6fe1e2ac70f3be29"></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:ac2b48eecb23d985b6fe1e2ac70f3be29"><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>
<tr class="memitem:a8d91f95f655e3442ea3b04a691255db0"><td class="memItemLeft" align="right" valign="top"><a id="a8d91f95f655e3442ea3b04a691255db0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ImportKeyFromKeyServer</b> (const KeyIdArgsList &amp;)</td></tr>
<tr class="separator:a8d91f95f655e3442ea3b04a691255db0"><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:a530688726ce3a319de8d4bdcc291db87"><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#a530688726ce3a319de8d4bdcc291db87">GetInstance</a> ()</td></tr>
<tr class="memdesc:a530688726ce3a319de8d4bdcc291db87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Instance object. <a href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a530688726ce3a319de8d4bdcc291db87">More...</a><br /></td></tr>
<tr class="separator:a530688726ce3a319de8d4bdcc291db87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc42d12a58717dee86d8bd59b1cacf82"><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#adc42d12a58717dee86d8bd59b1cacf82">WaitForOpera</a> (QWidget *parent, const QString &amp;, const OperaWaitingCb &amp;)</td></tr>
<tr class="separator:adc42d12a58717dee86d8bd59b1cacf82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2eb678ee01d3b6e1c0d8f90345712644"><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#a2eb678ee01d3b6e1c0d8f90345712644">RaiseMessageBox</a> (QWidget *parent, <a class="el" href="namespaceGpgFrontend.html#a2470eb154743191c3454203f23d3a2f8">GpgError</a> err)</td></tr>
<tr class="separator:a2eb678ee01d3b6e1c0d8f90345712644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bc0d817e2083cc262f4fb2c65027442"><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#a4bc0d817e2083cc262f4fb2c65027442">RaiseFailureMessageBox</a> (QWidget *parent, <a class="el" href="namespaceGpgFrontend.html#a2470eb154743191c3454203f23d3a2f8">GpgError</a> err)</td></tr>
<tr class="separator:a4bc0d817e2083cc262f4fb2c65027442"><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:acd55e73b89ba12b52887b1f8ab41d614"><td class="memItemLeft" align="right" valign="top"><a id="acd55e73b89ba12b52887b1f8ab41d614"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>slot_update_key_from_server_finished</b> (bool, QString, QByteArray, std::shared_ptr&lt; <a class="el" href="classGpgFrontend_1_1GpgImportInformation.html">GpgImportInformation</a> &gt;)</td></tr>
<tr class="separator:acd55e73b89ba12b52887b1f8ab41d614"><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="a530688726ce3a319de8d4bdcc291db87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a530688726ce3a319de8d4bdcc291db87">&#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">auto 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="namespaceGpgFrontend_1_1UI.html#ab0311557c1d7bde9c56cbca85fefa6ad">GpgFrontend::UI::InitGpgFrontendUI()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#adfa3b3ae1de1fd04c5ea09e3c97c3e98">GpgFrontend::UI::MainWindow::refresh_keys_from_key_server()</a>, <a class="el" href="namespaceGpgFrontend_1_1UI.html#ac53b300d580dcb56188aaed68c3de755">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="a4bc0d817e2083cc262f4fb2c65027442"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bc0d817e2083cc262f4fb2c65027442">&#9670;&nbsp;</a></span>RaiseFailureMessageBox()</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::RaiseFailureMessageBox </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"><a class="el" href="namespaceGpgFrontend.html#a2470eb154743191c3454203f23d3a2f8">GpgError</a>&#160;</td>
<td class="paramname"><em>err</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> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">err</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="namespaceGpgFrontend.html#ac75881bd0bf993fa53464dbf76342a39">GpgFrontend::CheckGpgError2ErrCode()</a>, and <a class="el" href="namespaceGpgFrontend.html#aa22dc541423cb09a1dd250d458eb069c">GpgFrontend::DescribeGpgErrCode()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a2eb678ee01d3b6e1c0d8f90345712644">RaiseMessageBox()</a>.</p>
</div>
</div>
<a id="a2eb678ee01d3b6e1c0d8f90345712644"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2eb678ee01d3b6e1c0d8f90345712644">&#9670;&nbsp;</a></span>RaiseMessageBox()</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::RaiseMessageBox </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"><a class="el" href="namespaceGpgFrontend.html#a2470eb154743191c3454203f23d3a2f8">GpgError</a>&#160;</td>
<td class="paramname"><em>err</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> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">err</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="namespaceGpgFrontend.html#ac75881bd0bf993fa53464dbf76342a39">GpgFrontend::CheckGpgError2ErrCode()</a>, <a class="el" href="namespaceGpgFrontend.html#aa22dc541423cb09a1dd250d458eb069c">GpgFrontend::DescribeGpgErrCode()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#a4bc0d817e2083cc262f4fb2c65027442">RaiseFailureMessageBox()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a76bf3784d751db78ed13bd9962e14472">GpgFrontend::UI::MainWindow::slot_append_selected_keys()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1KeyPairOperaTab.html#a384f4250e58110da58c0e6996b42a8ab">GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1KeyGenDialog.html#af1f7a62dcb024513453766ee8816d514">GpgFrontend::UI::KeyGenDialog::slot_key_gen_accept()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1SubkeyGenerateDialog.html#aab426dec4b4655b215b09b490e05ad05">GpgFrontend::UI::SubkeyGenerateDialog::slot_key_gen_accept()</a>.</p>
</div>
</div>
<a id="a39fbfbc9ab39581330a02d9cb54e6e4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39fbfbc9ab39581330a02d9cb54e6e4d">&#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 QString &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>
</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#ae730cf0ee73379186f082f29a90a2f94">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>.</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="namespaceGpgFrontend.html#a253c30d60238c5c0ed1545d0c7bf31de">GpgFrontend::ReadFile()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1CommonUtils.html#ae730cf0ee73379186f082f29a90a2f94">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>.</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="namespaceGpgFrontend.html#aa0393307275afa9b4f27f7ff0d74f9ae">GpgFrontend::GetHttpRequestUserAgent()</a>, and <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#ac963fee992753970bfb5c81608d4070f">GpgFrontend::SingletonFunctionObject&lt; GpgKeyImportExporter &gt;::GetInstance()</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>.</p>
</div>
</div>
<a id="ae730cf0ee73379186f082f29a90a2f94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae730cf0ee73379186f082f29a90a2f94">&#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 QString &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#ac963fee992753970bfb5c81608d4070f">GpgFrontend::SingletonFunctionObject&lt; GpgKeyImportExporter &gt;::GetInstance()</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>
<a id="adc42d12a58717dee86d8bd59b1cacf82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc42d12a58717dee86d8bd59b1cacf82">&#9670;&nbsp;</a></span>WaitForOpera()</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::WaitForOpera </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 QString &amp;&#160;</td>
<td class="paramname"><em>waiting_dialog_title</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const OperaWaitingCb &amp;&#160;</td>
<td class="paramname"><em>opera</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> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">err</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1KeyGenDialog.html#af1f7a62dcb024513453766ee8816d514">GpgFrontend::UI::KeyGenDialog::slot_key_gen_accept()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1SubkeyGenerateDialog.html#aab426dec4b4655b215b09b490e05ad05">GpgFrontend::UI::SubkeyGenerateDialog::slot_key_gen_accept()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aba7c5572c2736701cc5799776876bbdd">GpgFrontend::UI::MainWindow::SlotArchiveDecrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a8ee995b7d1a21ebaab2333a5e79ae77c">GpgFrontend::UI::MainWindow::SlotArchiveDecryptVerify()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a3751c475a29a5827a5eea587ffa6abfb">GpgFrontend::UI::MainWindow::SlotDecrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a7d38ca18a8688b5df163157d26a14c72">GpgFrontend::UI::MainWindow::SlotDecryptVerify()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#af999edaa3ce60ed0303ded5fcd4ed527">GpgFrontend::UI::MainWindow::SlotDirectoryEncryptSign()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a07d02cdb29a8101f988e776ceecc49ad">GpgFrontend::UI::MainWindow::SlotEncrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aca691847190c39fe2d41d669b1e686b8">GpgFrontend::UI::MainWindow::SlotEncryptSign()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a60d82d4da1775ef21284543435a1f421">GpgFrontend::UI::MainWindow::SlotFileDecrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#afd80e8d6e6a1acad0cd12e26635cfc22">GpgFrontend::UI::MainWindow::SlotFileDecryptVerify()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a88c467b5be4712f7d2b16da0e96cd7e9">GpgFrontend::UI::MainWindow::SlotFileEncrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#afc86384de0913968ab767e930fc9e24f">GpgFrontend::UI::MainWindow::SlotFileEncryptSign()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aa0bb003f2f1209a4e4d10e94e3d5d06d">GpgFrontend::UI::MainWindow::SlotFileSign()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aea395f8629aef1532bcec3de337fa6ac">GpgFrontend::UI::MainWindow::SlotFileVerify()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aa2aeef298a7a05fc1b38bad75b62aad8">GpgFrontend::UI::MainWindow::SlotSign()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#ac9bf2a20727eb8e727aa2e3ce5c248e5">GpgFrontend::UI::MainWindow::SlotVerify()</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>