CCSAsyncRequestHandler Class Reference

List of all members.

Public Member Functions

virtual ~CCSAsyncRequestHandler ()
void RequestTime ()
void CancelRequest ()
TTime Time () const

Static Public Member Functions

static CCSAsyncRequestHandlerNewL (MAsyncTimeObserver &aObserver)
static CCSAsyncRequestHandlerNewLC (MAsyncTimeObserver &aObserver)

Protected Member Functions

void RunL ()
void DoCancel ()

Detailed Description

CCSAsyncRequestHandler An instance of the request handler object for the ClientServerAsync example application

Definition at line 33 of file csasyncrequesthandler.h.


Constructor & Destructor Documentation

CCSAsyncRequestHandler::~CCSAsyncRequestHandler (  )  [virtual]

~CCSAsyncRequestHandler. Destructor. Destroys the object and release all memory objects.

Definition at line 77 of file csasyncrequesthandler.cpp.


Member Function Documentation

CCSAsyncRequestHandler * CCSAsyncRequestHandler::NewL ( MAsyncTimeObserver aObserver  )  [static]

NewL. Two-phased constructor. Creates a CCSAsyncRequestHandler object using two phase construction, and return a pointer to the created object.

Parameters:
aObserver The object to be used to handle updates from the server.
Returns:
A pointer to the created instance of CCSAsyncRequestHandler.

Definition at line 30 of file csasyncrequesthandler.cpp.

CCSAsyncRequestHandler * CCSAsyncRequestHandler::NewLC ( MAsyncTimeObserver aObserver  )  [static]

NewLC. Two-phased constructor. Creates a CCSAsyncRequestHandler object using two phase construction, and return a pointer to the created object.

Parameters:
aObserver The object to be used to handle updates from the server.
Returns:
A pointer to the created instance of CCSAsyncRequestHandler.

Definition at line 42 of file csasyncrequesthandler.cpp.

</td >< td > The TRequestStatus object to be used for async comms</td ></tr ></table ></dl >< p > Definition at line< a class="el"href="timeserversession_8cpp-source.html#l00075"></a > of file< a class="el"href="timeserversession_8cpp-source.html"> timeserversession cpp</a >< p > References< a class="el"href="timeserversession_8h-source.html#l00088"> iTimeBuffer</a >< p > Referenced by< a class="el"href="csasyncrequesthandler_8cpp-source.html#l00088"> CCSAsyncRequestHandler::RequestTime (  ) 
Initial value:
"el" href="csasyncappui_8cpp-source.html#l00084">CCSAsyncAppUi::HandleCommandL()</a>.<div class="fragment"><pre class="fragment"><a name="l00099"></a>00099     {
<a name="l00100"></a>00100     <a class="code" href="class_c_c_s_async_document.html#56132cb68e64726ad0658571e44e9644">iHandler</a>-&gt;<a class="code" href="class_c_c_s_async_request_handler.html#481d63e2f4e33b9cb8ed4680a965da25">RequestTime</a>();
<a name="l00101"></a>00101     }
</pre></div>
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="0dcbea3e9ce301f1d5ac23a7679b8ee0"></a><!-- doxytag: member="CCSAsyncDocument::StopClock" ref="0dcbea3e9ce301f1d5ac23a7679b8ee0" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void CCSAsyncDocument::StopClock           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp

RequestTime. Sends a request to the server for an update to the time.

Definition at line 88 of file csasyncrequesthandler.cpp.

</td >< td >< p > StopClock Stops the clock< p > Definition at line< a class="el"href="csasyncdocument_8cpp-source.html#l00108"></a > of file< a class="el"href="csasyncdocument_8cpp-source.html"> csasyncdocument cpp</a >< p > References< a class="el"href="csasyncrequesthandler_8cpp-source.html#l00102"> CCSAsyncRequestHandler::CancelRequest (  ) 

CancelRequest. Cancels an outstanding request.

Definition at line 102 of file csasyncrequesthandler.cpp.

TTime CCSAsyncRequestHandler::Time (  )  const

Time. Gets a copy of the last time received from the server.

Returns:
The time.

Definition at line 151 of file csasyncrequesthandler.cpp.

void CCSAsyncRequestHandler::RunL (  )  [protected]

From CActive, RunL. Callback function. Invoked to handle responses from the server.

Definition at line 112 of file csasyncrequesthandler.cpp.

</td >< td >< p > CancelRequestTime Cancels any outstanding request to the server< p > Definition at line< a class="el"href="timeserversession_8cpp-source.html#l00094"></a > of file< a class="el"href="timeserversession_8cpp-source.html"> timeserversession cpp</a >< p > Referenced by< a class="el"href="csasyncrequesthandler_8cpp-source.html#l00141"> CCSAsyncRequestHandler::DoCancel (  )  [protected]
Initial value:
"fragment"><pre class="fragment"><a name="l00095"></a>00095     {
<a name="l00096"></a>00096     SendReceive( ETimeServCancelRequestTime, TIpcArgs(NULL) );
<a name="l00097"></a>00097     }
</pre></div>
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="828f90acd9ecd7a6283a9226001e3921"></a><!-- doxytag: member="RTimeServerSession::iTimeBuffer" ref="828f90acd9ecd7a6283a9226001e3921" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">TPtr8 <a class="el" href="class_r_time_server_session.html#828f90acd9ecd7a6283a9226001e3921">RTimeServerSession::iTimeBuffer</a><code> [private]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp

From CActive, DoCancel. Cancels any outstanding operation.

Definition at line 141 of file csasyncrequesthandler.cpp.


Generated by  doxygen 1.6.2