CMTPExampleDpRequestProcessor Class Reference

Inherits MMTPExampleDpRequestProcessor.

Inherited by CMTPExampleDpVendorDefinedOp1, CMTPExampleDpVendorDefinedOp2, and CMTPRequestUnknown.

List of all members.

Protected Member Functions

 CMTPExampleDpRequestProcessor (MMTPDataProviderFramework &aFramework, MMTPConnection &aConnection, TInt aElementCount, const TMTPRequestElementInfo *aElements)
virtual ~CMTPExampleDpRequestProcessor ()
void SendResponseL (TMTPResponseCode aResponseCode, TInt aParameterCount=0, TUint32 *aParams=NULL)
void CompleteRequestL ()
virtual TBool HandleRequestL (const TMTPTypeRequest &aRequest, TMTPTransactionPhase aPhase)
virtual void HandleEventL (const TMTPTypeEvent &aEvent)
virtual void Release ()
virtual TBool Match (const TMTPTypeRequest &aRequest, MMTPConnection &aConnection) const
virtual TBool Match (const TMTPTypeEvent &aEvent, MMTPConnection &aConnection) const
virtual const TMTPTypeRequest & Request () const
virtual MMTPConnection & Connection () const
virtual TUint32 SessionId ()
virtual TBool DoHandleResponsePhaseL ()
virtual TBool DoHandleCompletingPhaseL ()
virtual void ServiceL ()=0

Protected Attributes

MMTPDataProviderFramework & iFramework
const TMTPTypeRequest * iRequest
MMTPConnection & iConnection
TMTPTypeResponse iResponse
TBool iCancelled
TInt iElementCount
const TMTPRequestElementInfo * iElements
TUint32 iSessionId
TUint32 iTransactionCode

Detailed Description

Definition at line 112 of file cmtpexampledprequestprocessor.h.


Constructor & Destructor Documentation

CMTPExampleDpRequestProcessor::CMTPExampleDpRequestProcessor ( MMTPDataProviderFramework &  aFramework,
MMTPConnection &  aConnection,
TInt  aElementCount,
const TMTPRequestElementInfo *  aElements 
) [protected]

Standard c++ constructor

Parameters:
aFramework The data provider framework
aConnection The connection from which the request comes
aElementCount Number of element in the request.
aElements The element info data.
Returns:
a pointer to the created request processor object

Definition at line 34 of file cmtpexampledprequestprocessor.cpp.

CMTPExampleDpRequestProcessor::~CMTPExampleDpRequestProcessor (  )  [protected, virtual]

Destructor

Definition at line 50 of file cmtpexampledprequestprocessor.cpp.


Member Function Documentation

void CMTPExampleDpRequestProcessor::SendResponseL ( TMTPResponseCode  aResponseCode,
TInt  aParameterCount = 0,
TUint32 *  aParams = NULL 
) [protected]

Send a response to the initiator

Parameters:
aResponseCode The response code to send
aParamCount The number of parameters
aParmas The pointer to array of parameters

Definition at line 68 of file cmtpexampledprequestprocessor.cpp.

void CMTPExampleDpRequestProcessor::CompleteRequestL (  )  [protected]

Signal to the framework that the current request transaction has completed

Definition at line 104 of file cmtpexampledprequestprocessor.cpp.

TBool CMTPExampleDpRequestProcessor::HandleRequestL ( const TMTPTypeRequest &  aRequest,
TMTPTransactionPhase  aPhase 
) [protected, virtual]

Handle the request

Parameters:
aRequest The request to be processed
aPhase The current transaction phase of the request
Returns:
ETrue if the transaction has completed, otherwise, EFalse

Implements MMTPExampleDpRequestProcessor.

Definition at line 116 of file cmtpexampledprequestprocessor.cpp.

void CMTPExampleDpRequestProcessor::HandleEventL ( const TMTPTypeEvent &  aEvent  )  [protected, virtual]

Handle the event

Parameters:
aEvent The event to be processed

Implements MMTPExampleDpRequestProcessor.

Definition at line 226 of file cmtpexampledprequestprocessor.cpp.

void CMTPExampleDpRequestProcessor::Release (  )  [protected, virtual]

Release (delete) this request processor

Implements MMTPExampleDpRequestProcessor.

Definition at line 56 of file cmtpexampledprequestprocessor.cpp.

TBool CMTPExampleDpRequestProcessor::Match ( const TMTPTypeRequest &  aRequest,
MMTPConnection &  aConnection 
) const [protected, virtual]

Check whether the processor can process the request

Parameters:
aRequest The request to be processed
aConnection The connection from which the request comes
Returns:
ETrue if the processor can process the request, otherwise EFalse

Implements MMTPExampleDpRequestProcessor.

Reimplemented in CMTPRequestUnknown.

Definition at line 216 of file cmtpexampledprequestprocessor.cpp.

TBool CMTPExampleDpRequestProcessor::Match ( const TMTPTypeEvent &  aEvent,
MMTPConnection &  aConnection 
) const [protected, virtual]

Check whether the processor can process the event

Parameters:
aEvent The event to be processed
aConnection The connection from which the request comes
Returns:
ETrue if the processor can process the request, otherwise EFalse

Implements MMTPExampleDpRequestProcessor.

Definition at line 194 of file cmtpexampledprequestprocessor.cpp.

const TMTPTypeRequest & CMTPExampleDpRequestProcessor::Request (  )  const [protected, virtual]

The current active request

Returns:
A reference to the current request

Implements MMTPExampleDpRequestProcessor.

Definition at line 94 of file cmtpexampledprequestprocessor.cpp.

MMTPConnection & CMTPExampleDpRequestProcessor::Connection (  )  const [protected, virtual]

The connection from which the current request comes

Returns:
A reference to the current connection

Implements MMTPExampleDpRequestProcessor.

Definition at line 143 of file cmtpexampledprequestprocessor.cpp.

TUint32 CMTPExampleDpRequestProcessor::SessionId (  )  [protected, virtual]

The Session ID from the current request

Returns:
the value of the session ID

Implements MMTPExampleDpRequestProcessor.

Definition at line 152 of file cmtpexampledprequestprocessor.cpp.

TBool CMTPExampleDpRequestProcessor::DoHandleResponsePhaseL (  )  [protected, virtual]

Handle the response phase of the current request

Returns:
EFalse

Definition at line 161 of file cmtpexampledprequestprocessor.cpp.

TBool CMTPExampleDpRequestProcessor::DoHandleCompletingPhaseL (  )  [protected, virtual]

Handle the completing phase of the current request

Returns:
ETrue

Definition at line 172 of file cmtpexampledprequestprocessor.cpp.


Generated by  doxygen 1.6.2