CMmCustomSecurityTsy Class Reference

class CMmCustomSecurityTsy : public CBase

Inherits from

  • CMmCustomSecurityTsy
Public Member Functions
CMmCustomSecurityTsy()
~CMmCustomSecurityTsy()
TInt CancelService(const TInt, const TTsyReqHandle)
voidComplete(TInt, TInt)
voidCompleteCheckSecurityCode(TInt)
voidCompleteCheckSecurityCodeCancel()
voidCompleteDisablePhoneLock(TInt)
voidCompleteIsBlocked(TInt, TBool)
TInt DeliverCodeL(RMobilePhone::TCodeAndUnblockCode)
TInt DeregisterNotification(const TInt)
TInt DoExtFuncL(const TTsyReqHandle, const TInt, const TDataPackage &)
voidInit()
CMmCustomSecurityTsy *NewL(CMmCustomTsy *, CMmPhoneTsy *)
TInt NumberOfSlotsL(const TInt)
TInt RegisterNotification(const TInt)
CTelObject::TReqModeReqModeL(const TInt)
voidSetActivePin(CMmDataPackage *)
TBool SupportingIPC(const TInt)
Private Member Functions
TInt CheckSecurityCodeCancelL()
TInt CheckSecurityCodeL(const TTsyReqHandle, RMmCustomAPI::TSecurityCodeType *)
voidConstructL(CMmCustomTsy *, CMmPhoneTsy *)
TInt DisablePhoneLockL(const TTsyReqHandle, RMobilePhone::TMobilePassword *)
TInt GetActivePin(const TTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *)
TInt IsBlocked(const TTsyReqHandle, RMmCustomAPI::TSecurityCodeType *, TBool *)
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()
Public Member Enumerations
enumTSecurityRequestType {
ESecurityTsyReqHandleUnknown, ESecurityRequestTypeIsBlocked, ESecurityRequestTypeCheckSecurityCode, ESecurityRequestTypeDisablePhoneLock, ESecurityRequestTypeMaxNumOfRequests, ESecurityRequestTypeUndefined = 0xff
}
Private Attributes
RMobilePhone::TMobilePhoneSecurityCode iActivePin
TUint8 iCodeID
TBool *iIsBlocked
CMmCustomTsy *iMmCustomTsy
CMmPhoneTsy *iMmPhoneTsy
TSecurityRequestType iReqHandleType
RMobilePhone::TMobilePassword iSecCode
TTsyReqHandle iSecReqHandles
TUint8 iTransId
CMmTsyReqHandleStore *iTsyReqHandleStore

Constructor & Destructor Documentation

CMmCustomSecurityTsy()

CMmCustomSecurityTsy()

C++ default constructor.

~CMmCustomSecurityTsy()

~CMmCustomSecurityTsy()

Destructor.

Member Functions Documentation

CancelService(const TInt, const TTsyReqHandle)

TInt CancelService(const TIntaIpc,
const TTsyReqHandleaTsyReqHandle
)

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

CheckSecurityCodeCancelL()

TInt CheckSecurityCodeCancelL()[private]

Cancel the CheckSecurityCode request

CheckSecurityCodeL(const TTsyReqHandle, RMmCustomAPI::TSecurityCodeType *)

TInt CheckSecurityCodeL(const TTsyReqHandleaTsyReqHandle,
RMmCustomAPI::TSecurityCodeType *aCode
)[private]

Check Security Code

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
RMmCustomAPI::TSecurityCodeType * aCodeSecurity code type

Complete(TInt, TInt)

voidComplete(TIntaReqHandleType,
TIntaError
)

Calls the needed complete method due the timer expiration

Parameters

TInt aReqHandleType
TInt aError

CompleteCheckSecurityCode(TInt)

voidCompleteCheckSecurityCode(TIntaError)

Completes the CheckSecurityCode response message.

Parameters

TInt aErrorError value

CompleteCheckSecurityCodeCancel()

voidCompleteCheckSecurityCodeCancel()

Completes the CheckSecurityCodeCancel response message.

CompleteDisablePhoneLock(TInt)

voidCompleteDisablePhoneLock(TIntaError)

Completes the DisablePhoneLock request.

Parameters

TInt aErrorError value

CompleteIsBlocked(TInt, TBool)

voidCompleteIsBlocked(TIntaError,
TBoolaIsBlocked
)

Completes the IsBlocked response message.

Parameters

TInt aErrorError value
TBool aIsBlocked

ConstructL(CMmCustomTsy *, CMmPhoneTsy *)

voidConstructL(CMmCustomTsy *aMmCustomTsy,
CMmPhoneTsy *aMmPhoneTsy
)[private]

By default EPOC constructor is private.

Parameters

CMmCustomTsy * aMmCustomTsy
CMmPhoneTsy * aMmPhoneTsy

DeliverCodeL(RMobilePhone::TCodeAndUnblockCode)

TInt DeliverCodeL(RMobilePhone::TCodeAndUnblockCodeaCodes)[virtual]

Delivers password to extension for lock setting change

DeregisterNotification(const TInt)

TInt DeregisterNotification(const TIntaIpc)

Deregister given notification.

Parameters

const TInt aIpcAn interprocess communication command identifier

DisablePhoneLockL(const TTsyReqHandle, RMobilePhone::TMobilePassword *)

TInt DisablePhoneLockL(const TTsyReqHandleaTsyReqHandle,
RMobilePhone::TMobilePassword *aPassword
)[private]

Disable Phone Lock

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
RMobilePhone::TMobilePassword * aPasswordPassword for verify

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

TInt DoExtFuncL(const TTsyReqHandleaTsyReqHandle,
const TIntaIpc,
const TDataPackage &aPackage
)

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

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
const TInt aIpcRequest's IPC value
const TDataPackage & aPackageReference to a data package

GetActivePin(const TTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *)

TInt GetActivePin(const TTsyReqHandleaTsyReqHandle,
RMobilePhone::TMobilePhoneSecurityCode *aActivePin
)[private]

Gets the currently active PIN (PIN/UPIN) code

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
RMobilePhone::TMobilePhoneSecurityCode * aActivePin

Init()

voidInit()

Initialisation method

IsBlocked(const TTsyReqHandle, RMmCustomAPI::TSecurityCodeType *, TBool *)

TInt IsBlocked(const TTsyReqHandleaTsyReqHandle,
RMmCustomAPI::TSecurityCodeType *aCode,
TBool *aIsBlocked
)[private]

Is Blocked

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
RMmCustomAPI::TSecurityCodeType * aCodeSecurity code type
TBool * aIsBlocked

NewL(CMmCustomTsy *, CMmPhoneTsy *)

CMmCustomSecurityTsy *NewL(CMmCustomTsy *aMmCustomTsy,
CMmPhoneTsy *aPhoneTsy
)[static]

Two-phased constructor.

Parameters

CMmCustomTsy * aMmCustomTsy
CMmPhoneTsy * aPhoneTsy

NumberOfSlotsL(const TInt)

TInt NumberOfSlotsL(const TIntaIpc)

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)

Register given notification.

Parameters

const TInt aIpcAn interprocess communication command identifier

ReqModeL(const TInt)

CTelObject::TReqModeReqModeL(const TIntaIpc)

Returns request mode for given IPC number.

Parameters

const TInt aIpcAn interprocess communication command identifier

SetActivePin(CMmDataPackage *)

voidSetActivePin(CMmDataPackage *aDataPackage)

Change the information about the currently active PIN.

Parameters

CMmDataPackage * aDataPackageData package

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)

Tells whether the object supports given IPC.

Parameters

const TInt aIpcRequest's IPC value

Member Enumerations Documentation

Enum TSecurityRequestType

Enumerators

ESecurityTsyReqHandleUnknown
ESecurityRequestTypeIsBlocked
ESecurityRequestTypeCheckSecurityCode
ESecurityRequestTypeDisablePhoneLock
ESecurityRequestTypeMaxNumOfRequests
ESecurityRequestTypeUndefined = 0xff

Member Data Documentation

RMobilePhone::TMobilePhoneSecurityCode iActivePin

RMobilePhone::TMobilePhoneSecurityCode iActivePin[private]

Holding the information of the currently active PIN

TUint8 iCodeID

TUint8 iCodeID[private]

Code: PIN, PIN2 or Security

TBool * iIsBlocked

TBool *iIsBlocked[private]

Pointer to client side data Not Own.

CMmCustomTsy * iMmCustomTsy

CMmCustomTsy *iMmCustomTsy[private]

Pointer to CMmCustomTsy class Not Own.

CMmPhoneTsy * iMmPhoneTsy

CMmPhoneTsy *iMmPhoneTsy[private]

Pointer to CMmPhoneTsy class Not Own.

TSecurityRequestType iReqHandleType

TSecurityRequestType iReqHandleType[private]

Saves temporarily last TSY request type

RMobilePhone::TMobilePassword iSecCode

RMobilePhone::TMobilePassword iSecCode[private]

Variable for storing temporarily Security code

TTsyReqHandle iSecReqHandles

TTsyReqHandle iSecReqHandles[private]

SIM CustomAPI request handle table

TUint8 iTransId

TUint8 iTransId[private]

SIM CustomAPI request handle table

CMmTsyReqHandleStore * iTsyReqHandleStore

CMmTsyReqHandleStore *iTsyReqHandleStore[private]

Pointer to request handle store Own.