Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_r_secure_sub_session.html
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Fri, 22 Jan 2010 18:26:19 +0000
changeset 1 25a17d01db0c
child 6 43e37759235e
permissions -rw-r--r--
Addition of the PDK content and example code for Documentation_content according to Feature bug 1607 and bug 1608

<!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: RSecureSubSession Class 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>RSecureSubSession Class Reference</h1><!-- doxytag: class="RSecureSubSession" -->
<p>
<a href="class_r_secure_sub_session-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#490095bd4d40f65ea15f14d5fe481b71">Open</a> (<a class="el" href="class_r_secure_session.html">RSecureSession</a> &amp;aServer)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#f5aeec70e2056cbbeb64141573ff8f2c">SetFromString</a> (const TDesC &amp;aString)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#ac12680343af53cd4737699847905cb9">Close</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#a33648763c953202fb21f037b2d413e9">Increase</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#398e6146ebf438ee1f0b24c77b5b767c">Decrease</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#9342022cfba8bec8db374364fc08fab6">IncreaseByL</a> (TInt anInt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#1cc1a1a8ecfb898713f681cfe76701cb">DecreaseByL</a> (TInt anInt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#9ce8394ea263eaba7f462bc2fdc62127">Reset</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#f205b880df310c24f47ce91ca6261a1d">CounterValueL</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a2e415adf478eab70a70de4dd84d874"></a><!-- doxytag: member="RSecureSubSession::VerifyTransaction" ref="1a2e415adf478eab70a70de4dd84d874" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>VerifyTransaction</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#97d7a09b2347f1ef4f476feaaaa5f781">SaveCounterL</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_secure_sub_session.html#b9758c1131b23ed928fadee2a959e23e">SetCounterFromFileL</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The client-side handle to a subsession with the server. The class forms a layer over the Symbian provided RSubSessionBase class. The main example code calls member functions in this class to make requests to the server. The class forwards the requests to the server through the session. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_r_secure_session.html">RSecureSession</a> </dd></dl>

<p>Definition at line <a class="el" href="secureclient_8h-source.html#l00052">52</a> of file <a class="el" href="secureclient_8h-source.html">secureclient.h</a>.</p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="490095bd4d40f65ea15f14d5fe481b71"></a><!-- doxytag: member="RSecureSubSession::Open" ref="490095bd4d40f65ea15f14d5fe481b71" args="(RSecureSession &amp;aServer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TInt RSecureSubSession::Open           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_r_secure_session.html">RSecureSession</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aSession</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a sub session and returns a handle to it. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aSession</em>&nbsp;</td><td>The session handle. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>KErrNone if successful, otherwise one of the system-wide error codes. </dd></dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00031">31</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="f5aeec70e2056cbbeb64141573ff8f2c"></a><!-- doxytag: member="RSecureSubSession::SetFromString" ref="f5aeec70e2056cbbeb64141573ff8f2c" args="(const TDesC &amp;aString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TInt RSecureSubSession::SetFromString           </td>
          <td>(</td>
          <td class="paramtype">const TDesC &amp;&nbsp;</td>
          <td class="paramname"> <em>aString</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the counter value from a string. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aString</em>&nbsp;</td><td>The descriptor containing the counter value. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>KErrNone if successful, otherwise one of the system-wide error codes. </dd></dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00049">49</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="ac12680343af53cd4737699847905cb9"></a><!-- doxytag: member="RSecureSubSession::Close" ref="ac12680343af53cd4737699847905cb9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::Close           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Closes the sub session. 
<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00039">39</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="a33648763c953202fb21f037b2d413e9"></a><!-- doxytag: member="RSecureSubSession::Increase" ref="a33648763c953202fb21f037b2d413e9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::Increase           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increases the counter value by one. 
<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00058">58</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="398e6146ebf438ee1f0b24c77b5b767c"></a><!-- doxytag: member="RSecureSubSession::Decrease" ref="398e6146ebf438ee1f0b24c77b5b767c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::Decrease           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decreases the counter value by one. 
<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00082">82</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="9342022cfba8bec8db374364fc08fab6"></a><!-- doxytag: member="RSecureSubSession::IncreaseByL" ref="9342022cfba8bec8db374364fc08fab6" args="(TInt anInt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::IncreaseByL           </td>
          <td>(</td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aInt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increases the counter value by the supplied value. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aInt</em>&nbsp;</td><td>The increase in the counter value. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00070">70</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1cc1a1a8ecfb898713f681cfe76701cb"></a><!-- doxytag: member="RSecureSubSession::DecreaseByL" ref="1cc1a1a8ecfb898713f681cfe76701cb" args="(TInt anInt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::DecreaseByL           </td>
          <td>(</td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aInt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decreases the counter value by the supplied value. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aInt</em>&nbsp;</td><td>The decrease in the counter value. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00094">94</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="9ce8394ea263eaba7f462bc2fdc62127"></a><!-- doxytag: member="RSecureSubSession::Reset" ref="9ce8394ea263eaba7f462bc2fdc62127" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::Reset           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resets the counter to zero. 
<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00106">106</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="f205b880df310c24f47ce91ca6261a1d"></a><!-- doxytag: member="RSecureSubSession::CounterValueL" ref="f205b880df310c24f47ce91ca6261a1d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TInt RSecureSubSession::CounterValueL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the value of the counter. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The counter value. </dd></dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00118">118</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="97d7a09b2347f1ef4f476feaaaa5f781"></a><!-- doxytag: member="RSecureSubSession::SaveCounterL" ref="97d7a09b2347f1ef4f476feaaaa5f781" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::SaveCounterL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Saves the counter value to the file counter.dat. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_c_secure_server_sub_session.html#5a58cd7db75221072f5ef4251fe75a82">CSecureServerSubSession::SaveCounterValueL()</a> </dd></dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00136">136</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="b9758c1131b23ed928fadee2a959e23e"></a><!-- doxytag: member="RSecureSubSession::SetCounterFromFileL" ref="b9758c1131b23ed928fadee2a959e23e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RSecureSubSession::SetCounterFromFileL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the counter to the value read from the file counter.dat. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_c_secure_server_sub_session.html#234065b99df276eca6097ab3d89cc81a">CSecureServerSubSession::SetCounterValueFromFileL()</a> </dd></dl>

<p>Definition at line <a class="el" href="secureclientsubsession_8cpp-source.html#l00148">148</a> of file <a class="el" href="secureclientsubsession_8cpp-source.html">secureclientsubsession.cpp</a>.</p>

</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:08 2010 for TB10.1 Example Applications by&nbsp;
<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>