Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_inverter.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!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"/>
<title>TB9.2 Example Applications: CInverter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>CInverter Class Reference</h1><!-- doxytag: class="CInverter" -->
<p><a href="class_c_inverter-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a6a742db9903aabd02203d158e5905135">~CInverter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a60c29d84f46d0527afb1474abdc7a37a"></a><!-- doxytag: member="CInverter::Start" ref="a60c29d84f46d0527afb1474abdc7a37a" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Start</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a04f57f2574053f65550decfa5f5b0a81">RecieveMsg</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#afa8f1fa7a66c8f8aa461f84316fe4a0e">SendMsg</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a5b46657c2749a4a0b364e5fb54a272de">Stop</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a79ad184aaf5ee5bf48a8bb724a188614">ConstructL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a120fb0b63f1b40f9ec514733724e8824">DoInvert</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a685b043131942beefd2f4fc886379475">ReverseWord</a> (TBuf&lt; 20 &gt; buf)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affd7481b98a4a9be86f12a45a1a2e056"></a><!-- doxytag: member="CInverter::NewL" ref="affd7481b98a4a9be86f12a45a1a2e056" args="()" -->
static <a class="el" href="class_c_inverter.html">CInverter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>NewL</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_inverter.html#a5eaf28a9caffc96fa285871dd1b52f97">StaticWake</a> (TAny *)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="_c_inverter_8h_source.html#l00021">21</a> of file <a class="el" href="_c_inverter_8h_source.html">CInverter.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6a742db9903aabd02203d158e5905135"></a><!-- doxytag: member="CInverter::~CInverter" ref="a6a742db9903aabd02203d158e5905135" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CInverter::~CInverter </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor, cancels the periodic timer, close the message queues. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00037">37</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a04f57f2574053f65550decfa5f5b0a81"></a><!-- doxytag: member="CInverter::RecieveMsg" ref="a04f57f2574053f65550decfa5f5b0a81" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TInt CInverter::RecieveMsg </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The following function opens the InveterInQ message queue and recieves data from it. If the recieved message indicates stop command given by the first process, it stops the timer and closes the message queue etc. This function is called at a regular interval of 5 secs, so every five seconds data is recieved by this process. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00090">90</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afa8f1fa7a66c8f8aa461f84316fe4a0e"></a><!-- doxytag: member="CInverter::SendMsg" ref="afa8f1fa7a66c8f8aa461f84316fe4a0e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CInverter::SendMsg </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The following function will send the message to the message queue after inverting the words. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00116">116</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5b46657c2749a4a0b364e5fb54a272de"></a><!-- doxytag: member="CInverter::Stop" ref="a5b46657c2749a4a0b364e5fb54a272de" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CInverter::Stop </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function is called when user gives stop command, it closes the message queue, stops the scheduler and cancels the timer. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00173">173</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5eaf28a9caffc96fa285871dd1b52f97"></a><!-- doxytag: member="CInverter::StaticWake" ref="a5eaf28a9caffc96fa285871dd1b52f97" args="(TAny *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TInt CInverter::StaticWake </td>
          <td>(</td>
          <td class="paramtype">TAny *&nbsp;</td>
          <td class="paramname"> <em>aAny</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The following function is called periodically at an interval specified in the Start function of the CPeriodic class. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00075">75</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a79ad184aaf5ee5bf48a8bb724a188614"></a><!-- doxytag: member="CInverter::ConstructL" ref="a79ad184aaf5ee5bf48a8bb724a188614" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CInverter::ConstructL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct a periodic timer and starts the timer function. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00060">60</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a120fb0b63f1b40f9ec514733724e8824"></a><!-- doxytag: member="CInverter::DoInvert" ref="a120fb0b63f1b40f9ec514733724e8824" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CInverter::DoInvert </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The following function inverts words in the sentence, recieved by the message queue. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00133">133</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a685b043131942beefd2f4fc886379475"></a><!-- doxytag: member="CInverter::ReverseWord" ref="a685b043131942beefd2f4fc886379475" args="(TBuf&lt; 20 &gt; buf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CInverter::ReverseWord </td>
          <td>(</td>
          <td class="paramtype">TBuf&lt; 20 &gt;&nbsp;</td>
          <td class="paramname"> <em>buf</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reverse the individual words of the sentence, filtered in the function above. </p>

<p>Definition at line <a class="el" href="_c_inverter_8cpp_source.html#l00159">159</a> of file <a class="el" href="_c_inverter_8cpp_source.html">CInverter.cpp</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>