CMmCustomSecurityTsy Class Reference

class CMmCustomSecurityTsy : public CBase

Inherits from

Public Member Functions
CMmCustomSecurityTsy ()
~CMmCustomSecurityTsy ()
TInt CancelService (const TInt , const TTsyReqHandle )
void Complete ( TInt , TInt )
void CompleteCheckSecurityCode ( TInt )
void CompleteCheckSecurityCodeCancel ()
void CompleteDisablePhoneLock ( TInt )
void CompleteIsBlocked ( TInt , TBool )
TInt DeliverCodeL ( RMobilePhone::TCodeAndUnblockCode )
TInt DeregisterNotification (const TInt )
TInt DoExtFuncL (const TTsyReqHandle , const TInt , const TDataPackage &)
void Init ()
CMmCustomSecurityTsy * NewL ( CMmCustomTsy *, CMmPhoneTsy *)
TInt NumberOfSlotsL (const TInt )
TInt RegisterNotification (const TInt )
CTelObject::TReqMode ReqModeL (const TInt )
void SetActivePin ( CMmDataPackage *)
TBool SupportingIPC (const TInt )
Private Member Functions
TInt CheckSecurityCodeCancelL ()
TInt CheckSecurityCodeL (const TTsyReqHandle , RMmCustomAPI::TSecurityCodeType *)
void ConstructL ( CMmCustomTsy *, CMmPhoneTsy *)
TInt DisablePhoneLockL (const TTsyReqHandle , RMobilePhone::TMobilePassword *)
TInt GetActivePin (const TTsyReqHandle , RMobilePhone::TMobilePhoneSecurityCode *)
TInt IsBlocked (const TTsyReqHandle , RMmCustomAPI::TSecurityCodeType *, TBool *)
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()
Public Member Enumerations
enum TSecurityRequestType {
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 TInt aIpc,
const TTsyReqHandle aTsyReqHandle
)

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

CheckSecurityCodeCancelL()

TInt CheckSecurityCodeCancelL ( ) [private]

Cancel the CheckSecurityCode request

CheckSecurityCodeL(const TTsyReqHandle, RMmCustomAPI::TSecurityCodeType *)

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

Check Security Code

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
RMmCustomAPI::TSecurityCodeType * aCode Security code type

Complete(TInt, TInt)

void Complete ( TInt aReqHandleType,
TInt aError
)

Calls the needed complete method due the timer expiration

Parameters

TInt aReqHandleType
TInt aError

CompleteCheckSecurityCode(TInt)

void CompleteCheckSecurityCode ( TInt aError )

Completes the CheckSecurityCode response message.

Parameters

TInt aError Error value

CompleteCheckSecurityCodeCancel()

void CompleteCheckSecurityCodeCancel ( )

Completes the CheckSecurityCodeCancel response message.

CompleteDisablePhoneLock(TInt)

void CompleteDisablePhoneLock ( TInt aError )

Completes the DisablePhoneLock request.

Parameters

TInt aError Error value

CompleteIsBlocked(TInt, TBool)

void CompleteIsBlocked ( TInt aError,
TBool aIsBlocked
)

Completes the IsBlocked response message.

Parameters

TInt aError Error value
TBool aIsBlocked

ConstructL(CMmCustomTsy *, CMmPhoneTsy *)

void ConstructL ( CMmCustomTsy * aMmCustomTsy,
CMmPhoneTsy * aMmPhoneTsy
) [private]

By default EPOC constructor is private.

Parameters

CMmCustomTsy * aMmCustomTsy
CMmPhoneTsy * aMmPhoneTsy

DeliverCodeL(RMobilePhone::TCodeAndUnblockCode)

TInt DeliverCodeL ( RMobilePhone::TCodeAndUnblockCode aCodes ) [virtual]

Delivers password to extension for lock setting change

DeregisterNotification(const TInt)

TInt DeregisterNotification ( const TInt aIpc )

Deregister given notification.

Parameters

const TInt aIpc An interprocess communication command identifier

DisablePhoneLockL(const TTsyReqHandle, RMobilePhone::TMobilePassword *)

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

Disable Phone Lock

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
RMobilePhone::TMobilePassword * aPassword Password for verify

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

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

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

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
const TInt aIpc Request's IPC value
const TDataPackage & aPackage Reference to a data package

GetActivePin(const TTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *)

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

Gets the currently active PIN (PIN/UPIN) code

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
RMobilePhone::TMobilePhoneSecurityCode * aActivePin

Init()

void Init ( )

Initialisation method

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

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

Is Blocked

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
RMmCustomAPI::TSecurityCodeType * aCode Security 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 TInt aIpc )

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 )

Register given notification.

Parameters

const TInt aIpc An interprocess communication command identifier

ReqModeL(const TInt)

CTelObject::TReqMode ReqModeL ( const TInt aIpc )

Returns request mode for given IPC number.

Parameters

const TInt aIpc An interprocess communication command identifier

SetActivePin(CMmDataPackage *)

void SetActivePin ( CMmDataPackage * aDataPackage )

Change the information about the currently active PIN.

Parameters

CMmDataPackage * aDataPackage Data package

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 )

Tells whether the object supports given IPC.

Parameters

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