CPhonebookEnDispatcher Class Reference

class CPhonebookEnDispatcher : public CBase

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

Inherits from

  • CPhonebookEnDispatcher
Public Member Functions
~CPhonebookEnDispatcher()
voidCallbackStoreGetInfo(TInt, TInt)
voidCallbackStoreReadAll(TInt, TInt, const TDesC &, TBool)
voidCallbackStoreReadEntry(TInt, TInt, const TDesC &)
voidCallbackSync(CRequestQueueOneShot::TIpcDataPackage &)
TInt DispatchStoreGetInfoL()
TInt DispatchStoreReadAllL()
TInt DispatchStoreReadEntryL(const CMmDataPackage *)
CPhonebookEnDispatcher *NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
CPhonebookEnDispatcher *NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
voidSetDispatcherHolder(TDispatcherHolder &)
Private Member Functions
CPhonebookEnDispatcher(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
voidConstructL()
voidFillEnStoreResponseListL(TInt, const TDesC &)
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
const TIntKMaxTotalEntries
TDispatcherHolder *iDispatcherHolder
CArrayPtrFlat< TENStoreResponse > *iEnEntriesArray
MLtsyDispatchPhonebookEnStoreGetInfo *iLtsyDispatchPhonebookEnStoreGetInfo
MLtsyDispatchPhonebookEnStoreReadAll *iLtsyDispatchPhonebookEnStoreReadAll
MLtsyDispatchPhonebookEnStoreReadEntry *iLtsyDispatchPhonebookEnStoreReadEntry
MLtsyDispatchFactoryV1 &iLtsyFactoryV1
MmMessageManagerCallback &iMessageManagerCallback
CRequestQueueOneShot &iRequestAsyncOneShot

Constructor & Destructor Documentation

CPhonebookEnDispatcher(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

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

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

~CPhonebookEnDispatcher()

~CPhonebookEnDispatcher()[virtual]

Member Functions Documentation

CallbackStoreGetInfo(TInt, TInt)

voidCallbackStoreGetInfo(TIntaError,
TIntaUsedEntries
)

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

RMobileENStore::GetInfo()

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TInt aUsedEntriesThe number of used entries in the EN storage.

CallbackStoreReadAll(TInt, TInt, const TDesC &, TBool)

voidCallbackStoreReadAll(TIntaError,
TIntaIndex,
const TDesC &aNumber,
TBoolaMoreToCome
)

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

CRetrieveMobilePhoneENList::Start()

Parameters

TInt aErrorKErrNone on success, or another error code indicating the error otherwise.
TInt aIndexThe index of the entry.
const TDesC & aNumberThe number stored in the EN entry. The length of this should not be more than 6.
TBool aMoreToComeETrue if there are more entries to be read, EFalse otherwise.

CallbackStoreReadEntry(TInt, TInt, const TDesC &)

voidCallbackStoreReadEntry(TIntaError,
TIntaIndex,
const TDesC &aNumber
)

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

RMobileENStore::Read()

Parameters

TInt aErrorKErrNone on success, or another error code indicating the error otherwise.
TInt aIndexThe index of the entry.
const TDesC & aNumberThe number stored in the EN entry. The length of this should not be more than 6.

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.

ConstructL()

voidConstructL()[private]

Second phase constructor.

DispatchStoreGetInfoL()

TInt DispatchStoreGetInfoL()

Pass request on to Licensee LTSY.

DispatchStoreReadAllL()

TInt DispatchStoreReadAllL()

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

DispatchStoreReadEntryL(const CMmDataPackage *)

TInt DispatchStoreReadEntryL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackage

FillEnStoreResponseListL(TInt, const TDesC &)

voidFillEnStoreResponseListL(TIntaIndex,
const TDesC &aNumber
)[private]

Parameters

TInt aIndex
const TDesC & aNumber

NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

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

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

CPhonebookEnDispatcher *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

const TInt KMaxTotalEntries

const TIntKMaxTotalEntries[private, static]

TDispatcherHolder * iDispatcherHolder

TDispatcherHolder *iDispatcherHolder[private]

CArrayPtrFlat< TENStoreResponse > * iEnEntriesArray

CArrayPtrFlat< TENStoreResponse > *iEnEntriesArray[private]

MLtsyDispatchPhonebookEnStoreGetInfo * iLtsyDispatchPhonebookEnStoreGetInfo

MLtsyDispatchPhonebookEnStoreGetInfo *iLtsyDispatchPhonebookEnStoreGetInfo[private]

MLtsyDispatchPhonebookEnStoreReadAll * iLtsyDispatchPhonebookEnStoreReadAll

MLtsyDispatchPhonebookEnStoreReadAll *iLtsyDispatchPhonebookEnStoreReadAll[private]

MLtsyDispatchPhonebookEnStoreReadEntry * iLtsyDispatchPhonebookEnStoreReadEntry

MLtsyDispatchPhonebookEnStoreReadEntry *iLtsyDispatchPhonebookEnStoreReadEntry[private]

MLtsyDispatchFactoryV1 & iLtsyFactoryV1

MLtsyDispatchFactoryV1 &iLtsyFactoryV1[private]

MmMessageManagerCallback & iMessageManagerCallback

MmMessageManagerCallback &iMessageManagerCallback[private]

CRequestQueueOneShot & iRequestAsyncOneShot

CRequestQueueOneShot &iRequestAsyncOneShot[private]