CMmSimLockTsy Class Reference

class CMmSimLockTsy : public CMmSubTsyBase

CMmSimLockTsy contains mode-independent SimLock functionality. Extension request handles and parameters are stored as attributes.

Inherits from

Public Member Functions
CMmSimLockTsy ()
~CMmSimLockTsy ()
TInt CancelService (const TInt , const TTsyReqHandle )
void Complete ( TInt , TInt )
void CompleteActivateSimLock ( TInt )
void CompleteDeActivateSimLock ( TInt )
TInt DeregisterNotification (const TInt )
TInt DoExtFuncL (const TTsyReqHandle , const TInt , const TDataPackage &)
void Init ()
CMmSimLockTsy * NewL ( CMmCustomTsy *)
TInt NumberOfSlotsL (const TInt )
TInt RegisterNotification (const TInt )
CTelObject::TReqMode ReqModeL (const TInt )
TBool SupportingIPC (const TInt )
Private Member Functions
TInt ActivateSimLockL (const TTsyReqHandle , RMmCustomAPI::TSimLockPassword *, RMmCustomAPI::TLockNumber *)
void ConstructL ( CMmCustomTsy *)
TInt DeActivateSimLockL (const TTsyReqHandle , RMmCustomAPI::TSimLockPassword *, RMmCustomAPI::TLockNumber *)
void SetTypeOfResponse (const TInt , const TTsyReqHandle )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMmSubTsyBase::CMmSubTsyBase()
CMmSubTsyBase::~CMmSubTsyBase()
Public Member Enumerations
enum TSimLockRequestType { ESimLockRequestTypeActivateSimLock , ESimLockRequestTypeDeActivateSimLock , ESimLockRequestTypeMaxNumOfRequests , ESimLockRequestTypeUndefined  = 0xFF }
Private Attributes
RMmCustomAPI::TLockNumber * iActivateSimLockNumber
RMmCustomAPI::TSimLockPassword * iActivateSimLockPassword
RMmCustomAPI::TLockNumber * iDeActivateSimLockNumber
RMmCustomAPI::TSimLockPassword * iDeActivateSimLockPassword
CMmCustomTsy * iMmCustomTsy
TTsyReqHandle iSimLockReqHandles
CMmTsyReqHandleStore * iTsyReqHandleStore

Constructor & Destructor Documentation

CMmSimLockTsy()

CMmSimLockTsy ( )

C++ default constructor.

~CMmSimLockTsy()

~CMmSimLockTsy ( )

Destructor.

Member Functions Documentation

ActivateSimLockL(const TTsyReqHandle, RMmCustomAPI::TSimLockPassword *, RMmCustomAPI::TLockNumber *)

TInt ActivateSimLockL ( const TTsyReqHandle aTsyReqHandle,
RMmCustomAPI::TSimLockPassword * aPassword,
RMmCustomAPI::TLockNumber * aLockNumber
) [private]

Activate SimLock

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
RMmCustomAPI::TSimLockPassword * aPassword Pointer to simlock password
RMmCustomAPI::TLockNumber * aLockNumber Pointer to simlock number to be activated

CancelService(const TInt, const TTsyReqHandle)

TInt CancelService ( const TInt aIpc,
const TTsyReqHandle aTsyReqHandle
) [virtual]

Cancels request of which IPC number and request handle are given in parameters.

Parameters

const TInt aIpc An interprocess communication command identifier
const TTsyReqHandle aTsyReqHandle Request handle

Complete(TInt, TInt)

void Complete ( TInt aReqHandleType,
TInt aError
) [virtual]

Calls the needed complete method due the timer expiration

Parameters

TInt aReqHandleType
TInt aError

CompleteActivateSimLock(TInt)

void CompleteActivateSimLock ( TInt aError )

Completes ActivateSimLock request.

Parameters

TInt aError Error value

CompleteDeActivateSimLock(TInt)

void CompleteDeActivateSimLock ( TInt aError )

Completes DeActivateSimLock request.

Parameters

TInt aError Error value

ConstructL(CMmCustomTsy *)

void ConstructL ( CMmCustomTsy * aMmCustomTsy ) [private]

By default EPOC constructor is private.

Parameters

CMmCustomTsy * aMmCustomTsy

DeActivateSimLockL(const TTsyReqHandle, RMmCustomAPI::TSimLockPassword *, RMmCustomAPI::TLockNumber *)

TInt DeActivateSimLockL ( const TTsyReqHandle aTsyReqHandle,
RMmCustomAPI::TSimLockPassword * aPassword,
RMmCustomAPI::TLockNumber * aLockNumber
) [private]

DeActivate SimLock

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
RMmCustomAPI::TSimLockPassword * aPassword Pointer to simlock password
RMmCustomAPI::TLockNumber * aLockNumber Pointer to simlock number to be deactivated

DeregisterNotification(const TInt)

TInt DeregisterNotification ( const TInt aIpc ) [virtual]

Deregister given notification.

Parameters

const TInt aIpc An interprocess communication command identifier

DoExtFuncL(const TTsyReqHandle, const TInt, const TDataPackage &)

TInt DoExtFuncL ( const TTsyReqHandle aTsyReqHandle,
const TInt aIpc,
const TDataPackage & aPackage
) [virtual]

Handles extended client requests. Uses TRAP to ensure functioning on memory allocation failure.

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
const TInt aIpc
const TDataPackage & aPackage Reference to a data package

Init()

void Init ( ) [virtual]

Initialisation method

NewL(CMmCustomTsy *)

CMmSimLockTsy * NewL ( CMmCustomTsy * mmCustomTsy ) [static]

Two-phased constructor.

Parameters

CMmCustomTsy * mmCustomTsy

NumberOfSlotsL(const TInt)

TInt NumberOfSlotsL ( const TInt aIpc ) [virtual]

Returns number of slots to be used for given IPC.

Parameters

const TInt aIpc An interprocess communication command identifier

RegisterNotification(const TInt)

TInt RegisterNotification ( const TInt aIpc ) [virtual]

Register given notification.

Parameters

const TInt aIpc An interprocess communication command identifier

ReqModeL(const TInt)

CTelObject::TReqMode ReqModeL ( const TInt aIpc ) [virtual]

Returns request mode for given IPC number.

Parameters

const TInt aIpc an interprocess communication command identifier

SetTypeOfResponse(const TInt, const TTsyReqHandle)

void SetTypeOfResponse ( const TInt aReqHandleType,
const TTsyReqHandle aTsyReqHandle
) [private]

Chooses the type of response, automatic or common

Parameters

const TInt aReqHandleType
const TTsyReqHandle aTsyReqHandle

SupportingIPC(const TInt)

TBool SupportingIPC ( const TInt aIpc ) [virtual]

Tells whether the object supports given IPC.

Parameters

const TInt aIpc request's IPC value

Member Enumerations Documentation

Enum TSimLockRequestType

Enumerators

ESimLockRequestTypeActivateSimLock
ESimLockRequestTypeDeActivateSimLock
ESimLockRequestTypeMaxNumOfRequests
ESimLockRequestTypeUndefined = 0xFF

Member Data Documentation

RMmCustomAPI::TLockNumber * iActivateSimLockNumber

RMmCustomAPI::TLockNumber * iActivateSimLockNumber [private]

SimLock activating data Not Own.

RMmCustomAPI::TSimLockPassword * iActivateSimLockPassword

RMmCustomAPI::TSimLockPassword * iActivateSimLockPassword [private]

Activation SimLock password Not Own.

RMmCustomAPI::TLockNumber * iDeActivateSimLockNumber

RMmCustomAPI::TLockNumber * iDeActivateSimLockNumber [private]

SimLock deactivating data Not Own.

RMmCustomAPI::TSimLockPassword * iDeActivateSimLockPassword

RMmCustomAPI::TSimLockPassword * iDeActivateSimLockPassword [private]

Deactivation SimLock password Not Own.

CMmCustomTsy * iMmCustomTsy

CMmCustomTsy * iMmCustomTsy [private]

Pointer to CustomTsy Not Own.

TTsyReqHandle iSimLockReqHandles

TTsyReqHandle iSimLockReqHandles [private]

SimLock request handles

CMmTsyReqHandleStore * iTsyReqHandleStore

CMmTsyReqHandleStore * iTsyReqHandleStore [private]

Pointer to request handle store Own.