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)
voidComplete(TInt, TInt)
voidCompleteActivateSimLock(TInt)
voidCompleteDeActivateSimLock(TInt)
TInt DeregisterNotification(const TInt)
TInt DoExtFuncL(const TTsyReqHandle, const TInt, const TDataPackage &)
voidInit()
CMmSimLockTsy *NewL(CMmCustomTsy *)
TInt NumberOfSlotsL(const TInt)
TInt RegisterNotification(const TInt)
CTelObject::TReqModeReqModeL(const TInt)
TBool SupportingIPC(const TInt)
Private Member Functions
TInt ActivateSimLockL(const TTsyReqHandle, RMmCustomAPI::TSimLockPassword *, RMmCustomAPI::TLockNumber *)
voidConstructL(CMmCustomTsy *)
TInt DeActivateSimLockL(const TTsyReqHandle, RMmCustomAPI::TSimLockPassword *, RMmCustomAPI::TLockNumber *)
voidSetTypeOfResponse(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
enumTSimLockRequestType { 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 TTsyReqHandleaTsyReqHandle,
RMmCustomAPI::TSimLockPassword *aPassword,
RMmCustomAPI::TLockNumber *aLockNumber
)[private]

Activate SimLock

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
RMmCustomAPI::TSimLockPassword * aPasswordPointer to simlock password
RMmCustomAPI::TLockNumber * aLockNumberPointer to simlock number to be activated

CancelService(const TInt, const TTsyReqHandle)

TInt CancelService(const TIntaIpc,
const TTsyReqHandleaTsyReqHandle
)[virtual]

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

Parameters

const TInt aIpcAn interprocess communication command identifier
const TTsyReqHandle aTsyReqHandleRequest handle

Complete(TInt, TInt)

voidComplete(TIntaReqHandleType,
TIntaError
)[virtual]

Calls the needed complete method due the timer expiration

Parameters

TInt aReqHandleType
TInt aError

CompleteActivateSimLock(TInt)

voidCompleteActivateSimLock(TIntaError)

Completes ActivateSimLock request.

Parameters

TInt aErrorError value

CompleteDeActivateSimLock(TInt)

voidCompleteDeActivateSimLock(TIntaError)

Completes DeActivateSimLock request.

Parameters

TInt aErrorError value

ConstructL(CMmCustomTsy *)

voidConstructL(CMmCustomTsy *aMmCustomTsy)[private]

By default EPOC constructor is private.

Parameters

CMmCustomTsy * aMmCustomTsy

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

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

DeActivate SimLock

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
RMmCustomAPI::TSimLockPassword * aPasswordPointer to simlock password
RMmCustomAPI::TLockNumber * aLockNumberPointer to simlock number to be deactivated

DeregisterNotification(const TInt)

TInt DeregisterNotification(const TIntaIpc)[virtual]

Deregister given notification.

Parameters

const TInt aIpcAn interprocess communication command identifier

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

TInt DoExtFuncL(const TTsyReqHandleaTsyReqHandle,
const TIntaIpc,
const TDataPackage &aPackage
)[virtual]

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

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
const TInt aIpc
const TDataPackage & aPackageReference to a data package

Init()

voidInit()[virtual]

Initialisation method

NewL(CMmCustomTsy *)

CMmSimLockTsy *NewL(CMmCustomTsy *mmCustomTsy)[static]

Two-phased constructor.

Parameters

CMmCustomTsy * mmCustomTsy

NumberOfSlotsL(const TInt)

TInt NumberOfSlotsL(const TIntaIpc)[virtual]

Returns number of slots to be used for given IPC.

Parameters

const TInt aIpcAn interprocess communication command identifier

RegisterNotification(const TInt)

TInt RegisterNotification(const TIntaIpc)[virtual]

Register given notification.

Parameters

const TInt aIpcAn interprocess communication command identifier

ReqModeL(const TInt)

CTelObject::TReqModeReqModeL(const TIntaIpc)[virtual]

Returns request mode for given IPC number.

Parameters

const TInt aIpcan interprocess communication command identifier

SetTypeOfResponse(const TInt, const TTsyReqHandle)

voidSetTypeOfResponse(const TIntaReqHandleType,
const TTsyReqHandleaTsyReqHandle
)[private]

Chooses the type of response, automatic or common

Parameters

const TInt aReqHandleType
const TTsyReqHandle aTsyReqHandle

SupportingIPC(const TInt)

TBool SupportingIPC(const TIntaIpc)[virtual]

Tells whether the object supports given IPC.

Parameters

const TInt aIpcrequest'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.