585 lines
36 KiB
HTML
585 lines
36 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::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&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&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&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> |
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-slots">Public Slots</a> |
|
|
<a href="#signals">Signals</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
|
<a href="#pro-methods">Protected Member Functions</a> |
|
|
<a href="#pri-slots">Private Slots</a> |
|
|
<a href="#pri-methods">Private Member Functions</a> |
|
|
<a href="#pri-static-methods">Static Private Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="#friends">Friends</a> |
|
|
<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="663,131,853,575"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1Thread_1_1CtxCheckTask.html" title=" " alt="" coords="5,696,164,803"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1UI_1_1FileReadTask.html" title=" " alt="" coords="188,667,408,832"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1UI_1_1KeyServerImportTask.html" title=" " alt="" coords="432,652,633,847"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1UI_1_1KeyServerSearchTask.html" title=" " alt="" coords="657,659,859,839"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1UI_1_1ListedKeyServerTestTask.html" title=" " alt="" coords="883,652,1089,847"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1UI_1_1ProxyConnectionTestTask.html" title=" " alt="" coords="1114,659,1359,839"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1UI_1_1VersionCheckTask.html" title=" " alt="" coords="1383,623,1581,876"/>
|
|
<area shape="rect" title=" " alt="" coords="667,5,742,83"/>
|
|
<area shape="rect" title=" " alt="" coords="766,5,859,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="92,469,281,855"/>
|
|
<area shape="rect" title=" " alt="" coords="5,300,80,377"/>
|
|
<area shape="rect" title=" " alt="" coords="104,300,197,377"/>
|
|
<area shape="rect" title=" " alt="" coords="222,300,309,377"/>
|
|
<area shape="rect" title=" " alt="" coords="196,145,335,237"/>
|
|
<area shape="rect" title=" " alt="" coords="333,300,555,377"/>
|
|
<area shape="rect" title=" " alt="" coords="365,153,523,230"/>
|
|
<area shape="rect" title=" " alt="" coords="425,5,463,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  </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1DataObject.html">DataObject</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1DataObject.html" title="DataObject to be passed to the callback function.">DataObject</a> to be passed to the callback function. <a href="classGpgFrontend_1_1Thread_1_1Task_1_1DataObject.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </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:a58f0de628876e2c064f3867f209ce1c9"><td class="memItemLeft" align="right" valign="top"><a id="a58f0de628876e2c064f3867f209ce1c9"></a>
|
|
using </td><td class="memItemRight" valign="bottom"><b>DataObjectPtr</b> = std::shared_ptr< <a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1DataObject.html">DataObject</a> ></td></tr>
|
|
<tr class="separator:a58f0de628876e2c064f3867f209ce1c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa0015912ca0513a10252e01db7b527bb"><td class="memItemLeft" align="right" valign="top"><a id="aa0015912ca0513a10252e01db7b527bb"></a>
|
|
using </td><td class="memItemRight" valign="bottom"><b>TaskRunnable</b> = std::function< int(DataObjectPtr)></td></tr>
|
|
<tr class="separator:aa0015912ca0513a10252e01db7b527bb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a492f8b0f6ec2832da20fc481bfa5cdbd"><td class="memItemLeft" align="right" valign="top"><a id="a492f8b0f6ec2832da20fc481bfa5cdbd"></a>
|
|
using </td><td class="memItemRight" valign="bottom"><b>TaskCallback</b> = std::function< void(int, DataObjectPtr)></td></tr>
|
|
<tr class="separator:a492f8b0f6ec2832da20fc481bfa5cdbd"><td class="memSeparator" colspan="2"> </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:aff3823caa1d44cb84b4bf2822a4ab125"><td class="memItemLeft" align="right" valign="top"><a id="aff3823caa1d44cb84b4bf2822a4ab125"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SlotRun</b> ()</td></tr>
|
|
<tr class="separator:aff3823caa1d44cb84b4bf2822a4ab125"><td class="memSeparator" colspan="2"> </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:a125b7e71f21dadf10618e30ee0386b12"><td class="memItemLeft" align="right" valign="top"><a id="a125b7e71f21dadf10618e30ee0386b12"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a125b7e71f21dadf10618e30ee0386b12">SignalTaskRunnableEnd</a> (int rtn)</td></tr>
|
|
<tr class="memdesc:a125b7e71f21dadf10618e30ee0386b12"><td class="mdescLeft"> </td><td class="mdescRight">announce runnable finished <br /></td></tr>
|
|
<tr class="separator:a125b7e71f21dadf10618e30ee0386b12"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abbbb68bcac48b6c31d6fe8ee1572f151"><td class="memItemLeft" align="right" valign="top"><a id="abbbb68bcac48b6c31d6fe8ee1572f151"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#abbbb68bcac48b6c31d6fe8ee1572f151">SignalTaskEnd</a> ()</td></tr>
|
|
<tr class="memdesc:abbbb68bcac48b6c31d6fe8ee1572f151"><td class="mdescLeft"> </td><td class="mdescRight">runnable and callabck all finished <br /></td></tr>
|
|
<tr class="separator:abbbb68bcac48b6c31d6fe8ee1572f151"><td class="memSeparator" colspan="2"> </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:abdff056f5c96f00ac67bd1edcb5f0a48"><td class="memItemLeft" align="right" valign="top"><a id="abdff056f5c96f00ac67bd1edcb5f0a48"></a>
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#abdff056f5c96f00ac67bd1edcb5f0a48">Task</a> (std::string name=<a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a4a2cad8747108322152b41c049f99c72">DEFAULT_TASK_NAME</a>)</td></tr>
|
|
<tr class="memdesc:abdff056f5c96f00ac67bd1edcb5f0a48"><td class="mdescLeft"> </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:abdff056f5c96f00ac67bd1edcb5f0a48"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a79f935428d2e03585673226228a7ffff"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a79f935428d2e03585673226228a7ffff">Task</a> (TaskRunnable runnable, std::string name=<a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a4a2cad8747108322152b41c049f99c72">DEFAULT_TASK_NAME</a>, DataObjectPtr data_object=nullptr, bool sequency=true)</td></tr>
|
|
<tr class="memdesc:a79f935428d2e03585673226228a7ffff"><td class="mdescLeft"> </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#a79f935428d2e03585673226228a7ffff">More...</a><br /></td></tr>
|
|
<tr class="separator:a79f935428d2e03585673226228a7ffff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a59047d6d26fdf78f9b43ddc189d84958"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a59047d6d26fdf78f9b43ddc189d84958">Task</a> (TaskRunnable runnable, std::string name, DataObjectPtr data, TaskCallback callback=[](int, const std::shared_ptr< <a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1DataObject.html">DataObject</a> > &) {}, bool sequency=true)</td></tr>
|
|
<tr class="memdesc:a59047d6d26fdf78f9b43ddc189d84958"><td class="mdescLeft"> </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#a59047d6d26fdf78f9b43ddc189d84958">More...</a><br /></td></tr>
|
|
<tr class="separator:a59047d6d26fdf78f9b43ddc189d84958"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a37766a505662b33ad14672c29e209ea8"><td class="memItemLeft" align="right" valign="top"><a id="a37766a505662b33ad14672c29e209ea8"></a>
|
|
virtual </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"> </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"> </td></tr>
|
|
<tr class="memitem:ac60aa71a24f452fd8031597ff4cbbd00"><td class="memItemLeft" align="right" valign="top"><a id="ac60aa71a24f452fd8031597ff4cbbd00"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#ac60aa71a24f452fd8031597ff4cbbd00">Run</a> ()</td></tr>
|
|
<tr class="memdesc:ac60aa71a24f452fd8031597ff4cbbd00"><td class="mdescLeft"> </td><td class="mdescRight">Run - run the task. <br /></td></tr>
|
|
<tr class="separator:ac60aa71a24f452fd8031597ff4cbbd00"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a50b91d27874af31ef13c493b00824ccf"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a50b91d27874af31ef13c493b00824ccf">GetUUID</a> () const</td></tr>
|
|
<tr class="separator:a50b91d27874af31ef13c493b00824ccf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3df2340426251e9145e5fe4419937e2a"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a3df2340426251e9145e5fe4419937e2a">GetFullID</a> () const</td></tr>
|
|
<tr class="separator:a3df2340426251e9145e5fe4419937e2a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a80f47accc0832e3aee686ee2879b431e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a80f47accc0832e3aee686ee2879b431e">GetSequency</a> () const</td></tr>
|
|
<tr class="separator:a80f47accc0832e3aee686ee2879b431e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
|
|
Static Public Attributes</h2></td></tr>
|
|
<tr class="memitem:a4a2cad8747108322152b41c049f99c72"><td class="memItemLeft" align="right" valign="top">static const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a4a2cad8747108322152b41c049f99c72">DEFAULT_TASK_NAME</a> = "default-task"</td></tr>
|
|
<tr class="separator:a4a2cad8747108322152b41c049f99c72"><td class="memSeparator" colspan="2"> </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:a689969e7d88ba7ad73a693a1b38aedd7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a689969e7d88ba7ad73a693a1b38aedd7">SetFinishAfterRun</a> (bool finish_after_run)</td></tr>
|
|
<tr class="memdesc:a689969e7d88ba7ad73a693a1b38aedd7"><td class="mdescLeft"> </td><td class="mdescRight">Set the Finish After Run object. <a href="classGpgFrontend_1_1Thread_1_1Task.html#a689969e7d88ba7ad73a693a1b38aedd7">More...</a><br /></td></tr>
|
|
<tr class="separator:a689969e7d88ba7ad73a693a1b38aedd7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa6d702417bdd6a88c447ed6a457fa098"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#aa6d702417bdd6a88c447ed6a457fa098">SetRTN</a> (int rtn)</td></tr>
|
|
<tr class="separator:aa6d702417bdd6a88c447ed6a457fa098"><td class="memSeparator" colspan="2"> </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:a57adc09be10715a0e36a4baa3d9437b5"><td class="memItemLeft" align="right" valign="top"><a id="a57adc09be10715a0e36a4baa3d9437b5"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>slot_task_run_callback</b> (int rtn)</td></tr>
|
|
<tr class="separator:a57adc09be10715a0e36a4baa3d9437b5"><td class="memSeparator" colspan="2"> </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:a5ee1ea118ac5d91f005faecef54742b8"><td class="memItemLeft" align="right" valign="top"><a id="a5ee1ea118ac5d91f005faecef54742b8"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>init</b> ()</td></tr>
|
|
<tr class="separator:a5ee1ea118ac5d91f005faecef54742b8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a024a05bb89556c5b93336cb35d4bd10c"><td class="memItemLeft" align="right" valign="top"><a id="a024a05bb89556c5b93336cb35d4bd10c"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><b>run</b> () override</td></tr>
|
|
<tr class="separator:a024a05bb89556c5b93336cb35d4bd10c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
|
|
Static Private Member Functions</h2></td></tr>
|
|
<tr class="memitem:a96d087abb7cf99d16f778f1a93b4f9e5"><td class="memItemLeft" align="right" valign="top">static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a96d087abb7cf99d16f778f1a93b4f9e5">generate_uuid</a> ()</td></tr>
|
|
<tr class="separator:a96d087abb7cf99d16f778f1a93b4f9e5"><td class="memSeparator" colspan="2"> </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:a468f4b05a8eb6b66c3f240bc2a660a08"><td class="memItemLeft" align="right" valign="top"><a id="a468f4b05a8eb6b66c3f240bc2a660a08"></a>
|
|
const std::string </td><td class="memItemRight" valign="bottom"><b>uuid_</b></td></tr>
|
|
<tr class="separator:a468f4b05a8eb6b66c3f240bc2a660a08"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afd4e9a657a7b0c2afbb701fa2cba8591"><td class="memItemLeft" align="right" valign="top"><a id="afd4e9a657a7b0c2afbb701fa2cba8591"></a>
|
|
const std::string </td><td class="memItemRight" valign="bottom"><b>name_</b></td></tr>
|
|
<tr class="separator:afd4e9a657a7b0c2afbb701fa2cba8591"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a71ed097a2c4b4b735fd385dfe87e6f57"><td class="memItemLeft" align="right" valign="top"><a id="a71ed097a2c4b4b735fd385dfe87e6f57"></a>
|
|
const bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a71ed097a2c4b4b735fd385dfe87e6f57">sequency_</a> = true</td></tr>
|
|
<tr class="memdesc:a71ed097a2c4b4b735fd385dfe87e6f57"><td class="mdescLeft"> </td><td class="mdescRight">must run in the same thread <br /></td></tr>
|
|
<tr class="separator:a71ed097a2c4b4b735fd385dfe87e6f57"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5b47295d027309aee116d219b50de4f8"><td class="memItemLeft" align="right" valign="top"><a id="a5b47295d027309aee116d219b50de4f8"></a>
|
|
TaskCallback </td><td class="memItemRight" valign="bottom"><b>callback_</b></td></tr>
|
|
<tr class="separator:a5b47295d027309aee116d219b50de4f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0cb0482d29d502870dc8d38b8aaedf68"><td class="memItemLeft" align="right" valign="top"><a id="a0cb0482d29d502870dc8d38b8aaedf68"></a>
|
|
TaskRunnable </td><td class="memItemRight" valign="bottom"><b>runnable_</b></td></tr>
|
|
<tr class="separator:a0cb0482d29d502870dc8d38b8aaedf68"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a86c8c7527e896c7900fdccc1e336b6c8"><td class="memItemLeft" align="right" valign="top"><a id="a86c8c7527e896c7900fdccc1e336b6c8"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><b>run_callback_after_runnable_finished_</b> = true</td></tr>
|
|
<tr class="separator:a86c8c7527e896c7900fdccc1e336b6c8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad6388db7b0e4960db5bf8296481481dd"><td class="memItemLeft" align="right" valign="top"><a id="ad6388db7b0e4960db5bf8296481481dd"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>rtn_</b> = 0</td></tr>
|
|
<tr class="separator:ad6388db7b0e4960db5bf8296481481dd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1a6a92c92febc94e8abbc1a96d489446"><td class="memItemLeft" align="right" valign="top"><a id="a1a6a92c92febc94e8abbc1a96d489446"></a>
|
|
QThread * </td><td class="memItemRight" valign="bottom"><b>callback_thread_</b> = nullptr</td></tr>
|
|
<tr class="separator:a1a6a92c92febc94e8abbc1a96d489446"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa500f907beee47f99fdeb626d2c788bd"><td class="memItemLeft" align="right" valign="top"><a id="aa500f907beee47f99fdeb626d2c788bd"></a>
|
|
DataObjectPtr </td><td class="memItemRight" valign="bottom"><b>data_object_</b> = nullptr</td></tr>
|
|
<tr class="separator:aa500f907beee47f99fdeb626d2c788bd"><td class="memSeparator" colspan="2"> </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> </td><td class="memItemRight" valign="bottom"><b>TaskRunner</b></td></tr>
|
|
<tr class="separator:a1956d94b45592a4096a335641aab65f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a79f935428d2e03585673226228a7ffff"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a79f935428d2e03585673226228a7ffff">◆ </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 </td>
|
|
<td class="paramname"><em>runnable</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string </td>
|
|
<td class="paramname"><em>name</em> = <code><a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a4a2cad8747108322152b41c049f99c72">DEFAULT_TASK_NAME</a></code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">DataObjectPtr </td>
|
|
<td class="paramname"><em>data_object</em> = <code>nullptr</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>sequency</em> = <code>true</code> </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="a59047d6d26fdf78f9b43ddc189d84958"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a59047d6d26fdf78f9b43ddc189d84958">◆ </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 </td>
|
|
<td class="paramname"><em>runnable</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">DataObjectPtr </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">TaskCallback </td>
|
|
<td class="paramname"><em>callback</em> = <code>[](int, const std::shared_ptr<<a class="el" href="classGpgFrontend_1_1Thread_1_1Task_1_1DataObject.html">DataObject</a>> &) {}</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>sequency</em> = <code>true</code> </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>
|
|
|
|
<p class="reference">References <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#a3df2340426251e9145e5fe4419937e2a">GetFullID()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a96d087abb7cf99d16f778f1a93b4f9e5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a96d087abb7cf99d16f778f1a93b4f9e5">◆ </a></span>generate_uuid()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string GpgFrontend::Thread::Task::generate_uuid </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 class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3df2340426251e9145e5fe4419937e2a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3df2340426251e9145e5fe4419937e2a">◆ </a></span>GetFullID()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string GpgFrontend::Thread::Task::GetFullID </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1Thread_1_1TaskRunner.html#a4fae01eb0a5b296b8c4c6bf8408f1c6b">GpgFrontend::Thread::TaskRunner::PostTask()</a>, and <a class="el" href="classGpgFrontend_1_1Thread_1_1Task.html#abdff056f5c96f00ac67bd1edcb5f0a48">Task()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a80f47accc0832e3aee686ee2879b431e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a80f47accc0832e3aee686ee2879b431e">◆ </a></span>GetSequency()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool GpgFrontend::Thread::Task::GetSequency </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a50b91d27874af31ef13c493b00824ccf"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a50b91d27874af31ef13c493b00824ccf">◆ </a></span>GetUUID()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string GpgFrontend::Thread::Task::GetUUID </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a689969e7d88ba7ad73a693a1b38aedd7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a689969e7d88ba7ad73a693a1b38aedd7">◆ </a></span>SetFinishAfterRun()</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::SetFinishAfterRun </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>finish_after_run</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">
|
|
|
|
<p>Set the Finish After Run object. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">finish_after_run</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1FileReadTask.html#a0f8bc1c253380b68c0e65cabc011ac09">GpgFrontend::UI::FileReadTask::Run()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1VersionCheckTask.html#a9156325af41c378f8d7e77187d445c12">GpgFrontend::UI::VersionCheckTask::Run()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa6d702417bdd6a88c447ed6a457fa098"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa6d702417bdd6a88c447ed6a457fa098">◆ </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 </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>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="a4a2cad8747108322152b41c049f99c72"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4a2cad8747108322152b41c049f99c72">◆ </a></span>DEFAULT_TASK_NAME</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::string GpgFrontend::Thread::Task::DEFAULT_TASK_NAME = "default-task"</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>Copyright (C) 2021 Saturneric</p>
|
|
<p>This file is part of <a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a>.</p>
|
|
<p><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a> is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
|
|
<p><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
|
|
<p>You should have received a copy of the GNU General Public License along with <a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a>. If not, see <a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>.</p>
|
|
<p>The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.</p>
|
|
<p>The source code version of this software was modified and released by Saturneric<a href="#" onclick="location.href='mai'+'lto:'+'eri'+'c@'+'bkt'+'us'+'.co'+'m'; return false;">eric@<span style="display: none;">.nosp@m.</span>bktu<span style="display: none;">.nosp@m.</span>s.com</a><a href="#" onclick="location.href='mai'+'lto:'+'eri'+'c@'+'bkt'+'us'+'.co'+'m'; return false;">eric@<span style="display: none;">.nosp@m.</span>bktu<span style="display: none;">.nosp@m.</span>s.com</a> starting on May 12, 2021. </p>
|
|
|
|
</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>
|