GpgFrontend-Doxygen/docs/html/KeyServerImportDialog_8h_source.html

181 lines
20 KiB
HTML
Raw Normal View History

2022-05-08 19:59:26 +00:00
<!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"/>
2022-05-08 22:01:23 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
2022-05-08 19:59:26 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GpgFrontend Project: src/ui/dialog/import_export/KeyServerImportDialog.h Source File</title>
2022-05-08 19:59:26 +00:00
<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>
2022-05-08 22:01:23 +00:00
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
2022-05-08 19:59:26 +00:00
<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 -->
2022-05-08 19:59:26 +00:00
<script type="text/javascript">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
2022-05-08 19:59:26 +00:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2022-05-08 19:59:26 +00:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-05-08 22:01:23 +00:00
/* @license-end */</script>
2022-05-08 19:59:26 +00:00
<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">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2022-05-08 19:59:26 +00:00
$(document).ready(function(){initNavTree('KeyServerImportDialog_8h_source.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">
2022-05-08 22:01:23 +00:00
<div class="headertitle">
<div class="title">KeyServerImportDialog.h</div> </div>
2022-05-08 19:59:26 +00:00
</div><!--header-->
<div class="contents">
2022-05-08 22:01:23 +00:00
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;QtNetwork&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;KeyImportDetailDialog.h&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;core/typedef/CoreTypedef.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;ui/dialog/GeneralDialog.h&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceGpgFrontend_1_1UI.html">GpgFrontend::UI</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html"> 43</a></span>&#160;<span class="keyword">class </span><a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html">KeyServerImportDialog</a> : <span class="keyword">public</span> <a class="code" href="classGpgFrontend_1_1UI_1_1GeneralDialog.html">GeneralDialog</a> {</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; Q_OBJECT</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a4c4e44963dcd4f656b10788a7fafbb4e">KeyServerImportDialog</a>(QWidget* parent);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a1e17305d6b470d0f7050eb8e3e6ee3d8">SlotImport</a>(<span class="keyword">const</span> KeyIdArgsListPtr&amp; keys);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a1e17305d6b470d0f7050eb8e3e6ee3d8">SlotImport</a>(std::vector&lt;QString&gt; key_ids_list, QString keyserver_url);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; signals:</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordtype">void</span> SignalKeyImported();</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keyword">private</span> slots:</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#ac9c14bbc97945c94fd02c8e067ccab06">slot_import</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordtype">void</span> slot_search_finished(QNetworkReply::NetworkError reply,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; QByteArray buffer);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a236935d77e2b2a17ee66798c490f1361">slot_import_finished</a>(<span class="keywordtype">bool</span> success, QString err_msg, QByteArray buffer,</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; std::shared_ptr&lt;GpgImportInformation&gt; info);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">void</span> slot_search();</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a6f006d4702885fb41317d10d654dfa3c">create_keys_table</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#ab93fbf5e0626bffe398f5baa2bc00b1a">set_message</a>(<span class="keyword">const</span> QString&amp; text, <span class="keywordtype">bool</span> error);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a3b818c2a3e5c32fc32425b17e63367e2"> 129</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a3b818c2a3e5c32fc32425b17e63367e2">import_keys</a>(ByteArrayPtr in_data);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#ad4a75da57fa18bfcfaeb7fc601f1c8f6">set_loading</a>(<span class="keywordtype">bool</span> status);</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a4c5d8a43fd8a6f1c217d83694dcc689c"> 145</a></span>&#160; QPushButton* <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a4c5d8a43fd8a6f1c217d83694dcc689c">create_button</a>(<span class="keyword">const</span> QString&amp; text, <span class="keyword">const</span> <span class="keywordtype">char</span>* member);</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; QComboBox* <a class="code" href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#af64f0fb9433ea88853beec3a3dd5a334">create_combo_box</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; QHBoxLayout* message_layout_; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; QLineEdit* search_line_edit_{}; </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; QComboBox* key_server_combo_box_{}; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; QProgressBar* waiting_bar_; </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; QLabel* search_label_{}; </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; QLabel* key_server_label_{}; </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; QLabel* message_{}; </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; QLabel* icon_{}; </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; QPushButton* close_button_{}; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; QPushButton* import_button_{}; </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; QPushButton* search_button_{}; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; QTableWidget* keys_table_{}; </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;};</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;} <span class="comment">// namespace GpgFrontend::UI</span></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1GeneralDialog_html"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1GeneralDialog.html">GpgFrontend::UI::GeneralDialog</a></div><div class="ttdef"><b>Definition:</b> GeneralDialog.h:35</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html">GpgFrontend::UI::KeyServerImportDialog</a></div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.h:43</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_a1e17305d6b470d0f7050eb8e3e6ee3d8"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a1e17305d6b470d0f7050eb8e3e6ee3d8">GpgFrontend::UI::KeyServerImportDialog::SlotImport</a></div><div class="ttdeci">void SlotImport(const KeyIdArgsListPtr &amp;keys)</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:379</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_a236935d77e2b2a17ee66798c490f1361"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a236935d77e2b2a17ee66798c490f1361">GpgFrontend::UI::KeyServerImportDialog::slot_import_finished</a></div><div class="ttdeci">void slot_import_finished(bool success, QString err_msg, QByteArray buffer, std::shared_ptr&lt; GpgImportInformation &gt; info)</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:411</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_a3b818c2a3e5c32fc32425b17e63367e2"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a3b818c2a3e5c32fc32425b17e63367e2">GpgFrontend::UI::KeyServerImportDialog::import_keys</a></div><div class="ttdeci">void import_keys(ByteArrayPtr in_data)</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_a4c4e44963dcd4f656b10788a7fafbb4e"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a4c4e44963dcd4f656b10788a7fafbb4e">GpgFrontend::UI::KeyServerImportDialog::KeyServerImportDialog</a></div><div class="ttdeci">KeyServerImportDialog(QWidget *parent)</div><div class="ttdoc">Construct a new Key Server Import Dialog object.</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:42</div></div>
2022-05-08 22:01:23 +00:00
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_a4c5d8a43fd8a6f1c217d83694dcc689c"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a4c5d8a43fd8a6f1c217d83694dcc689c">GpgFrontend::UI::KeyServerImportDialog::create_button</a></div><div class="ttdeci">QPushButton * create_button(const QString &amp;text, const char *member)</div><div class="ttdoc">Create a button object.</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_a6f006d4702885fb41317d10d654dfa3c"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#a6f006d4702885fb41317d10d654dfa3c">GpgFrontend::UI::KeyServerImportDialog::create_keys_table</a></div><div class="ttdeci">void create_keys_table()</div><div class="ttdoc">Create a keys table object.</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:141</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_ab93fbf5e0626bffe398f5baa2bc00b1a"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#ab93fbf5e0626bffe398f5baa2bc00b1a">GpgFrontend::UI::KeyServerImportDialog::set_message</a></div><div class="ttdeci">void set_message(const QString &amp;text, bool error)</div><div class="ttdoc">Set the message object.</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:163</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_ac9c14bbc97945c94fd02c8e067ccab06"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#ac9c14bbc97945c94fd02c8e067ccab06">GpgFrontend::UI::KeyServerImportDialog::slot_import</a></div><div class="ttdeci">void slot_import()</div><div class="ttdoc">import key(s) for the key table selection</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:361</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_ad4a75da57fa18bfcfaeb7fc601f1c8f6"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#ad4a75da57fa18bfcfaeb7fc601f1c8f6">GpgFrontend::UI::KeyServerImportDialog::set_loading</a></div><div class="ttdeci">void set_loading(bool status)</div><div class="ttdoc">Set the loading object.</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:431</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1KeyServerImportDialog_html_af64f0fb9433ea88853beec3a3dd5a334"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1KeyServerImportDialog.html#af64f0fb9433ea88853beec3a3dd5a334">GpgFrontend::UI::KeyServerImportDialog::create_combo_box</a></div><div class="ttdeci">QComboBox * create_combo_box()</div><div class="ttdoc">Create a comboBox object.</div><div class="ttdef"><b>Definition:</b> KeyServerImportDialog.cpp:123</div></div>
<div class="ttc" id="anamespaceGpgFrontend_1_1UI_html"><div class="ttname"><a href="namespaceGpgFrontend_1_1UI.html">GpgFrontend::UI</a></div><div class="ttdef"><b>Definition:</b> FileReadTask.cpp:31</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2022-05-08 19:59:26 +00:00
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_da5c6b39c0a2f54e57df6799511cd3ab.html">ui</a></li><li class="navelem"><a class="el" href="dir_60d155722ad55e64f9b6ab1078feff11.html">dialog</a></li><li class="navelem"><a class="el" href="dir_0652c688762e27a1001e51709de145a7.html">import_export</a></li><li class="navelem"><b>KeyServerImportDialog.h</b></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>
2022-05-08 19:59:26 +00:00
</ul>
</div>
</body>
</html>