CMmPacketTsy Class Reference

class CMmPacketTsy : public CMmSubTsyBase

CMmPacketTsy contains GPRS related functionality It does not contain an extension. Instead it calls functions from CMmPacketContextTsy

Inherits from

Public Member Functions
~CMmPacketTsy()
TInt CancelService(const TInt, const TTsyReqHandle)
voidCancelSetAlwaysOn(TTsyReqHandle)
voidComplete(TInt, TInt)
voidCompleteNotifyEGprsInfoChange(const TBool)
voidCompleteSetAlwaysOn(TTsyReqHandle, TInt)
TInt DeregisterNotification(const TInt)
TInt DoExtFuncL(const TTsyReqHandle, const TInt, const TDataPackage &)
voidInit()
CMmPacketTsy *NewL(CMmCustomTsy *, CMmPhoneTsy *)
TInt NumberOfSlotsL(const TInt)
TInt RegisterNotification(const TInt)
CTelObject::TReqModeReqModeL(const TInt)
TInt SetAlwaysOnL(TTsyReqHandle, RMmCustomAPI::TSetAlwaysOnMode *)
TBool SupportingIPC(const TInt)
Private Member Functions
CMmPacketTsy()
voidConstructL()
TInt GetEGprsInfo(const TTsyReqHandle, TDes8 *)
TInt NotifyEGprsInfoChange(const TTsyReqHandle, TDes8 *)
voidReqCompleted(const TTsyReqHandle, const TInt)
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()
CMmSubTsyBase::CMmSubTsyBase()
CMmSubTsyBase::~CMmSubTsyBase()
Public Member Enumerations
enumTPacketRequestType { EMultimodePacketContextReqHandleUnknown, EMultimodePacketContextSetAuthenticationInfo, EMultimodePacketContextNotifyEGprsInfoChange, EMultimodePacketMaxNumOfRequests }
Private Attributes
RMmCustomAPI::TSetAlwaysOnMode iAllwaysOnMode
RMmCustomAPI::TGprsInformationPckg *iGprsInformationPckg
CMmCustomTsy *iMmCustomTsy
CMmPhoneTsy *iMmPhone
TTsyReqHandle iPacketReqHandles
CMmTsyReqHandleStore *iTsyReqHandleStore

Constructor & Destructor Documentation

CMmPacketTsy()

CMmPacketTsy()[private]

C++ default constructor.

~CMmPacketTsy()

~CMmPacketTsy()[virtual]

Destructor

Member Functions Documentation

CancelService(const TInt, const TTsyReqHandle)

TInt CancelService(const TIntaIpc,
const TTsyReqHandleaTsyReqHandle
)[virtual]

Cancels request of which IPC number and request handle are given in parameters.

Parameters

const TInt aIpcIPC number of request
const TTsyReqHandle aTsyReqHandleRequest handle

CancelSetAlwaysOn(TTsyReqHandle)

voidCancelSetAlwaysOn(TTsyReqHandleaReqHandle)

Cancels Set Always On

Parameters

TTsyReqHandle aReqHandle

Complete(TInt, TInt)

voidComplete(TIntaReqHandleType,
TIntaError
)[virtual]

Calls the needed complete method due the timer expiration

Parameters

TInt aReqHandleTypeRequest handle type
TInt aError

CompleteNotifyEGprsInfoChange(const TBool)

voidCompleteNotifyEGprsInfoChange(const TBoolaGprsSupporsInCell)[virtual]

Completes notification to client.

Parameters

const TBool aGprsSupporsInCell

CompleteSetAlwaysOn(TTsyReqHandle, TInt)

voidCompleteSetAlwaysOn(TTsyReqHandleaReqHandle,
TIntaError
)

Completes SetAlwaysOn request

Parameters

TTsyReqHandle aReqHandle
TInt aErrorerror value from LTSY

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DeregisterNotification(const TInt)

TInt DeregisterNotification(const TIntaIpc)[virtual]

Deregister given notification.

Parameters

const TInt aIpcIPC of the request

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

TInt DoExtFuncL(const TTsyReqHandleaTsyReqHandle,
const TIntaIpc,
const TDataPackage &aPackage
)[virtual]

Handles extended client requests.

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
const TInt aIpcIPC number of request
const TDataPackage & aPackageContains parameters for request

GetEGprsInfo(const TTsyReqHandle, TDes8 *)

TInt GetEGprsInfo(const TTsyReqHandleaTsyReqHandle,
TDes8 *aGprsInformation
)[private]

Get EGprs information.

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
TDes8 * aGprsInformationGPRS information

Init()

voidInit()[virtual]

Initialisation method

NewL(CMmCustomTsy *, CMmPhoneTsy *)

CMmPacketTsy *NewL(CMmCustomTsy *aMmCustomTsy,
CMmPhoneTsy *aMmPhoneTsy
)[static]

Two-phased constructor.

Parameters

CMmCustomTsy * aMmCustomTsy
CMmPhoneTsy * aMmPhoneTsy

NotifyEGprsInfoChange(const TTsyReqHandle, TDes8 *)

TInt NotifyEGprsInfoChange(const TTsyReqHandleaTsyReqHandle,
TDes8 *aGprsInformation
)[private]

Request Notification when EGprs information changes.

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
TDes8 * aGprsInformationGPRS Information

NumberOfSlotsL(const TInt)

TInt NumberOfSlotsL(const TIntaIpc)[virtual]

Returns number of slots to be used for given IPC.

Parameters

const TInt aIpcIPC number of request

RegisterNotification(const TInt)

TInt RegisterNotification(const TIntaIpc)[virtual]

Register given notification.

Parameters

const TInt aIpcIPC of the request

ReqCompleted(const TTsyReqHandle, const TInt)

voidReqCompleted(const TTsyReqHandleaTsyReqHandle,
const TIntaError
)[private, virtual]

Overload the original ReqCompleted for logging purposes.

Parameters

const TTsyReqHandle aTsyReqHandleRequest handle
const TInt aError

ReqModeL(const TInt)

CTelObject::TReqModeReqModeL(const TIntaIpc)[virtual]

Returns request mode for given IPC number.

Parameters

const TInt aIpcIPC number of request

SetAlwaysOnL(TTsyReqHandle, RMmCustomAPI::TSetAlwaysOnMode *)

TInt SetAlwaysOnL(TTsyReqHandleaTsyReqHandle,
RMmCustomAPI::TSetAlwaysOnMode *aMode
)

Request Set Always On

Parameters

TTsyReqHandle aTsyReqHandleTSY ReqHandle
RMmCustomAPI::TSetAlwaysOnMode * aModepointer to requested mode

SetTypeOfResponse(const TInt, const TTsyReqHandle)

voidSetTypeOfResponse(const TIntaReqHandleType,
const TTsyReqHandleaTsyReqHandle
)[private]

Chooses the type of response, automatic or common

Parameters

const TInt aReqHandleTypeRequest handle type
const TTsyReqHandle aTsyReqHandleRequest handle

SupportingIPC(const TInt)

TBool SupportingIPC(const TIntaIpc)[virtual]

Tells whether the object supports given IPC.

Parameters

const TInt aIpcIPC of the request

Member Enumerations Documentation

Enum TPacketRequestType

Enumerators

EMultimodePacketContextReqHandleUnknown
EMultimodePacketContextSetAuthenticationInfo
EMultimodePacketContextNotifyEGprsInfoChange
EMultimodePacketMaxNumOfRequests

Member Data Documentation

RMmCustomAPI::TSetAlwaysOnMode iAllwaysOnMode

RMmCustomAPI::TSetAlwaysOnMode iAllwaysOnMode[private]

Allways on mode parameter Not Own

RMmCustomAPI::TGprsInformationPckg * iGprsInformationPckg

RMmCustomAPI::TGprsInformationPckg *iGprsInformationPckg[private]

Gprs connection information Not Own.

CMmCustomTsy * iMmCustomTsy

CMmCustomTsy *iMmCustomTsy[private]

Pointer to CMmCustomTsy Not own.

CMmPhoneTsy * iMmPhone

CMmPhoneTsy *iMmPhone[private]

Pointer to the Phone TSY Not own.

TTsyReqHandle iPacketReqHandles

TTsyReqHandle iPacketReqHandles[private]

CMmTsyReqHandleStore * iTsyReqHandleStore

CMmTsyReqHandleStore *iTsyReqHandleStore[private]

Pointer to the Req handle store Own.