class Roap::CRoapEngBase : public CActive |
Public Member Functions | |
---|---|
~CRoapEngBase () | |
IMPORT_C void | AcceptL ( MRoapObserver *, TRequestStatus *) |
IMPORT_C TInt | DoCleanup () |
IMPORT_C void | HandleRoReponseL (const TDesC8 &, RPointerArray < CDRMRights > &) |
IMPORT_C void | Reject () |
IMPORT_C void | SetTriggerL (const TDesC8 &, const CAiwGenericParamList *, TTriggerType &, TRiContextStatus &, TDomainOperation &, RPointerArray < HBufC8 > &) |
IMPORT_C const CRoapTrigger & | Trigger () |
Protected Member Functions | |
---|---|
CRoapEngBase () | |
void | CompleteL () |
void | CompleteRequest () |
void | ConstructL () |
void | Continue ( TRoapState ) |
void | CreateConnectionL () |
void | CreateReqMessageL () |
void | DoCancel () |
void | GetDomainContextL ( TBool &, TBool &, const TDesC8 &) |
void | GetRIContextL ( TBool &, const TDesC8 &) |
void | HandleMultipartL () |
void | HandleResponseL () |
void | HandleRightsResponsePduL (const TDesC8 &, TBool ) |
void | HandleRoapResponseL (const TDesC8 &) |
TInt | MapStatusL () |
CRoapTrigger * | ParseTriggerL (const TDesC8 &) |
TInt | RunError ( TInt ) |
void | RunL () |
void | SetL () |
void | SetProtocolL () |
HBufC8 * | SignMessageL (const TDesC8 &) |
void | StartTransactionL () |
Public Member Enumerations | |
---|---|
enum |
TRequestType
{
EDeviceHello , ERegistration , EROAcquisition , EJoinDomain , ELeaveDomain , EMeteringRequest } |
enum |
TRoapState
{
EInit , EReady , ECreateConn , EStartTrans , ERespReceived , EComplete } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
IMPORT_C void | AcceptL | ( | MRoapObserver * | aObserver, |
TRequestStatus * | aStatus | |||
) |
AcceptL
The function starts the ROAP operation. SetTriggerL must be called successfully before calling this function.
MRoapObserver * aObserver | |
TRequestStatus * aStatus |
void | Continue | ( | TRoapState | aNextState | ) | [protected] |
TRoapState aNextState |
void | DoCancel | ( | ) | [protected, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel() .
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel() .
IMPORT_C TInt | DoCleanup | ( | ) |
DoCleanup
The function deletes the data that has been stored during the last ROAP processing. The asynchronous AcceptL call must be finished before it is useful to call this method.
void | GetDomainContextL | ( | TBool & | aIsJoined, |
TBool & | aIsValidGeneration, | |||
const TDesC8 & | aDomainId | |||
) | [protected, pure virtual] |
void | GetRIContextL | ( | TBool & | aRegistered, |
const TDesC8 & | aRiId | |||
) | [protected, pure virtual] |
void | HandleRightsResponsePduL | ( | const TDesC8 & | aRightsResp, |
TBool | aOnePass | |||
) | [protected, pure virtual] |
IMPORT_C void | HandleRoReponseL | ( | const TDesC8 & | aResponse, |
RPointerArray < CDRMRights > & | aParsedRights | |||
) |
HandleRoReponseL
The function is for handling the 1-pass RO acquisition case. Takes in RO response PDU and parses it and stores the Rights Object into the database.
const TDesC8 & aResponse | |
RPointerArray < CDRMRights > & aParsedRights |
void | HandleRoapResponseL | ( | const TDesC8 & | aXmlResponse | ) | [protected, pure virtual] |
const TDesC8 & aXmlResponse |
CRoapTrigger * | ParseTriggerL | ( | const TDesC8 & | aXmlTrigger | ) | [protected, pure virtual] |
const TDesC8 & aXmlTrigger |
IMPORT_C void | Reject | ( | ) |
Reject
The function cancels the ROAP operation. The initial state (as it was before calling SetTriggerL) is restored. The function handles cleanup of stored data internally (by calling the DoCleanupL method)
void | RunL | ( | ) | [protected, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD
IMPORT_C void | SetTriggerL | ( | const TDesC8 & | aXmlTrigger, |
const CAiwGenericParamList * | aParamList, | |||
TTriggerType & | aType, | |||
TRiContextStatus & | aContextStatus, | |||
TDomainOperation & | aDomainOperation, | |||
RPointerArray < HBufC8 > & | aContentIdList | |||
) |
SetTriggerL
The function takes in a ROAP Trigger and parses it. The the internal state of ROAP Engine is changed accordingly. After the trigger is set a caller can either accept the ROAP transaction by calling AcceptL or reject by calling Reject.
const TDesC8 & aXmlTrigger | |
const CAiwGenericParamList * aParamList | |
TTriggerType & aType | |
TRiContextStatus & aContextStatus | |
TDomainOperation & aDomainOperation | |
RPointerArray < HBufC8 > & aContentIdList |
HBufC8 * | SignMessageL | ( | const TDesC8 & | aMessage | ) | const [protected, pure virtual] |
const TDesC8 & aMessage |
IMPORT_C const CRoapTrigger & | Trigger | ( | ) | const |
Trigger
The function returns a reference to the parsed CRoapTrigger object. The SetTriggerL method must be called successfully before this method can be called.
EDeviceHello | |
ERegistration | |
EROAcquisition | |
EJoinDomain | |
ELeaveDomain | |
EMeteringRequest |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.