CWimOMAProv Class Reference

class CWimOMAProv : public CActive

Reads OMA Provisioning information from Smart Card

WimClient
Since
Series60 2.6

Inherits from

Constructor & Destructor Documentation

CWimOMAProv()

CWimOMAProv()[private]

C++ default constructor.

~CWimOMAProv()

IMPORT_C~CWimOMAProv()[virtual]

Destructor

Member Functions Documentation

AllocMemoryForOmaProvStructL(const TInt)

voidAllocMemoryForOmaProvStructL(const TIntaDataLength)[private]

Allocates memory for member variables, which are needed in OMA Provisioning struct.

Parameters

const TInt aDataLength-The length of the data to be allocated

CancelGetSize()

IMPORT_C voidCancelGetSize()

Cancels outgoing GetSize operation.

CancelInitialize()

IMPORT_C voidCancelInitialize()

Cancels outgoing Initialize operation.

CancelRetrieve()

IMPORT_C voidCancelRetrieve()

Cancels outgoing Retrieve operation.

ConstructL()

voidConstructL()[private]

Symbian constructor

DeallocMemoryFromOmaProvStruct()

voidDeallocMemoryFromOmaProvStruct()[private]

Deallocates memory from member variables

DoCancel()

voidDoCancel()[private, virtual]

Cancellation function Deallocates member variables and completes client status with KErrCancel error code.

GetSize(TInt &, const TOMAType &, TRequestStatus &)

IMPORT_C voidGetSize(TInt &aSize,
const TOMAType &aOMAType,
TRequestStatus &aStatus
)

Fetches the size of provisioning information string. This information can be used as a notification, does provisioning information exist. If the size is not included in Smart Card's DODF-PROV file then the full length of the file containing the provisioning information is returned.

Parameters

TInt & aSize(OUT) The length of provisioning string
const TOMAType & aOMAType(IN) OMA provisioning file type Pseudo values: -Bootstrap -Config 1 -Config 2
TRequestStatus & aStatusIndicates the result of this call. KErrNone, no errors. NOTE: size can still be 0 indicating that no provisioning information was found. If aSize > 0 it means that provisioning information was found. KErrNoMemory, No memory KErrGeneral, any other error

Initialize(TRequestStatus &)

IMPORT_C voidInitialize(TRequestStatus &aStatus)

Initializes the WIM Server cache. This is the most time consuming call.

Parameters

TRequestStatus & aStatusIndicates the result of this call. Values: KErrNone, call was successull KErrNotFound, no WIM was found KErrNoMemory, no memory KErrGeneral, any other error

NewL()

IMPORT_C CWimOMAProv *NewL()[static]

Two-phased constructor.

Retrieve(const TOMAType &, TDes8 &, TRequestStatus &)

IMPORT_C voidRetrieve(const TOMAType &aOMAType,
TDes8 &aOMAData,
TRequestStatus &aStatus
)

Fetches the whole data of provisioning information string.

Parameters

const TOMAType & aOMAType(IN) The type of provisioning string
TDes8 & aOMAData(OUT) provisioning binary data
TRequestStatus & aStatusIndicates the result of this call. KErrNone, no errors. KErrNoMemory, No memory KErrGeneral, any other error

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]

The active scheduler calls this function if this active object's RunL() function leaves. Handles necessary cleanup and completes request with received error code.

Parameters

TInt aError-The error code which caused this function call.

RunL()

voidRunL()[private, virtual]

Different phases are handled here.

SignalOwnStatusAndComplete()

voidSignalOwnStatusAndComplete()[private]

Sets own iStatus to KRequestPending, and signals it with User::RequestComplete() -request. This gives chance active scheduler to run other active objects. After a quick visit in active scheduler, signal returns to RunL() and starts next phase of operation.

Member Enumerations Documentation

Enum TOMAPhase

Enumerators

EInitialize
EConnectClientSession
EInitializeWim
EInitializeDone
EGetSize
EGetSizeDone
ERetrieve
ERetrieveDone

Member Data Documentation

RWimMgmt * iClientSession

RWimMgmt *iClientSession[private]

TRequestStatus * iClientStatus

TRequestStatus *iClientStatus[private]

RWimCertMgmt * iConnectionHandle

RWimCertMgmt *iConnectionHandle[private]

TDes8 * iData

TDes8 *iData[private]

TOMAType iOMAType

TOMAType iOMAType[private]

HBufC8 * iOmaProvBuf

HBufC8 *iOmaProvBuf[private]

TPtr8 * iOmaProvBufPtr

TPtr8 *iOmaProvBufPtr[private]

TOMAPhase iPhase

TOMAPhase iPhase[private]

TInt * iSize

TInt *iSize[private]

TInt iWimStartErr

TInt iWimStartErr[private]