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 )
void CancelSetAlwaysOn ( TTsyReqHandle )
void Complete ( TInt , TInt )
void CompleteNotifyEGprsInfoChange (const TBool )
void CompleteSetAlwaysOn ( TTsyReqHandle , TInt )
TInt DeregisterNotification (const TInt )
TInt DoExtFuncL (const TTsyReqHandle , const TInt , const TDataPackage &)
void Init ()
CMmPacketTsy * NewL ( CMmCustomTsy *, CMmPhoneTsy *)
TInt NumberOfSlotsL (const TInt )
TInt RegisterNotification (const TInt )
CTelObject::TReqMode ReqModeL (const TInt )
TInt SetAlwaysOnL ( TTsyReqHandle , RMmCustomAPI::TSetAlwaysOnMode *)
TBool SupportingIPC (const TInt )
Private Member Functions
CMmPacketTsy ()
void ConstructL ()
TInt GetEGprsInfo (const TTsyReqHandle , TDes8 *)
TInt NotifyEGprsInfoChange (const TTsyReqHandle , TDes8 *)
void ReqCompleted (const TTsyReqHandle , const TInt )
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()
CMmSubTsyBase::CMmSubTsyBase()
CMmSubTsyBase::~CMmSubTsyBase()
Public Member Enumerations
enum TPacketRequestType { 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 TInt aIpc,
const TTsyReqHandle aTsyReqHandle
) [virtual]

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

Parameters

const TInt aIpc IPC number of request
const TTsyReqHandle aTsyReqHandle Request handle

CancelSetAlwaysOn(TTsyReqHandle)

void CancelSetAlwaysOn ( TTsyReqHandle aReqHandle )

Cancels Set Always On

Parameters

TTsyReqHandle aReqHandle

Complete(TInt, TInt)

void Complete ( TInt aReqHandleType,
TInt aError
) [virtual]

Calls the needed complete method due the timer expiration

Parameters

TInt aReqHandleType Request handle type
TInt aError

CompleteNotifyEGprsInfoChange(const TBool)

void CompleteNotifyEGprsInfoChange ( const TBool aGprsSupporsInCell ) [virtual]

Completes notification to client.

Parameters

const TBool aGprsSupporsInCell

CompleteSetAlwaysOn(TTsyReqHandle, TInt)

void CompleteSetAlwaysOn ( TTsyReqHandle aReqHandle,
TInt aError
)

Completes SetAlwaysOn request

Parameters

TTsyReqHandle aReqHandle
TInt aError error value from LTSY

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

DeregisterNotification(const TInt)

TInt DeregisterNotification ( const TInt aIpc ) [virtual]

Deregister given notification.

Parameters

const TInt aIpc IPC of the request

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

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

Handles extended client requests.

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
const TInt aIpc IPC number of request
const TDataPackage & aPackage Contains parameters for request

GetEGprsInfo(const TTsyReqHandle, TDes8 *)

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

Get EGprs information.

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
TDes8 * aGprsInformation GPRS information

Init()

void Init ( ) [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 TTsyReqHandle aTsyReqHandle,
TDes8 * aGprsInformation
) [private]

Request Notification when EGprs information changes.

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
TDes8 * aGprsInformation GPRS Information

NumberOfSlotsL(const TInt)

TInt NumberOfSlotsL ( const TInt aIpc ) [virtual]

Returns number of slots to be used for given IPC.

Parameters

const TInt aIpc IPC number of request

RegisterNotification(const TInt)

TInt RegisterNotification ( const TInt aIpc ) [virtual]

Register given notification.

Parameters

const TInt aIpc IPC of the request

ReqCompleted(const TTsyReqHandle, const TInt)

void ReqCompleted ( const TTsyReqHandle aTsyReqHandle,
const TInt aError
) [private, virtual]

Overload the original ReqCompleted for logging purposes.

Parameters

const TTsyReqHandle aTsyReqHandle Request handle
const TInt aError

ReqModeL(const TInt)

CTelObject::TReqMode ReqModeL ( const TInt aIpc ) [virtual]

Returns request mode for given IPC number.

Parameters

const TInt aIpc IPC number of request

SetAlwaysOnL(TTsyReqHandle, RMmCustomAPI::TSetAlwaysOnMode *)

TInt SetAlwaysOnL ( TTsyReqHandle aTsyReqHandle,
RMmCustomAPI::TSetAlwaysOnMode * aMode
)

Request Set Always On

Parameters

TTsyReqHandle aTsyReqHandle TSY ReqHandle
RMmCustomAPI::TSetAlwaysOnMode * aMode pointer to requested mode

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 Request handle type
const TTsyReqHandle aTsyReqHandle Request handle

SupportingIPC(const TInt)

TBool SupportingIPC ( const TInt aIpc ) [virtual]

Tells whether the object supports given IPC.

Parameters

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