CSecurityDispatcher Class Reference

class CSecurityDispatcher : public CBase

This class is responsible for packing and unpacking data belonging to Security related requests to the Licensee LTSY.

Inherits from

Public Member Functions
~CSecurityDispatcher()
voidCallbackAbortSecurityCode(TInt)
voidCallbackBootNotifySecurityReady(TInt)
voidCallbackCheckSecurityCode(TInt)
voidCallbackCheckSecurityCodeCancel(TInt)
voidCallbackDisablePhoneLock(TInt)
voidCallbackGetCipheringInfo(TInt, TBool)
voidCallbackGetCurrentActivePin(TInt, RMobilePhone::TMobilePhoneSecurityCode)
voidCallbackGetLockInfo(TInt, RMobilePhone::TMobilePhoneLockStatus, RMobilePhone::TMobilePhoneLockSetting)
voidCallbackGetPin1DisableSupported(TInt, TBool)
voidCallbackGetSecurityCodeInfo(TInt, RMobilePhone::TMobilePhoneSecurityCode, TInt)
voidCallbackIsSecurityCodeBlocked(TInt, TBool)
voidCallbackNotifyCipheringInfoChange(TInt, const RMmCustomAPI::TCipheringInfo &)
voidCallbackNotifyLockInfoChange(TInt, RMobilePhone::TMobilePhoneLockStatus, RMobilePhone::TMobilePhoneLockSetting, RMobilePhone::TMobilePhoneLock)
voidCallbackNotifySecurityEvent(TInt, RMobilePhone::TMobilePhoneSecurityEvent)
voidCallbackSetLockSetting(TInt)
voidCallbackSync(CRequestQueueOneShot::TIpcDataPackage &)
voidCallbackVerifySecurityCode(TInt)
TInt DispatchAbortSecurityCodeL(const CMmDataPackage *)
TInt DispatchCheckSecurityCodeCancelL(const CMmDataPackage *)
TInt DispatchCheckSecurityCodeL(const CMmDataPackage *)
TInt DispatchDisablePhoneLockL(const CMmDataPackage *)
TInt DispatchGetCipheringInfoL()
TInt DispatchGetCurrentActivePinL()
TInt DispatchGetLockInfoL(const CMmDataPackage *)
TInt DispatchGetPin1DisableSupportedL()
TInt DispatchGetSecurityCodeInfoL(const CMmDataPackage *)
TInt DispatchIsSecurityCodeBlockedL(const CMmDataPackage *)
TInt DispatchSetLockSettingL(const CMmDataPackage *)
TInt DispatchVerifySecurityCodeL(const CMmDataPackage *)
CSecurityDispatcher *NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
CSecurityDispatcher *NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
voidSetDispatcherHolder(TDispatcherHolder &)
Private Member Functions
CSecurityDispatcher(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
voidConstructL()
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()
Private Attributes
TDispatcherHolder *iDispatcherHolder
MLtsyDispatchSecurityAbortSecurityCode *iLtsyDispatchSecurityAbortSecurityCode
MLtsyDispatchSecurityCheckSecurityCode *iLtsyDispatchSecurityCheckSecurityCode
MLtsyDispatchSecurityCheckSecurityCodeCancel *iLtsyDispatchSecurityCheckSecurityCodeCancel
MLtsyDispatchSecurityDisablePhoneLock *iLtsyDispatchSecurityDisablePhoneLock
MLtsyDispatchSecurityGetCipheringInfo *iLtsyDispatchSecurityGetCipheringInfo
MLtsyDispatchSecurityGetCurrentActivePin *iLtsyDispatchSecurityGetCurrentActivePin
MLtsyDispatchSecurityGetLockInfo *iLtsyDispatchSecurityGetLockInfo
MLtsyDispatchSecurityGetPin1DisableSupported *iLtsyDispatchSecurityGetPin1DisableSupported
MLtsyDispatchSecurityGetSecurityCodeInfo *iLtsyDispatchSecurityGetSecurityCodeInfo
MLtsyDispatchSecurityIsSecurityCodeBlocked *iLtsyDispatchSecurityIsSecurityCodeBlocked
MLtsyDispatchSecuritySetLockSetting *iLtsyDispatchSecuritySetLockSetting
MLtsyDispatchSecurityVerifySecurityCode *iLtsyDispatchSecurityVerifySecurityCode
MLtsyDispatchFactoryV1 &iLtsyFactoryV1
MmMessageManagerCallback &iMessageManagerCallback
CRequestQueueOneShot &iRequestAsyncOneShot

Constructor & Destructor Documentation

CSecurityDispatcher(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

CSecurityDispatcher(MLtsyDispatchFactoryV1 &aLtsyFactory,
MmMessageManagerCallback &aMessageManagerCallback,
CRequestQueueOneShot &aRequestAsyncOneShot
)[private]

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

~CSecurityDispatcher()

~CSecurityDispatcher()[virtual]

Member Functions Documentation

CallbackAbortSecurityCode(TInt)

voidCallbackAbortSecurityCode(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityAbortSecurityCodeComp()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

CallbackBootNotifySecurityReady(TInt)

voidCallbackBootNotifySecurityReady(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityBootNotifySecurityReadyInd()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

CallbackCheckSecurityCode(TInt)

voidCallbackCheckSecurityCode(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityCheckSecurityCodeComp().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

CallbackCheckSecurityCodeCancel(TInt)

voidCallbackCheckSecurityCodeCancel(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityCheckSecurityCodeCancelComp().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

CallbackDisablePhoneLock(TInt)

voidCallbackDisablePhoneLock(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityDisablePhoneLockComp().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

CallbackGetCipheringInfo(TInt, TBool)

voidCallbackGetCipheringInfo(TIntaError,
TBoolaIndStatus
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityGetCipheringInfoComp().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TBool aIndStatusCiphering indicator status.

CallbackGetCurrentActivePin(TInt, RMobilePhone::TMobilePhoneSecurityCode)

voidCallbackGetCurrentActivePin(TIntaError,
RMobilePhone::TMobilePhoneSecurityCodeaSecCode
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityGetCurrentActivePinComp()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
RMobilePhone::TMobilePhoneSecurityCode aSecCodeSecurity code.

CallbackGetLockInfo(TInt, RMobilePhone::TMobilePhoneLockStatus, RMobilePhone::TMobilePhoneLockSetting)

voidCallbackGetLockInfo(TIntaError,
RMobilePhone::TMobilePhoneLockStatusaLockStatus,
RMobilePhone::TMobilePhoneLockSettingaLockSetting
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityGetLockInfoComp()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
RMobilePhone::TMobilePhoneLockStatus aLockStatusLock status (unknown, locked, unlocked or blocked).
RMobilePhone::TMobilePhoneLockSetting aLockSettingLock setting (unknown, enabled, disabled or replaced).

CallbackGetPin1DisableSupported(TInt, TBool)

voidCallbackGetPin1DisableSupported(TIntaError,
TBoolaIsSupported
)

Packages the data returned by the Licensee LTSY and completes the EMmTsyPhoneGetPin1DisableSupportedIPC back to the Common TSY.

Parameters

TInt aErrorThe error code to complete back.
TBool aIsSupportedIs SIM support disabling of PIN1.

CallbackGetSecurityCodeInfo(TInt, RMobilePhone::TMobilePhoneSecurityCode, TInt)

voidCallbackGetSecurityCodeInfo(TIntaError,
RMobilePhone::TMobilePhoneSecurityCodeaSecCode,
TIntaRemainingEntryAttempts
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityGetSecurityCodeInfoComp()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
RMobilePhone::TMobilePhoneSecurityCode aSecCodeSecurity code.
TInt aRemainingEntryAttemptsNumber of remaining security code entry attempts before the corresponding lock gets blocked.

CallbackIsSecurityCodeBlocked(TInt, TBool)

voidCallbackIsSecurityCodeBlocked(TIntaError,
TBoolaIsBlocked
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityIsSecurityCodeBlockedComp().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TBool aIsBlockedIs security code blocked.

CallbackNotifyCipheringInfoChange(TInt, const RMmCustomAPI::TCipheringInfo &)

voidCallbackNotifyCipheringInfoChange(TIntaError,
const RMmCustomAPI::TCipheringInfo &aInfo
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityNotifyCipheringInfoChangeInd().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
const RMmCustomAPI::TCipheringInfo & aInfoCiphering information data structure: ciphering indicator and ciphering status.

CallbackNotifyLockInfoChange(TInt, RMobilePhone::TMobilePhoneLockStatus, RMobilePhone::TMobilePhoneLockSetting, RMobilePhone::TMobilePhoneLock)

voidCallbackNotifyLockInfoChange(TIntaError,
RMobilePhone::TMobilePhoneLockStatusaStatus,
RMobilePhone::TMobilePhoneLockSettingaSetting,
RMobilePhone::TMobilePhoneLockaLock
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityNotifyLockInfoChangeInd()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
RMobilePhone::TMobilePhoneLockStatus aStatusStatus of the lock (unknown, locked, unlocked or blocked).
RMobilePhone::TMobilePhoneLockSetting aSettingLock setting (unknown, enabled, disabled or replaced).
RMobilePhone::TMobilePhoneLock aLockLock information.

CallbackNotifySecurityEvent(TInt, RMobilePhone::TMobilePhoneSecurityEvent)

voidCallbackNotifySecurityEvent(TIntaError,
RMobilePhone::TMobilePhoneSecurityEventaSecEvent
)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityNotifySecurityEventInd()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
RMobilePhone::TMobilePhoneSecurityEvent aSecEventSecurity event.

CallbackSetLockSetting(TInt)

voidCallbackSetLockSetting(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecuritySetLockSettingComp()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

CallbackSync(CRequestQueueOneShot::TIpcDataPackage &)

voidCallbackSync(CRequestQueueOneShot::TIpcDataPackage &aIpcDataPackage)

Part of the MDispatcherCallback interface. Used to complete requests handled synchronously by the Licensee LTSY asynchronously back to the Common TSY.

MDispatcherCallback::CallbackSync

Parameters

CRequestQueueOneShot::TIpcDataPackage & aIpcDataPackagePackage encapsulating the request.

CallbackVerifySecurityCode(TInt)

voidCallbackVerifySecurityCode(TIntaError)

Callback function to be used by the request to complete CCtsyDispatcherCallback::CallbackSecurityVerifySecurityCodeComp().

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.

ConstructL()

voidConstructL()[private]

Second phase constructor.

DispatchAbortSecurityCodeL(const CMmDataPackage *)

TInt DispatchAbortSecurityCodeL(const CMmDataPackage *aDataPackage)

Unpack data related to EMobilePhoneAbortSecurityCode and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchCheckSecurityCodeCancelL(const CMmDataPackage *)

TInt DispatchCheckSecurityCodeCancelL(const CMmDataPackage *aDataPackage)

Unpack data related to ECustomCheckSecurityCodeCancelIPC and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchCheckSecurityCodeL(const CMmDataPackage *)

TInt DispatchCheckSecurityCodeL(const CMmDataPackage *aDataPackage)

Unpack data related to ECustomCheckSecurityCodeIPC and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchDisablePhoneLockL(const CMmDataPackage *)

TInt DispatchDisablePhoneLockL(const CMmDataPackage *aDataPackage)

Unpack data related to ECustomDisablePhoneLockIPC and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchGetCipheringInfoL()

TInt DispatchGetCipheringInfoL()

Pass request on to Licensee LTSY.

DispatchGetCurrentActivePinL()

TInt DispatchGetCurrentActivePinL()

Pass request on to Licensee LTSY.

DispatchGetLockInfoL(const CMmDataPackage *)

TInt DispatchGetLockInfoL(const CMmDataPackage *aDataPackage)

Unpack data related to EMobilePhoneGetLockInfo and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchGetPin1DisableSupportedL()

TInt DispatchGetPin1DisableSupportedL()

Pass request on to Licensee LTSY.

DispatchGetSecurityCodeInfoL(const CMmDataPackage *)

TInt DispatchGetSecurityCodeInfoL(const CMmDataPackage *aDataPackage)

Unpack data related to EMobilePhoneGetSecurityCodeInfo and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchIsSecurityCodeBlockedL(const CMmDataPackage *)

TInt DispatchIsSecurityCodeBlockedL(const CMmDataPackage *aDataPackage)

Unpack data related to ECustomIsBlockedIPC and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchSetLockSettingL(const CMmDataPackage *)

TInt DispatchSetLockSettingL(const CMmDataPackage *aDataPackage)

Unpack data related to EMobilePhoneSetLockSetting and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

DispatchVerifySecurityCodeL(const CMmDataPackage *)

TInt DispatchVerifySecurityCodeL(const CMmDataPackage *aDataPackage)

Unpack data related to EMobilePhoneVerifySecurityCode and pass request on to Licensee LTSY.

Parameters

const CMmDataPackage * aDataPackage

NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

CSecurityDispatcher *NewL(MLtsyDispatchFactoryV1 &aLtsyFactory,
MmMessageManagerCallback &aMessageManagerCallback,
CRequestQueueOneShot &aRequestAsyncOneShot
)[static]

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

CSecurityDispatcher *NewLC(MLtsyDispatchFactoryV1 &aLtsyFactory,
MmMessageManagerCallback &aMessageManagerCallback,
CRequestQueueOneShot &aRequestAsyncOneShot
)[static]

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

SetDispatcherHolder(TDispatcherHolder &)

voidSetDispatcherHolder(TDispatcherHolder &aDispatcherHolder)

Set the dispatcher holder.

Parameters

TDispatcherHolder & aDispatcherHolderReference to dispatcher holder.

Member Data Documentation

TDispatcherHolder * iDispatcherHolder

TDispatcherHolder *iDispatcherHolder[private]

MLtsyDispatchSecurityAbortSecurityCode * iLtsyDispatchSecurityAbortSecurityCode

MLtsyDispatchSecurityAbortSecurityCode *iLtsyDispatchSecurityAbortSecurityCode[private]

MLtsyDispatchSecurityCheckSecurityCode * iLtsyDispatchSecurityCheckSecurityCode

MLtsyDispatchSecurityCheckSecurityCode *iLtsyDispatchSecurityCheckSecurityCode[private]

MLtsyDispatchSecurityCheckSecurityCodeCancel * iLtsyDispatchSecurityCheckSecurityCodeCancel

MLtsyDispatchSecurityCheckSecurityCodeCancel *iLtsyDispatchSecurityCheckSecurityCodeCancel[private]

MLtsyDispatchSecurityDisablePhoneLock * iLtsyDispatchSecurityDisablePhoneLock

MLtsyDispatchSecurityDisablePhoneLock *iLtsyDispatchSecurityDisablePhoneLock[private]

MLtsyDispatchSecurityGetCipheringInfo * iLtsyDispatchSecurityGetCipheringInfo

MLtsyDispatchSecurityGetCipheringInfo *iLtsyDispatchSecurityGetCipheringInfo[private]

MLtsyDispatchSecurityGetCurrentActivePin * iLtsyDispatchSecurityGetCurrentActivePin

MLtsyDispatchSecurityGetCurrentActivePin *iLtsyDispatchSecurityGetCurrentActivePin[private]

MLtsyDispatchSecurityGetLockInfo * iLtsyDispatchSecurityGetLockInfo

MLtsyDispatchSecurityGetLockInfo *iLtsyDispatchSecurityGetLockInfo[private]

MLtsyDispatchSecurityGetPin1DisableSupported * iLtsyDispatchSecurityGetPin1DisableSupported

MLtsyDispatchSecurityGetPin1DisableSupported *iLtsyDispatchSecurityGetPin1DisableSupported[private]

MLtsyDispatchSecurityGetSecurityCodeInfo * iLtsyDispatchSecurityGetSecurityCodeInfo

MLtsyDispatchSecurityGetSecurityCodeInfo *iLtsyDispatchSecurityGetSecurityCodeInfo[private]

MLtsyDispatchSecurityIsSecurityCodeBlocked * iLtsyDispatchSecurityIsSecurityCodeBlocked

MLtsyDispatchSecurityIsSecurityCodeBlocked *iLtsyDispatchSecurityIsSecurityCodeBlocked[private]

MLtsyDispatchSecuritySetLockSetting * iLtsyDispatchSecuritySetLockSetting

MLtsyDispatchSecuritySetLockSetting *iLtsyDispatchSecuritySetLockSetting[private]

MLtsyDispatchSecurityVerifySecurityCode * iLtsyDispatchSecurityVerifySecurityCode

MLtsyDispatchSecurityVerifySecurityCode *iLtsyDispatchSecurityVerifySecurityCode[private]

MLtsyDispatchFactoryV1 & iLtsyFactoryV1

MLtsyDispatchFactoryV1 &iLtsyFactoryV1[private]

MmMessageManagerCallback & iMessageManagerCallback

MmMessageManagerCallback &iMessageManagerCallback[private]

CRequestQueueOneShot & iRequestAsyncOneShot

CRequestQueueOneShot &iRequestAsyncOneShot[private]