CSmsDispatcher Class Reference

class CSmsDispatcher : public CBase

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

Inherits from

Public Member Functions
~CSmsDispatcher()
voidCallbackAckSmsStored(TInt)
voidCallbackActivateSmsRouting(CRequestQueueOneShot::TIpcDataPackage *)
voidCallbackGetSmsStoreInfo(TInt, TInt, TInt)
voidCallbackGetSmspList(TInt, const TDesC &, const TDesC &, const TDesC &, const DispatcherSim::TSmsParameters &, TBool)
voidCallbackNackSmsStored(TInt)
voidCallbackNotifyReceiveSmsMessage(TInt, TBool, const TSmsMsg &)
voidCallbackResumeSmsReception(TInt)
voidCallbackSendSatSms(TInt)
voidCallbackSendSmsMessage(TInt, TInt, const TDesC8 &)
voidCallbackSendSmsMessageNoFdnCheck(TInt, TInt, const TDesC8 &)
voidCallbackSetMoSmsBearer(TInt)
voidCallbackStoreSmspListEntry(TInt)
voidCallbackSync(CRequestQueueOneShot::TIpcDataPackage &)
TInt DispatchAckSmsStoredL(const CMmDataPackage *)
TInt DispatchActivateSmsRoutingL()
TInt DispatchGetSmsStoreInfoL()
TInt DispatchGetSmspListL()
TInt DispatchNackSmsStoredL(const CMmDataPackage *)
TInt DispatchResumeSmsReceptionL()
TInt DispatchSendSatSmsL(const CMmDataPackage *)
TInt DispatchSendSmsMessageL(const CMmDataPackage *)
TInt DispatchSendSmsMessageNoFdnCheckL(const CMmDataPackage *)
TInt DispatchSetMoSmsBearerL(const CMmDataPackage *)
TInt DispatchStoreSmspListEntryL(const CMmDataPackage *)
CSmsDispatcher *NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
CSmsDispatcher *NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
voidSetDispatcherHolder(TDispatcherHolder &)
Private Member Functions
CSmsDispatcher(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
CArrayPtrFlat< TSmsParameters > *iLtsyDataList
MLtsyDispatchSmsAckSmsStored *iLtsyDispatchSmsAckSmsStored
MLtsyDispatchSmsGetSmsStoreInfo *iLtsyDispatchSmsGetSmsStoreInfo
MLtsyDispatchSmsGetSmspList *iLtsyDispatchSmsGetSmspList
MLtsyDispatchSmsNackSmsStored *iLtsyDispatchSmsNackSmsStored
MLtsyDispatchSmsResumeSmsReception *iLtsyDispatchSmsResumeSmsReception
MLtsyDispatchSmsSendSatSms *iLtsyDispatchSmsSendSatSms
MLtsyDispatchSmsSendSmsMessage *iLtsyDispatchSmsSendSmsMessage
MLtsyDispatchSmsSendSmsMessageNoFdnCheck *iLtsyDispatchSmsSendSmsMessageNoFdnCheck
MLtsyDispatchSmsSetMoSmsBearer *iLtsyDispatchSmsSetMoSmsBearer
MLtsyDispatchSmsStoreSmspListEntry *iLtsyDispatchSmsStoreSmspListEntry
MLtsyDispatchFactoryV1 &iLtsyFactoryV1
MmMessageManagerCallback &iMessageManagerCallback
CRequestQueueOneShot &iRequestAsyncOneShot

Constructor & Destructor Documentation

CSmsDispatcher(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

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

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

~CSmsDispatcher()

~CSmsDispatcher()[virtual]

Member Functions Documentation

CallbackAckSmsStored(TInt)

voidCallbackAckSmsStored(TIntaError)

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

Parameters

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

CallbackActivateSmsRouting(CRequestQueueOneShot::TIpcDataPackage *)

voidCallbackActivateSmsRouting(CRequestQueueOneShot::TIpcDataPackage *aDataPackage)

Callback function to be used by the request to complete .

Parameters

CRequestQueueOneShot::TIpcDataPackage * aDataPackagePackage containing the IPC, return data and result code to be completed to CTSY

CallbackGetSmsStoreInfo(TInt, TInt, TInt)

voidCallbackGetSmsStoreInfo(TIntaError,
TIntaTotalEntries,
TIntaUsedEntries
)

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

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TInt aTotalEntriesIndicates the total number of entries that may be held in this store.
TInt aUsedEntriesIndicates the current number of entries held in this store.

CallbackGetSmspList(TInt, const TDesC &, const TDesC &, const TDesC &, const DispatcherSim::TSmsParameters &, TBool)

voidCallbackGetSmspList(TIntaError,
const TDesC &aServiceCenterAddress,
const TDesC &aDestinationAddress,
const TDesC &aAlphaTagData,
const DispatcherSim::TSmsParameters &aSmsParameters,
TBoolaMoreToCome
)

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

Parameters

TInt aErrorKErrNone on success, or another error code indicating the error otherwise.
const TDesC & aServiceCenterAddressService center address.
const TDesC & aDestinationAddressDestination address.
const TDesC & aAlphaTagDataAlpha tag data.
const DispatcherSim::TSmsParameters & aSmsParametersSms parametets.
TBool aMoreToComeAre more elements to come.

CallbackNackSmsStored(TInt)

voidCallbackNackSmsStored(TIntaError)

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

Parameters

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

CallbackNotifyReceiveSmsMessage(TInt, TBool, const TSmsMsg &)

voidCallbackNotifyReceiveSmsMessage(TIntaError,
TBoolaInd,
const TSmsMsg &aSmsMessage
)

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

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TBool aIndSet routing activity on/off.
const TSmsMsg & aSmsMessageUsed to buffer incoming SMSes to the TSY.

CallbackResumeSmsReception(TInt)

voidCallbackResumeSmsReception(TIntaError)

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

Parameters

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

CallbackSendSatSms(TInt)

voidCallbackSendSatSms(TIntaError)

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

Parameters

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

CallbackSendSmsMessage(TInt, TInt, const TDesC8 &)

voidCallbackSendSmsMessage(TIntaError,
TIntaMsgRef,
const TDesC8 &aSmsSubmitReport
)

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

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TInt aMsgRefthe message reference assigned to a sent message.
const TDesC8 & aSmsSubmitReportmessage string, , which is expected to be a buffer with a maximum size of RMobileSmsMessaging::KGsmTpduSize

CallbackSendSmsMessageNoFdnCheck(TInt, TInt, const TDesC8 &)

voidCallbackSendSmsMessageNoFdnCheck(TIntaError,
TIntaMsgRef,
const TDesC8 &aSmsSubmitReport
)

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

Parameters

TInt aErrorThe error code to be returned to the CTSY Dispatcher.
TInt aMsgRefthe message reference assigned to a sent message.
const TDesC8 & aSmsSubmitReportmessage string, , which is expected to be a buffer with a maximum size of RMobileSmsMessaging::KGsmTpduSize

CallbackSetMoSmsBearer(TInt)

voidCallbackSetMoSmsBearer(TIntaError)

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

Parameters

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

CallbackStoreSmspListEntry(TInt)

voidCallbackStoreSmspListEntry(TIntaError)

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

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.

ConstructL()

voidConstructL()[private]

Second phase constructor.

DispatchAckSmsStoredL(const CMmDataPackage *)

TInt DispatchAckSmsStoredL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackagecontains the TPDU defined for a SMS-DELIVER-REPORT

DispatchActivateSmsRoutingL()

TInt DispatchActivateSmsRoutingL()

Unpack data related to EMmTsyActivateSmsRouting This is not passed to LTSY but just completed by dispatch layer

DispatchGetSmsStoreInfoL()

TInt DispatchGetSmsStoreInfoL()

DispatchGetSmspListL()

TInt DispatchGetSmspListL()

DispatchNackSmsStoredL(const CMmDataPackage *)

TInt DispatchNackSmsStoredL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackageContains packed pointer to TDesC8 (TPDU data) and TInt (RP cause)

DispatchResumeSmsReceptionL()

TInt DispatchResumeSmsReceptionL()

DispatchSendSatSmsL(const CMmDataPackage *)

TInt DispatchSendSatSmsL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackage

DispatchSendSmsMessageL(const CMmDataPackage *)

TInt DispatchSendSmsMessageL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackage

DispatchSendSmsMessageNoFdnCheckL(const CMmDataPackage *)

TInt DispatchSendSmsMessageNoFdnCheckL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackage

DispatchSetMoSmsBearerL(const CMmDataPackage *)

TInt DispatchSetMoSmsBearerL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackage

DispatchStoreSmspListEntryL(const CMmDataPackage *)

TInt DispatchStoreSmspListEntryL(const CMmDataPackage *aDataPackage)

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

Parameters

const CMmDataPackage * aDataPackage

NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

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

Parameters

MLtsyDispatchFactoryV1 & aLtsyFactory
MmMessageManagerCallback & aMessageManagerCallback
CRequestQueueOneShot & aRequestAsyncOneShot

NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)

CSmsDispatcher *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]

CArrayPtrFlat< TSmsParameters > * iLtsyDataList

CArrayPtrFlat< TSmsParameters > *iLtsyDataList[private]

MLtsyDispatchSmsAckSmsStored * iLtsyDispatchSmsAckSmsStored

MLtsyDispatchSmsAckSmsStored *iLtsyDispatchSmsAckSmsStored[private]

MLtsyDispatchSmsGetSmsStoreInfo * iLtsyDispatchSmsGetSmsStoreInfo

MLtsyDispatchSmsGetSmsStoreInfo *iLtsyDispatchSmsGetSmsStoreInfo[private]

MLtsyDispatchSmsGetSmspList * iLtsyDispatchSmsGetSmspList

MLtsyDispatchSmsGetSmspList *iLtsyDispatchSmsGetSmspList[private]

MLtsyDispatchSmsNackSmsStored * iLtsyDispatchSmsNackSmsStored

MLtsyDispatchSmsNackSmsStored *iLtsyDispatchSmsNackSmsStored[private]

MLtsyDispatchSmsResumeSmsReception * iLtsyDispatchSmsResumeSmsReception

MLtsyDispatchSmsResumeSmsReception *iLtsyDispatchSmsResumeSmsReception[private]

MLtsyDispatchSmsSendSatSms * iLtsyDispatchSmsSendSatSms

MLtsyDispatchSmsSendSatSms *iLtsyDispatchSmsSendSatSms[private]

MLtsyDispatchSmsSendSmsMessage * iLtsyDispatchSmsSendSmsMessage

MLtsyDispatchSmsSendSmsMessage *iLtsyDispatchSmsSendSmsMessage[private]

MLtsyDispatchSmsSendSmsMessageNoFdnCheck * iLtsyDispatchSmsSendSmsMessageNoFdnCheck

MLtsyDispatchSmsSendSmsMessageNoFdnCheck *iLtsyDispatchSmsSendSmsMessageNoFdnCheck[private]

MLtsyDispatchSmsSetMoSmsBearer * iLtsyDispatchSmsSetMoSmsBearer

MLtsyDispatchSmsSetMoSmsBearer *iLtsyDispatchSmsSetMoSmsBearer[private]

MLtsyDispatchSmsStoreSmspListEntry * iLtsyDispatchSmsStoreSmspListEntry

MLtsyDispatchSmsStoreSmspListEntry *iLtsyDispatchSmsStoreSmspListEntry[private]

MLtsyDispatchFactoryV1 & iLtsyFactoryV1

MLtsyDispatchFactoryV1 &iLtsyFactoryV1[private]

MmMessageManagerCallback & iMessageManagerCallback

MmMessageManagerCallback &iMessageManagerCallback[private]

CRequestQueueOneShot & iRequestAsyncOneShot

CRequestQueueOneShot &iRequestAsyncOneShot[private]