Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_m_transaction_observer.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: MTransactionObserver 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>MTransactionObserver Class Reference</h1><!-- doxytag: class="MTransactionObserver" -->
<p>Inherited by <a class="el" href="class_c_task_manager_app_view.html">CTaskManagerAppView</a>.</p>

<p><a href="class_m_transaction_observer-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 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_m_transaction_observer.html#a81df9d3e254a9f0b09d04fedbd32f063">OpeningConnectionL</a> ()=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_m_transaction_observer.html#abdb774e645bfd76beacc43ac3f033219">SuccessL</a> (const <a class="el" href="class_c_response.html">CResponse</a> &amp;aResponse)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_m_transaction_observer.html#a781e451fe90e8678793278279d37d5f0">FailedL</a> (const TInt &amp;aError)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_m_transaction_observer.html#acc250172c2e57609e2993bfea1214d37">ConnectingToServerL</a> (const TBool &amp;aLoadingTasks)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_m_transaction_observer.html#a181d92273f185c382c95eb84deaf877c">CancelledL</a> ()=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_m_transaction_observer.html#ae487a3f2e816de373c20da0b56edc407">ErrorL</a> (const TDesC &amp;aErrorMsg)=0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A mixin class for notifying about transactions. </p>

<p>Definition at line <a class="el" href="_task_manager_engine_8h_source.html#l00034">34</a> of file <a class="el" href="_task_manager_engine_8h_source.html">TaskManagerEngine.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a81df9d3e254a9f0b09d04fedbd32f063"></a><!-- doxytag: member="MTransactionObserver::OpeningConnectionL" ref="a81df9d3e254a9f0b09d04fedbd32f063" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MTransactionObserver::OpeningConnectionL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when a GPRS connection is being opened. </p>

</div>
</div>
<a class="anchor" id="abdb774e645bfd76beacc43ac3f033219"></a><!-- doxytag: member="MTransactionObserver::SuccessL" ref="abdb774e645bfd76beacc43ac3f033219" args="(const CResponse &amp;aResponse)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MTransactionObserver::SuccessL </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_c_response.html">CResponse</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aResponse</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when aa transaction has successfully finished. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aResponse</em>&nbsp;</td><td>contains the response received from the server. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a781e451fe90e8678793278279d37d5f0"></a><!-- doxytag: member="MTransactionObserver::FailedL" ref="a781e451fe90e8678793278279d37d5f0" args="(const TInt &amp;aError)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MTransactionObserver::FailedL </td>
          <td>(</td>
          <td class="paramtype">const TInt &amp;&nbsp;</td>
          <td class="paramname"> <em>aError</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when a transaction has failed. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aError</em>&nbsp;</td><td>the error code. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acc250172c2e57609e2993bfea1214d37"></a><!-- doxytag: member="MTransactionObserver::ConnectingToServerL" ref="acc250172c2e57609e2993bfea1214d37" args="(const TBool &amp;aLoadingTasks)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MTransactionObserver::ConnectingToServerL </td>
          <td>(</td>
          <td class="paramtype">const TBool &amp;&nbsp;</td>
          <td class="paramname"> <em>aLoadingTasks</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when a transaction is initiated. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aLoadingTasks</em>&nbsp;</td><td>ETrue if downloading tasks, EFalse if completing a task. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a181d92273f185c382c95eb84deaf877c"></a><!-- doxytag: member="MTransactionObserver::CancelledL" ref="a181d92273f185c382c95eb84deaf877c" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MTransactionObserver::CancelledL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when user cancelled the transaction. </p>

</div>
</div>
<a class="anchor" id="ae487a3f2e816de373c20da0b56edc407"></a><!-- doxytag: member="MTransactionObserver::ErrorL" ref="ae487a3f2e816de373c20da0b56edc407" args="(const TDesC &amp;aErrorMsg)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MTransactionObserver::ErrorL </td>
          <td>(</td>
          <td class="paramtype">const TDesC &amp;&nbsp;</td>
          <td class="paramname"> <em>aErrorMsg</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when the user tries to initialise a transaction, but settings are faulty. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aErrorMsg</em>&nbsp;</td><td>error message. </td></tr>
  </table>
  </dd>
</dl>

</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>