GpgFrontend-Doxygen/docs/html/classGpgFrontend_1_1Thread_1_1Task.html

487 lines
27 KiB
HTML
Raw Permalink Normal View History

<!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::Thread::Task 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_1Thread_1_1Task.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="#nested-classes">Classes</a> &#124;
<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="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classGpgFrontend_1_1Thread_1_1Task-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">GpgFrontend::Thread::Task Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for GpgFrontend::Thread::Task:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1Thread_1_1Task__inherit__graph.png" border="0" usemap="#aGpgFrontend_1_1Thread_1_1Task_inherit__map" alt="Inheritance graph"/></div>
<map name="aGpgFrontend_1_1Thread_1_1Task_inherit__map" id="aGpgFrontend_1_1Thread_1_1Task_inherit__map">
<area shape="rect" title=" " alt="" coords="495,131,656,413"/>
<area shape="rect" href="classGpgFrontend_1_1UI_1_1FileReadTask.html" title=" " alt="" coords="5,483,225,634"/>
<area shape="rect" href="classGpgFrontend_1_1UI_1_1KeyServerImportTask.html" title=" " alt="" coords="249,461,451,656"/>
<area shape="rect" href="classGpgFrontend_1_1UI_1_1KeyServerSearchTask.html" title=" " alt="" coords="475,469,676,649"/>
<area shape="rect" href="classGpgFrontend_1_1UI_1_1ListedKeyServerTestTask.html" title=" " alt="" coords="700,461,907,656"/>
<area shape="rect" href="classGpgFrontend_1_1UI_1_1ProxyConnectionTestTask.html" title=" " alt="" coords="931,469,1177,649"/>
<area shape="rect" title=" " alt="" coords="485,5,559,83"/>
<area shape="rect" title=" " alt="" coords="583,5,677,83"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for GpgFrontend::Thread::Task:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1Thread_1_1Task__coll__graph.png" border="0" usemap="#aGpgFrontend_1_1Thread_1_1Task_coll__map" alt="Collaboration graph"/></div>
<map name="aGpgFrontend_1_1Thread_1_1Task_coll__map" id="aGpgFrontend_1_1Thread_1_1Task_coll__map">
<area shape="rect" title=" " alt="" coords="15,131,177,413"/>
<area shape="rect" title=" " alt="" coords="5,5,80,83"/>
<area shape="rect" title=" " alt="" coords="104,5,197,83"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1Impl.html">Impl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1TaskHandler.html">TaskHandler</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:aa0015912ca0513a10252e01db7b527bb"><td class="memItemLeft" align="right" valign="top"><a id="aa0015912ca0513a10252e01db7b527bb"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>TaskRunnable</b> = std::function&lt; int(DataObjectPtr)&gt;</td></tr>
<tr class="separator:aa0015912ca0513a10252e01db7b527bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a492f8b0f6ec2832da20fc481bfa5cdbd"><td class="memItemLeft" align="right" valign="top"><a id="a492f8b0f6ec2832da20fc481bfa5cdbd"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>TaskCallback</b> = std::function&lt; void(int, DataObjectPtr)&gt;</td></tr>
<tr class="separator:a492f8b0f6ec2832da20fc481bfa5cdbd"><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:a3983635b9bcb8d7ec84d97109dddacec"><td class="memItemLeft" align="right" valign="top"><a id="a3983635b9bcb8d7ec84d97109dddacec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a3983635b9bcb8d7ec84d97109dddacec">SafelyRun</a> ()</td></tr>
<tr class="memdesc:a3983635b9bcb8d7ec84d97109dddacec"><td class="mdescLeft">&#160;</td><td class="mdescRight">shouldn't be overwrite by subclass <br /></td></tr>
<tr class="separator:a3983635b9bcb8d7ec84d97109dddacec"><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:af1045b03816eef60faad2e6a8ee84a5c"><td class="memItemLeft" align="right" valign="top"><a id="af1045b03816eef60faad2e6a8ee84a5c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalRun</b> ()</td></tr>
<tr class="separator:af1045b03816eef60faad2e6a8ee84a5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3367693d6c28d81f94a46fcd0e29d27c"><td class="memItemLeft" align="right" valign="top"><a id="a3367693d6c28d81f94a46fcd0e29d27c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalTaskShouldEnd</b> (int)</td></tr>
<tr class="separator:a3367693d6c28d81f94a46fcd0e29d27c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbbb68bcac48b6c31d6fe8ee1572f151"><td class="memItemLeft" align="right" valign="top"><a id="abbbb68bcac48b6c31d6fe8ee1572f151"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SignalTaskEnd</b> ()</td></tr>
<tr class="separator:abbbb68bcac48b6c31d6fe8ee1572f151"><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:a3ca97551610b81a476d5594c97fde559"><td class="memItemLeft" align="right" valign="top"><a id="a3ca97551610b81a476d5594c97fde559"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a3ca97551610b81a476d5594c97fde559">Task</a> (QString name)</td></tr>
<tr class="memdesc:a3ca97551610b81a476d5594c97fde559"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</a> object. <br /></td></tr>
<tr class="separator:a3ca97551610b81a476d5594c97fde559"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a287d737e66f873850d5eb49d1475a762"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a287d737e66f873850d5eb49d1475a762">Task</a> (TaskRunnable runnable, QString name, DataObjectPtr data_object=nullptr)</td></tr>
<tr class="memdesc:a287d737e66f873850d5eb49d1475a762"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</a> object. <a href="classGpgFrontend_1_1Thread_1_1Task.html#a287d737e66f873850d5eb49d1475a762">More...</a><br /></td></tr>
<tr class="separator:a287d737e66f873850d5eb49d1475a762"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa69068f1b2f930d6ab1d9f66340c565"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#afa69068f1b2f930d6ab1d9f66340c565">Task</a> (TaskRunnable runnable, QString name, DataObjectPtr data, TaskCallback callback)</td></tr>
<tr class="memdesc:afa69068f1b2f930d6ab1d9f66340c565"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</a> object. <a href="classGpgFrontend_1_1Thread_1_1Task.html#afa69068f1b2f930d6ab1d9f66340c565">More...</a><br /></td></tr>
<tr class="separator:afa69068f1b2f930d6ab1d9f66340c565"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37766a505662b33ad14672c29e209ea8"><td class="memItemLeft" align="right" valign="top"><a id="a37766a505662b33ad14672c29e209ea8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a37766a505662b33ad14672c29e209ea8">~Task</a> () override</td></tr>
<tr class="memdesc:a37766a505662b33ad14672c29e209ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy the <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</a> object. <br /></td></tr>
<tr class="separator:a37766a505662b33ad14672c29e209ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf42a45a657d8dc8658ed0e322ff161b"><td class="memItemLeft" align="right" valign="top">auto&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#acf42a45a657d8dc8658ed0e322ff161b">GetUUID</a> () const -&gt; QString</td></tr>
<tr class="separator:acf42a45a657d8dc8658ed0e322ff161b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabda16361fa50a05e72de5f6ac37a53e"><td class="memItemLeft" align="right" valign="top">auto&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#aabda16361fa50a05e72de5f6ac37a53e">GetFullID</a> () const -&gt; QString</td></tr>
<tr class="memdesc:aabda16361fa50a05e72de5f6ac37a53e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Full I D object. <a href="classGpgFrontend_1_1Thread_1_1Task.html#aabda16361fa50a05e72de5f6ac37a53e">More...</a><br /></td></tr>
<tr class="separator:aabda16361fa50a05e72de5f6ac37a53e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c3cab68d4cf8c9dcf379869132b1896"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a5c3cab68d4cf8c9dcf379869132b1896">HoldOnLifeCycle</a> (bool hold_on)</td></tr>
<tr class="separator:a5c3cab68d4cf8c9dcf379869132b1896"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e3d4206efeeff5d3d6f1b5f0c60ab2"><td class="memItemLeft" align="right" valign="top">virtual auto&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#ab3e3d4206efeeff5d3d6f1b5f0c60ab2">Run</a> () -&gt; int</td></tr>
<tr class="memdesc:ab3e3d4206efeeff5d3d6f1b5f0c60ab2"><td class="mdescLeft">&#160;</td><td class="mdescRight">can be overwrite by subclass <a href="classGpgFrontend_1_1Thread_1_1Task.html#ab3e3d4206efeeff5d3d6f1b5f0c60ab2">More...</a><br /></td></tr>
<tr class="separator:ab3e3d4206efeeff5d3d6f1b5f0c60ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38af36201658a25cc6479598acd455a1"><td class="memItemLeft" align="right" valign="top">auto&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a38af36201658a25cc6479598acd455a1">GetRTN</a> ()</td></tr>
<tr class="separator:a38af36201658a25cc6479598acd455a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a406206b3ecb2bdcff9608d762735c5e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a406206b3ecb2bdcff9608d762735c5e4">setRTN</a> (int rtn)</td></tr>
<tr class="separator:a406206b3ecb2bdcff9608d762735c5e4"><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:a6f8d197950dcf38aeb126bd4007656d3"><td class="memItemLeft" align="right" valign="top"><a id="a6f8d197950dcf38aeb126bd4007656d3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>slot_exception_safe_run</b> () noexcept</td></tr>
<tr class="separator:a6f8d197950dcf38aeb126bd4007656d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a024a05bb89556c5b93336cb35d4bd10c"><td class="memItemLeft" align="right" valign="top"><a id="a024a05bb89556c5b93336cb35d4bd10c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>run</b> () override</td></tr>
<tr class="separator:a024a05bb89556c5b93336cb35d4bd10c"><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:ab5a4d50b9d0eebad370a514735b6343d"><td class="memItemLeft" align="right" valign="top"><a id="ab5a4d50b9d0eebad370a514735b6343d"></a>
SecureUniquePtr&lt; <a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1Impl.html">Impl</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>p_</b></td></tr>
<tr class="separator:ab5a4d50b9d0eebad370a514735b6343d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1956d94b45592a4096a335641aab65f8"><td class="memItemLeft" align="right" valign="top"><a id="a1956d94b45592a4096a335641aab65f8"></a>
<a class="el" href="classclass.html">class</a>&#160;</td><td class="memItemRight" valign="bottom"><b>TaskRunner</b></td></tr>
<tr class="separator:a1956d94b45592a4096a335641aab65f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a287d737e66f873850d5eb49d1475a762"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a287d737e66f873850d5eb49d1475a762">&#9670;&nbsp;</a></span>Task() <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">GpgFrontend::Thread::Task::Task </td>
<td>(</td>
<td class="paramtype">TaskRunnable&#160;</td>
<td class="paramname"><em>runnable</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QString&#160;</td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">DataObjectPtr&#160;</td>
<td class="paramname"><em>data_object</em> = <code>nullptr</code>&#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">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a new <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">callback</td><td>The callback function to be executed. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="afa69068f1b2f930d6ab1d9f66340c565"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa69068f1b2f930d6ab1d9f66340c565">&#9670;&nbsp;</a></span>Task() <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">GpgFrontend::Thread::Task::Task </td>
<td>(</td>
<td class="paramtype">TaskRunnable&#160;</td>
<td class="paramname"><em>runnable</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QString&#160;</td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">DataObjectPtr&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TaskCallback&#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">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a new <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">runnable</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aabda16361fa50a05e72de5f6ac37a53e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aabda16361fa50a05e72de5f6ac37a53e">&#9670;&nbsp;</a></span>GetFullID()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString GpgFrontend::Thread::Task::GetFullID </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const -&gt; QString</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the Full I D object. </p>
<dl class="section return"><dt>Returns</dt><dd>QString </dd></dl>
</div>
</div>
<a id="a38af36201658a25cc6479598acd455a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38af36201658a25cc6479598acd455a1">&#9670;&nbsp;</a></span>GetRTN()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">auto GpgFrontend::Thread::Task::GetRTN </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>auto </dd></dl>
</div>
</div>
<a id="acf42a45a657d8dc8658ed0e322ff161b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf42a45a657d8dc8658ed0e322ff161b">&#9670;&nbsp;</a></span>GetUUID()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString GpgFrontend::Thread::Task::GetUUID </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const -&gt; QString</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>QString </dd></dl>
</div>
</div>
<a id="a5c3cab68d4cf8c9dcf379869132b1896"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c3cab68d4cf8c9dcf379869132b1896">&#9670;&nbsp;</a></span>HoldOnLifeCycle()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::Thread::Task::HoldOnLifeCycle </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>hold_on</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">hold_on</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1KeyServerImportTask.html#afd28e55f5fa19fbaa0f1f430abd3c07d">GpgFrontend::UI::KeyServerImportTask::KeyServerImportTask()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1KeyServerSearchTask.html#ab0bdaf21a52b44090a935ae8d36651b7">GpgFrontend::UI::KeyServerSearchTask::KeyServerSearchTask()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1ListedKeyServerTestTask.html#a260619046e2b8af8d3396cefa7a05129">GpgFrontend::UI::ListedKeyServerTestTask::ListedKeyServerTestTask()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1ProxyConnectionTestTask.html#a8036aaf9a2adcf033fc9f8e51da59956">GpgFrontend::UI::ProxyConnectionTestTask::ProxyConnectionTestTask()</a>.</p>
</div>
</div>
<a id="ab3e3d4206efeeff5d3d6f1b5f0c60ab2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3e3d4206efeeff5d3d6f1b5f0c60ab2">&#9670;&nbsp;</a></span>Run()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int GpgFrontend::Thread::Task::Run </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> -&gt; int</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>can be overwrite by subclass </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>
<p>Reimplemented in <a class="el" href="classGpgFrontend_1_1UI_1_1FileReadTask.html#abd8f62be2b544d0fc8bbb1e5b7b3de9b">GpgFrontend::UI::FileReadTask</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1ProxyConnectionTestTask.html#a0c58343f261ff4304868f314f03ca658">GpgFrontend::UI::ProxyConnectionTestTask</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1ListedKeyServerTestTask.html#a3f0a9f8c46e7495b654f297594de8ea3">GpgFrontend::UI::ListedKeyServerTestTask</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1KeyServerSearchTask.html#a2a1a60dc9e87755ed77a2e6318b23115">GpgFrontend::UI::KeyServerSearchTask</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1KeyServerImportTask.html#acc4979fdc2daa3c0805754a725969aa3">GpgFrontend::UI::KeyServerImportTask</a>.</p>
</div>
</div>
<a id="a406206b3ecb2bdcff9608d762735c5e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a406206b3ecb2bdcff9608d762735c5e4">&#9670;&nbsp;</a></span>setRTN()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::Thread::Task::setRTN </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>rtn</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rtn</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/core/thread/<a class="el" href="Task_8h_source.html">Task.h</a></li>
<li>src/core/thread/Task.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_1Thread.html">Thread</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html">Task</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>