Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/taskexecutor_8cpp.html
week 10 bug fix submission: Bug 1892, Bug 1897, Bug 1319. Also 3 or 4 documents were found to contain code blocks with SFL, which has been fixed. Partial fix for broken links, links to Forum Nokia, and the 'Symbian platform' terminology issues.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: examples/SysLibs/TaskSchedulerExample/taskexecutor.cpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<h1>examples/SysLibs/TaskSchedulerExample/taskexecutor.cpp File Reference</h1>
<p>
<a href="taskexecutor_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="910d7d0dff62a9971ba4857d5fb3d647"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="910d7d0dff62a9971ba4857d5fb3d647" args="(KTaskConsoleName,"TaskExecutor")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTaskConsoleName,"TaskExecutor")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d663f1d9e723f36232abefcd0a0109ac"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="d663f1d9e723f36232abefcd0a0109ac" args="(KContent,"\nContents of task file:\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KContent,"\nContents of task file:\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b1849e2227351b8b76bf9ccbc7620de"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="2b1849e2227351b8b76bf9ccbc7620de" args="(KTask,"\nRunning task: %S")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTask,"\nRunning task: %S")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b6813aed3abafc9d536606b871fe5f9"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="7b6813aed3abafc9d536606b871fe5f9" args="(KTaskData,"\nThis is the task data for a")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTaskData,"\nThis is the task data for a")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="071a2e1a14ff179ded8da5e01caab668"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="071a2e1a14ff179ded8da5e01caab668" args="(KTaskId,"\nThe task Id is: %d\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTaskId,"\nThe task Id is: %d\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7bd14fe71918f0bfbd56230ea6e87598"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="7bd14fe71918f0bfbd56230ea6e87598" args="(KValidity,"Task is valid until %S\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KValidity,"Task is valid until %S\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d745ed73604b8bb797c083159e05019"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="8d745ed73604b8bb797c083159e05019" args="(KDateString,"%H%:1%T %*E%*D%X%*N%Y %1 %2 %3")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDateString,"%H%:1%T %*E%*D%X%*N%Y %1 %2 %3")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7347a4a1b321c5e174f321538e34ce31"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="7347a4a1b321c5e174f321538e34ce31" args="(KPressAnyKey,"Press any key to continue \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAnyKey,"Press any key to continue \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6f552c1e7525fd4a28403e3d27dda6ac"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="6f552c1e7525fd4a28403e3d27dda6ac" args="(KAbort,"\nCapabilities of the task scheduler and the executor do not match. Task aborted\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAbort,"\nCapabilities of the task scheduler and the executor do not match. Task aborted\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="105550cdb15f13ab5004d17c31e8179d"></a><!-- doxytag: member="taskexecutor.cpp::_LIT" ref="105550cdb15f13ab5004d17c31e8179d" args="(KSidMismatch,"SID of the task executor is not same as that of the scheduler. Task aborted\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSidMismatch,"SID of the task executor is not same as that of the scheduler. Task aborted\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="taskexecutor_8cpp.html#d51792a4c3cfb76bbbd1f61050928332">TaskExecuteL</a> (RFile &aTaskFile)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d8d735ffff0047d4b49f80731f10a34"></a><!-- doxytag: member="taskexecutor.cpp::Execute" ref="8d8d735ffff0047d4b49f80731f10a34" args="()" -->
TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="taskexecutor_8cpp.html#8d8d735ffff0047d4b49f80731f10a34">Execute</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GLDEF_C TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="taskexecutor_8cpp.html#0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2e3e010e023b0fc2c3cc546eb1fb0bee"></a><!-- doxytag: member="taskexecutor.cpp::KTaskSchedulerSid" ref="2e3e010e023b0fc2c3cc546eb1fb0bee" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="taskexecutor_8cpp.html#2e3e010e023b0fc2c3cc546eb1fb0bee">KTaskSchedulerSid</a> = 0xE80000B5</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13329867681b6c957835919b2205d7ae"></a><!-- doxytag: member="taskexecutor.cpp::KTaskCapability" ref="13329867681b6c957835919b2205d7ae" args="" -->
const TCapability </td><td class="memItemRight" valign="bottom"><a class="el" href="taskexecutor_8cpp.html#13329867681b6c957835919b2205d7ae">KTaskCapability</a> = ECapabilityWriteDeviceData</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition in file <a class="el" href="taskexecutor_8cpp-source.html">taskexecutor.cpp</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="d51792a4c3cfb76bbbd1f61050928332"></a><!-- doxytag: member="taskexecutor.cpp::TaskExecuteL" ref="d51792a4c3cfb76bbbd1f61050928332" args="(RFile &aTaskFile)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TaskExecuteL </td>
<td>(</td>
<td class="paramtype">RFile & </td>
<td class="paramname"> <em>aTaskFile</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Extracts task data, and puts up a message on the console. Validates the security of the task requester by a) Checking the secure ID; and b) Capabilities of the task requester.
<p>Definition at line <a class="el" href="taskexecutor_8cpp-source.html#l00049">49</a> of file <a class="el" href="taskexecutor_8cpp-source.html">taskexecutor.cpp</a>.</p>
</div>
</div><p>
<a class="anchor" name="0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="taskexecutor.cpp::E32Main" ref="0f358e9c4355138f629b8c4f37310295" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GLDEF_C TInt E32Main </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns standard error code on exit<p>
Secure variant only Process entry point. Called by client using RProcess API <dl class="return" compact><dt><b>Returns:</b></dt><dd>Standard Epoc error code on process exit<p>
Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API</dd></dl>
Entry point for the example<p>
The E32main function is the main entry point for the code.<p>
The below section is added to make the code compatible with v9.1 This is because only exe files are compatible with v9.1<p>
Standard entry point function.
<p>Definition at line <a class="el" href="taskexecutor_8cpp-source.html#l00147">147</a> of file <a class="el" href="taskexecutor_8cpp-source.html">taskexecutor.cpp</a>.</p>
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:02 2010 for TB10.1 Example Applications by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>