CTelObject Class Reference

class CTelObject : public CObject

Inherits from

Public Member Functions
CTelObject ()
~CTelObject ()
TDes8 * BufferDes1 (const CBuffer *, CBuffer::TWhichSlot )
TDes16 * BufferDes1u (const CBuffer *, CBuffer::TWhichSlot )
TDes8 * BufferDes2 (const CBuffer *, CBuffer::TWhichSlot )
TDes16 * BufferDes2u (const CBuffer *, CBuffer::TWhichSlot )
void CancelSubSession ( CTelSession *, const TInt )
void CheckAndDestroyDummySubSession ()
void CloseSubSessionPreProcessing ( CTelSession *, const TInt )
void CreateDummySession ( CTelSession *, const TInt , TBool )
void CreateDummySessionObjectL ( CTelSession *)
IMPORT_C TInt DownCallOption (const TInt , TAny *)
IMPORT_C void FlowControlResume ()
IMPORT_C void FlowControlSuspend ()
void FlushReqs ( CTelSession *, const TInt )
void GeneralReq (const RMessage2 &, CTelSession *, CReqEntry *, TBool )
IMPORT_C TSecurityPolicy GetRequiredPlatSecCaps (const TInt )
void OpenPostProcessing ( CTelSession *, const TInt )
CPhoneBase * PhoneOwner ()
TUint8 * Ptr1 (const TDes8 *)
void RemoveDummySubSessionDestroyer ()
IMPORT_C void ReqCompleted (const TTsyReqHandle , const TInt )
TInt ResolveError ( CTelSession *, const TInt )
IMPORT_C TInt ServerVersion ()
TInt Service (const RMessage2 &, CReqEntry *)
void SetPhoneOwner ( CPhoneBase *)
void TelObjectClose ()
IMPORT_C TInt UpCallOption (const TInt , TAny *)
void UpdateAndCompleteIfNecessary ( CReqEntry *, TInt )
void WriteBackAndCompleteBufferedReq (const RMessage2 &, CReqEntry *, TInt )
void WriteBackAndCompleteReq ( CReqEntry *, const TInt )
Protected Member Functions
TBool IsPriorityClientReq ( TInt )
Private Member Functions
IMPORT_C void CTelObject_Reserved1 ()
void CancelActiveReq ( CTelSession *, const TInt )
void CheckAndResize ( TInt &, const RMessage2 &)
CReqEntry * CheckForSimilarRequestAndCreateL (const RMessage2 &, CTelSession *)
void CompleteAndDestroyReq ( CReqEntry *, const TInt )
void CompleteOrBufferRead (const RMessage2 &, CReqEntry *)
HEtelBufC8 * CreateNarrowBufferLC ( RHeap *, const RMessage2 &, TUint , TUint , TInt &, TInt &, TInt )
HEtelBufC16 * CreateUnicodeBufferLC ( RHeap *, const RMessage2 &, TUint , TUint , TInt &, TInt &, TInt )
void DestroyReq ( CReqEntry *)
void GetMessageDescriptorSizes (const RMessage2 &, TInt &, TInt &)
TBool IsActiveReq ( CTelSession *, const TInt )
TBool IsSameMessageType (const RMessage2 &, CReqEntry *)
CReqEntry * ReqAnalyserL (const RMessage2 &, CTelSession *, TReqMode &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
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()
CObject::AccessCount()const
CObject::CObject()
CObject::Close()
CObject::Dec()
CObject::Extension_(TUint,TAny *&,TAny *)
CObject::FullName()const
CObject::Inc()
CObject::Name()const
CObject::Open()
CObject::Owner()const
CObject::SetName(const TDesC *)
CObject::SetNameL(const TDesC *)
CObject::SetOwner(CObject *)
CObject::UniqueID()const
CObject::~CObject()
Private Attributes
TInt iActiveReqCount
TAny * iCTelObject_Reserved
TBool iCreateDummy
CDestroyDummySubSession * iDestroyDummySubSession
CPhoneBase * iPhoneOwner
CTelServer * iTelServer

Constructor & Destructor Documentation

CTelObject()

IMPORT_C CTelObject ( )

~CTelObject()

IMPORT_C ~CTelObject ( ) [virtual]

Member Functions Documentation

BufferDes1(const CBuffer *, CBuffer::TWhichSlot)

TDes8 * BufferDes1 ( const CBuffer * aBuffer,
CBuffer::TWhichSlot aWhichSlot
) const

Parameters

const CBuffer * aBuffer
CBuffer::TWhichSlot aWhichSlot

BufferDes1u(const CBuffer *, CBuffer::TWhichSlot)

TDes16 * BufferDes1u ( const CBuffer * aBuffer,
CBuffer::TWhichSlot aWhichSlot
) const

Parameters

const CBuffer * aBuffer
CBuffer::TWhichSlot aWhichSlot

BufferDes2(const CBuffer *, CBuffer::TWhichSlot)

TDes8 * BufferDes2 ( const CBuffer * aBuffer,
CBuffer::TWhichSlot aWhichSlot
) const

Parameters

const CBuffer * aBuffer
CBuffer::TWhichSlot aWhichSlot

BufferDes2u(const CBuffer *, CBuffer::TWhichSlot)

TDes16 * BufferDes2u ( const CBuffer * aBuffer,
CBuffer::TWhichSlot aWhichSlot
) const

Parameters

const CBuffer * aBuffer
CBuffer::TWhichSlot aWhichSlot

CTelObject_Reserved1()

IMPORT_C void CTelObject_Reserved1 ( ) [private, virtual]

CancelActiveReq(CTelSession *, const TInt)

void CancelActiveReq ( CTelSession * aSession,
const TInt aSubSessionHandle
) [private]

Parameters

CTelSession * aSession
const TInt aSubSessionHandle

CancelSubSession(CTelSession *, const TInt)

void CancelSubSession ( CTelSession * aSession,
const TInt aSubSessionHandle
)

Parameters

CTelSession * aSession
const TInt aSubSessionHandle

CheckAndDestroyDummySubSession()

void CheckAndDestroyDummySubSession ( )

CheckAndResize(TInt &, const RMessage2 &)

void CheckAndResize ( TInt & aSizeOfData,
const RMessage2 & aMessage
) const [private]

Parameters

TInt & aSizeOfData
const RMessage2 & aMessage

CheckForSimilarRequestAndCreateL(const RMessage2 &, CTelSession *)

CReqEntry * CheckForSimilarRequestAndCreateL ( const RMessage2 & aMessage,
CTelSession * aSession
) const [private]

Parameters

const RMessage2 & aMessage
CTelSession * aSession

CloseSubSessionPreProcessing(CTelSession *, const TInt)

void CloseSubSessionPreProcessing ( CTelSession * aSession,
const TInt aSubSessionHandle
) [pure virtual]

Parameters

CTelSession * aSession
const TInt aSubSessionHandle

CompleteAndDestroyReq(CReqEntry *, const TInt)

void CompleteAndDestroyReq ( CReqEntry * aReqEntry,
const TInt aStatus
) const [private]

Parameters

CReqEntry * aReqEntry
const TInt aStatus

CompleteOrBufferRead(const RMessage2 &, CReqEntry *)

void CompleteOrBufferRead ( const RMessage2 & aMessage,
CReqEntry * aReqEntry
) [private]

Parameters

const RMessage2 & aMessage
CReqEntry * aReqEntry

CreateDummySession(CTelSession *, const TInt, TBool)

void CreateDummySession ( CTelSession * aSession,
const TInt aSubSessionHandle,
TBool aCreateDummy = EFalse
)

Parameters

CTelSession * aSession
const TInt aSubSessionHandle
TBool aCreateDummy = EFalse

CreateDummySessionObjectL(CTelSession *)

void CreateDummySessionObjectL ( CTelSession * aTelSession )

Parameters

CTelSession * aTelSession

CreateNarrowBufferLC(RHeap *, const RMessage2 &, TUint, TUint, TInt &, TInt &, TInt)

HEtelBufC8 * CreateNarrowBufferLC ( RHeap * aHeap,
const RMessage2 & aMessage,
TUint aIndexOfClientPtr1,
TUint aIndexOfClientPtr2,
TInt & aSize1,
TInt & aSize2,
TInt aNoOfSlots
) const [private]

Parameters

RHeap * aHeap
const RMessage2 & aMessage
TUint aIndexOfClientPtr1
TUint aIndexOfClientPtr2
TInt & aSize1
TInt & aSize2
TInt aNoOfSlots

CreateUnicodeBufferLC(RHeap *, const RMessage2 &, TUint, TUint, TInt &, TInt &, TInt)

HEtelBufC16 * CreateUnicodeBufferLC ( RHeap * aHeap,
const RMessage2 & aMessage,
TUint aIndexOfClientPtr1,
TUint aIndexOfClientPtr2,
TInt & aSize1,
TInt & aSize2,
TInt aNoOfSlots
) const [private]

Parameters

RHeap * aHeap
const RMessage2 & aMessage
TUint aIndexOfClientPtr1
TUint aIndexOfClientPtr2
TInt & aSize1
TInt & aSize2
TInt aNoOfSlots

DestroyReq(CReqEntry *)

void DestroyReq ( CReqEntry * aReqEntry ) const [private]

Parameters

CReqEntry * aReqEntry

DownCallOption(const TInt, TAny *)

IMPORT_C TInt DownCallOption ( const TInt aOptionNumber,
TAny * aData
) [virtual]

Parameters

const TInt aOptionNumber
TAny * aData

FlowControlResume()

IMPORT_C void FlowControlResume ( ) [virtual]

FlowControlSuspend()

IMPORT_C void FlowControlSuspend ( ) [virtual]

FlushReqs(CTelSession *, const TInt)

void FlushReqs ( CTelSession * aSession,
const TInt aSubSessionHandle
)

Parameters

CTelSession * aSession
const TInt aSubSessionHandle

GeneralReq(const RMessage2 &, CTelSession *, CReqEntry *, TBool)

void GeneralReq ( const RMessage2 & aMessage,
CTelSession * aSession,
CReqEntry * aNewReqEntry,
TBool aFromFlowControlResume = EFalse
)

Parameters

const RMessage2 & aMessage
CTelSession * aSession
CReqEntry * aNewReqEntry
TBool aFromFlowControlResume = EFalse

GetMessageDescriptorSizes(const RMessage2 &, TInt &, TInt &)

void GetMessageDescriptorSizes ( const RMessage2 & aMessage,
TInt & aSize1,
TInt & aSize2
) const [private]

Parameters

const RMessage2 & aMessage
TInt & aSize1
TInt & aSize2

GetRequiredPlatSecCaps(const TInt)

IMPORT_C TSecurityPolicy GetRequiredPlatSecCaps ( const TInt aIpc ) [virtual]

Default implementation of TSY side of the Etel capability policy checking delegation. If the TSY does not support CustomAPIs or the TSY does not implement it's own version of this virtual function, then this default implementation will get used and shall always return a policy that fails the capability check.

Parameters

const TInt aIpc This parameter is not used in the base implementation of this virtual function.

IsActiveReq(CTelSession *, const TInt)

TBool IsActiveReq ( CTelSession * aSession,
const TInt aSubSessionHandle
) [private]

Parameters

CTelSession * aSession
const TInt aSubSessionHandle

IsPriorityClientReq(TInt)

TBool IsPriorityClientReq ( TInt aReq ) const [protected]

Parameters

TInt aReq

IsSameMessageType(const RMessage2 &, CReqEntry *)

TBool IsSameMessageType ( const RMessage2 & aMessage,
CReqEntry * aReqEntry
) const [private]

Parameters

const RMessage2 & aMessage
CReqEntry * aReqEntry

OpenPostProcessing(CTelSession *, const TInt)

void OpenPostProcessing ( CTelSession * aSession,
const TInt aSubSessionHandle
) [pure virtual]

Parameters

CTelSession * aSession
const TInt aSubSessionHandle

PhoneOwner()

CPhoneBase * PhoneOwner ( ) const

Ptr1(const TDes8 *)

TUint8 * Ptr1 ( const TDes8 * aDes1 ) const

Parameters

const TDes8 * aDes1

RemoveDummySubSessionDestroyer()

void RemoveDummySubSessionDestroyer ( )

ReqAnalyserL(const RMessage2 &, CTelSession *, TReqMode &)

CReqEntry * ReqAnalyserL ( const RMessage2 & aMessage,
CTelSession * aSession,
TReqMode & aReqMode
) [private]

Parameters

const RMessage2 & aMessage
CTelSession * aSession
TReqMode & aReqMode

ReqCompleted(const TTsyReqHandle, const TInt)

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

Parameters

const TTsyReqHandle aTsyReqHandle
const TInt aError

ResolveError(CTelSession *, const TInt)

TInt ResolveError ( CTelSession * aSession,
const TInt aError
) const

Converts a coded error into the correct error to return. The coded error value allows an extended error code to be present allong with a basic error code. If the client has specified awareness of the extended codes, then they are returned. Otherwise the basic error code will be returned. The advanced error codes do not overlap the basic ones.

In the case of no extended error code available, then the core error code will be returned regardless of the client's extended error granularity.

Parameters

CTelSession * aSession The CTelSession of the client.
const TInt aError The coded error.

ServerVersion()

IMPORT_C TInt ServerVersion ( ) const [virtual]

Service(const RMessage2 &, CReqEntry *)

TInt Service ( const RMessage2 & aMessage,
CReqEntry * aReqEntry
) [pure virtual]

Parameters

const RMessage2 & aMessage
CReqEntry * aReqEntry

SetPhoneOwner(CPhoneBase *)

void SetPhoneOwner ( CPhoneBase * aPhoneOwner )

Parameters

CPhoneBase * aPhoneOwner

TelObjectClose()

void TelObjectClose ( )

UpCallOption(const TInt, TAny *)

IMPORT_C TInt UpCallOption ( const TInt aOptionNumber,
TAny * aData
) [virtual]

Parameters

const TInt aOptionNumber
TAny * aData

UpdateAndCompleteIfNecessary(CReqEntry *, TInt)

void UpdateAndCompleteIfNecessary ( CReqEntry * aReqEntry,
TInt aError
) const

Parameters

CReqEntry * aReqEntry
TInt aError

WriteBackAndCompleteBufferedReq(const RMessage2 &, CReqEntry *, TInt)

void WriteBackAndCompleteBufferedReq ( const RMessage2 & aMessage,
CReqEntry * aReqEntry,
TInt aError
) const

Parameters

const RMessage2 & aMessage
CReqEntry * aReqEntry
TInt aError

WriteBackAndCompleteReq(CReqEntry *, const TInt)

void WriteBackAndCompleteReq ( CReqEntry * aReqEntry,
const TInt aError
) const

Parameters

CReqEntry * aReqEntry
const TInt aError

Member Data Documentation

TInt iActiveReqCount

TInt iActiveReqCount [private]

TAny * iCTelObject_Reserved

TAny * iCTelObject_Reserved [private]

TBool iCreateDummy

TBool iCreateDummy [private]

CDestroyDummySubSession * iDestroyDummySubSession

CDestroyDummySubSession * iDestroyDummySubSession [private]

CPhoneBase * iPhoneOwner

CPhoneBase * iPhoneOwner [private]

CTelServer * iTelServer

CTelServer * iTelServer [private]