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 35 of file csasyncrequesthandler.h.


Constructor & Destructor Documentation

CCSAsyncRequestHandler::~CCSAsyncRequestHandler (  )  [virtual]

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

Definition at line 79 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 32 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 44 of file csasyncrequesthandler.cpp.

void CCSAsyncRequestHandler::RequestTime (  ) 

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

Definition at line 90 of file csasyncrequesthandler.cpp.

void CCSAsyncRequestHandler::CancelRequest (  ) 

CancelRequest. Cancels an outstanding request.

Definition at line 104 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 153 of file csasyncrequesthandler.cpp.

void CCSAsyncRequestHandler::RunL (  )  [protected]

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

Definition at line 114 of file csasyncrequesthandler.cpp.

void CCSAsyncRequestHandler::DoCancel (  )  [protected]

From CActive, DoCancel. Cancels any outstanding operation.

Definition at line 143 of file csasyncrequesthandler.cpp.


Generated by  doxygen 1.6.2