-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground__worker_8h_source.html
85 lines (85 loc) · 14.2 KB
/
background__worker_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aspose.Page for C++: include/asposecpplib/system/component_model/background_worker.h Source File</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>
<script type="text/javascript">
$(document).ready(initResizable);
</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">Aspose.Page for C++
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</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">
$(document).ready(function(){initNavTree('background__worker_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">background_worker.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#if !defined(_background_worker_h_)</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#define _background_worker_h_</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <system/component_model/component.h></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <system/smart_ptr.h></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <system/multicast_delegate.h></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <system/threading/thread.h></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <system/component_model/do_work_event_args.h></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <system/component_model/run_worker_completed_event_args.h></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <system/component_model/progress_changed_event_args.h></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">namespace </span><a class="code" href="namespace_system.html">System</a> { <span class="keyword">namespace </span>ComponentModel {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_system_1_1_component_model_1_1_background_worker.html"> 19</a></span> <span class="keyword">class </span>ASPOSECPP_SHARED_CLASS <a class="code" href="class_system_1_1_component_model_1_1_background_worker.html">BackgroundWorker</a> : <span class="keyword">public</span> <a class="code" href="class_system_1_1_component_model_1_1_component.html">Component</a></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">typedef</span> <a class="code" href="class_system_1_1_base_types_info.html">System::BaseTypesInfo<Component></a> <a class="code" href="class_system_1_1_base_types_info.html">ThisBaseTypesInfo</a>;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  RTTI_INFO(<a class="code" href="class_system_1_1_component_model_1_1_background_worker.html">BackgroundWorker</a>, ThisBaseTypesInfo)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  ASPOSECPP_SHARED_API <a class="code" href="class_system_1_1_component_model_1_1_background_worker.html">BackgroundWorker</a>();</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  ASPOSECPP_SHARED_API ~BackgroundWorker();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_system_1_1_component_model_1_1_background_worker.html#a1d2dfd289f915b115636d76122f88915"> 33</a></span>  <a class="code" href="class_system_1_1_multicast_delegate.html">System::MulticastDelegate<void(System::SharedPtr<System::Object></a>, <a class="code" href="class_system_1_1_smart_ptr.html">System::SharedPtr<System::ComponentModel::DoWorkEventArgs></a>) > DoWork;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_system_1_1_component_model_1_1_background_worker.html#a27f4290c1514d6c6a34da7a998aed32c"> 35</a></span>  <a class="code" href="class_system_1_1_multicast_delegate.html">System::MulticastDelegate<void(System::SharedPtr<System::Object></a>, <a class="code" href="class_system_1_1_smart_ptr.html">System::SharedPtr<System::ComponentModel::RunWorkerCompletedEventArgs></a>)> RunWorkerCompleted;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_system_1_1_component_model_1_1_background_worker.html#a52452250baabd2ab56a30427c1d70691"> 37</a></span>  <a class="code" href="class_system_1_1_multicast_delegate.html">System::MulticastDelegate<void(System::SharedPtr<System::Object></a>, <a class="code" href="class_system_1_1_smart_ptr.html">System::SharedPtr<System::ComponentModel::ProgressChangedEventArgs></a>)> ProgressChanged;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  ASPOSECPP_SHARED_API <span class="keywordtype">void</span> RunWorkerAsync();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  ASPOSECPP_SHARED_API <span class="keywordtype">void</span> RunWorkerAsync(<a class="code" href="class_system_1_1_smart_ptr.html">System::SharedPtr<System::Object></a> argument);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  ASPOSECPP_SHARED_API <span class="keywordtype">void</span> ReportProgress(<span class="keywordtype">int</span> percentProgress);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  ASPOSECPP_SHARED_API <span class="keywordtype">void</span> ReportProgress(<span class="keywordtype">int</span> percentProgress, <a class="code" href="class_system_1_1_smart_ptr.html">System::SharedPtr<System::Object></a> userState);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_system_1_1_component_model_1_1_background_worker.html#a431c0bd988fa761fd79bbb990ad00560"> 56</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_system_1_1_component_model_1_1_background_worker.html#a431c0bd988fa761fd79bbb990ad00560">get_WorkerReportsProgress</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_WorkerReportsProgress; }</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_system_1_1_component_model_1_1_background_worker.html#a6627f74749448f56504fd65c64d1cc41"> 59</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_system_1_1_component_model_1_1_background_worker.html#a6627f74749448f56504fd65c64d1cc41">set_WorkerReportsProgress</a>(<span class="keywordtype">bool</span> value) { m_WorkerReportsProgress = value; }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">bool</span> m_WorkerReportsProgress;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">bool</span> m_IsBusy;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="class_system_1_1_smart_ptr.html">System::SharedPtr<System::Threading::Thread></a> m_thread;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> };</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }}</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="class_system_1_1_multicast_delegate_html"><div class="ttname"><a href="class_system_1_1_multicast_delegate.html">System::MulticastDelegate</a></div><div class="ttdef"><b>Definition:</b> multicast_delegate.h:28</div></div>
<div class="ttc" id="namespace_system_html"><div class="ttname"><a href="namespace_system.html">System</a></div><div class="ttdef"><b>Definition:</b> Device.h:86</div></div>
<div class="ttc" id="class_system_1_1_base_types_info_html"><div class="ttname"><a href="class_system_1_1_base_types_info.html">System::BaseTypesInfo</a></div><div class="ttdef"><b>Definition:</b> reflection.h:29</div></div>
<div class="ttc" id="class_system_1_1_component_model_1_1_background_worker_html_a431c0bd988fa761fd79bbb990ad00560"><div class="ttname"><a href="class_system_1_1_component_model_1_1_background_worker.html#a431c0bd988fa761fd79bbb990ad00560">System::ComponentModel::BackgroundWorker::get_WorkerReportsProgress</a></div><div class="ttdeci">bool get_WorkerReportsProgress() const</div><div class="ttdef"><b>Definition:</b> background_worker.h:56</div></div>
<div class="ttc" id="class_system_1_1_component_model_1_1_background_worker_html"><div class="ttname"><a href="class_system_1_1_component_model_1_1_background_worker.html">System::ComponentModel::BackgroundWorker</a></div><div class="ttdef"><b>Definition:</b> background_worker.h:19</div></div>
<div class="ttc" id="class_system_1_1_component_model_1_1_background_worker_html_a6627f74749448f56504fd65c64d1cc41"><div class="ttname"><a href="class_system_1_1_component_model_1_1_background_worker.html#a6627f74749448f56504fd65c64d1cc41">System::ComponentModel::BackgroundWorker::set_WorkerReportsProgress</a></div><div class="ttdeci">void set_WorkerReportsProgress(bool value)</div><div class="ttdef"><b>Definition:</b> background_worker.h:59</div></div>
<div class="ttc" id="class_system_1_1_smart_ptr_html"><div class="ttname"><a href="class_system_1_1_smart_ptr.html">System::SmartPtr</a></div><div class="ttdoc">Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...</div><div class="ttdef"><b>Definition:</b> fwd.h:22</div></div>
<div class="ttc" id="class_system_1_1_component_model_1_1_component_html"><div class="ttname"><a href="class_system_1_1_component_model_1_1_component.html">System::ComponentModel::Component</a></div><div class="ttdef"><b>Definition:</b> component.h:14</div></div>
</div><!-- fragment --></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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5016bbee7090a7ea107ac349e6851b58.html">asposecpplib</a></li><li class="navelem"><a class="el" href="dir_df25e03386e2342d9a93ad6d6f98efe3.html">system</a></li><li class="navelem"><a class="el" href="dir_f3d365d23b764174dcefa1391072afd4.html">component_model</a></li><li class="navelem"><b>background_worker.h</b></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>