CMceComSession Class Reference

class CMceComSession : public CBase

Server/Client session

Inherits from

Public Member Functions
~CMceComSession ()
void AddBundleL ( CMceComStreamBundle *)
void AddStreamL ( CMceComMediaStream *)
TMceComFactory BaseFactory ()
const RPointerArray < CMceComStreamBundle > & Bundles ()
CMceComSession * CloneL ( TBool )
void EventReceivedL ( TMceComEvent &)
void ExternalizeFlatL ( RWriteStream &)
void ExternalizeL ( MMceComSerializationContext &)
TMceComFactory Factory ()
TUint32 Id ()
void InitializeL ()
void InternalizeFlatL ( RReadStream &)
void InternalizeL ( MMceComSerializationContext &)
TBool & IsStructureChanged ()
MMceMediaSessionObserver & MediaObserver ()
TUint & Modifier ( TMceSessionModifier )
CMceComSession * NewL ()
CMceComSession * NewL ( TType )
CMceComSession * NewL ( MMceComSerializationContext &)
CMceComSession * NewLC ( TType )
CMceComSession * NewLC ( MMceComSerializationContext &)
void RemoveBundleL ( CMceComStreamBundle &)
TUint64 SerializationId ()
void SetObserver ( MMceMediaSessionObserver &)
void SetOriginatorL (const TDesC8 &)
void SetRecipientL (const TDesC8 &)
RPointerArray < CMceComMediaStream > & Streams ()
void UpdateFlatL ( CMceComSession &)
void UpdateL ( CMceComSession &)
TBool UseRtcp ()
Private Member Functions
CMceComSession ()
CMceComSession ( TType )
void CloneBudlesL ( CMceComSession &)
void CloneStreamsL ( CMceComSession &)
void ConstructL ()
void ConstructL ( CMceComSession &, TBool )
void UpdateBundlesL ( CMceComSession &, const RPointerArray < CMceComMediaStream > &)
void UpdateStreamsL ( CMceComSession &)
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()
Public Member Enumerations
enum TType { EInSession , EOutSession }
Public Attributes
TUint iAnswerType
RArray < TMceCryptoContext > iClientCryptoSuites
CMceComSession * iCloneOrigin
TUint iCodecSelection
TUint32 iDialogId
TBool iFcSignallingRequired
TUint32 iID
TUint32 iIapId
TBool iIsConnectionActive
TBool iIsSecureSession
TInetAddr iLocalIpAddress
CDesC8Array * iLocalSessionSDPLines
TUint32 iMccID
MMceMediaSessionObserver * iMediaObserver
TUint32 iMinSE
HBufC8 * iOriginator
TBool iPullModeUpdate
HBufC8 * iRecipient
TBool iRefresh
TInetAddr iRemoteIpAddress
TBool iRemoteSecPreconditionsRequired
CDesC8Array * iRemoteSessionSDPLines
TBool iRequireSignalling
HBufC8 * iSIPContent
CDesC8Array * iSIPContentHeaders
HBufC8 * iSIPContentType
CDesC8Array * iSIPHeaders
TUint32 iServiceType
TMceComSessionModifiers iSessionModifiers
CMceSession::TControlPathSecurityLevel iSipContactAddrSecure
CMceSession::TState iState
TBool iStructureChanged
TUint32 iTimeout
TType iType
TBool iUseLocalPreconditions
TBool iUseRemotePreconditions
Private Attributes
RPointerArray < CMceComStreamBundle > iBundles
RPointerArray < CMceComMediaStream > iMediaStreams

Constructor & Destructor Documentation

CMceComSession()

CMceComSession ( ) [private]

C++ default constructor.

CMceComSession(TType)

CMceComSession ( TType aType ) [private]

C++ constructor.

Parameters

TType aType the type of session

~CMceComSession()

~CMceComSession ( )

Destructor.

Member Functions Documentation

AddBundleL(CMceComStreamBundle *)

void AddBundleL ( CMceComStreamBundle * aBundle )

Adds grouped media streams to the session. Changes SDP of the session. In order to get complete update, whole session must be updated causing sending of re-invite.

Parameters

CMceComStreamBundle * aBundle

AddStreamL(CMceComMediaStream *)

void AddStreamL ( CMceComMediaStream * aMediaStream )

Adds media stream into session.

Parameters

CMceComMediaStream * aMediaStream

BaseFactory()

TMceComFactory BaseFactory ( )

Factory

Bundles()

const RPointerArray < CMceComStreamBundle > & Bundles ( ) const

Gets the grouped media streams of the session.

CloneBudlesL(CMceComSession &)

void CloneBudlesL ( CMceComSession & aSession ) [private]

Clone bundles

Parameters

CMceComSession & aSession session

CloneL(TBool)

CMceComSession * CloneL ( TBool aPullModeUpdate = EFalse )

Clones whole session object

Parameters

TBool aPullModeUpdate = EFalse

CloneStreamsL(CMceComSession &)

void CloneStreamsL ( CMceComSession & aSession ) [private]

Clone streams

Parameters

CMceComSession & aSession session

ConstructL()

void ConstructL ( ) [private]

second-phase constructor

ConstructL(CMceComSession &, TBool)

void ConstructL ( CMceComSession & aSession,
TBool aPullModeUpdate = EFalse
) [private]

second-phase copy constructor

Parameters

CMceComSession & aSession
TBool aPullModeUpdate = EFalse

EventReceivedL(TMceComEvent &)

void EventReceivedL ( TMceComEvent & aEvent ) [virtual]

Traversal event handler

Parameters

TMceComEvent & aEvent the event

ExternalizeFlatL(RWriteStream &)

void ExternalizeFlatL ( RWriteStream & aWriteStream )

Externalizes flat data

Parameters

RWriteStream & aWriteStream write stream

ExternalizeL(MMceComSerializationContext &)

void ExternalizeL ( MMceComSerializationContext & aSerCtx )

Externalizes

Parameters

MMceComSerializationContext & aSerCtx context for serialization

Factory()

TMceComFactory Factory ( ) [static]

Factory

Id()

TUint32 Id ( ) const

ID

InitializeL()

void InitializeL ( )

Initializes

InternalizeFlatL(RReadStream &)

void InternalizeFlatL ( RReadStream & aReadStream )

Internalizes flat data

Parameters

RReadStream & aReadStream read stream

InternalizeL(MMceComSerializationContext &)

void InternalizeL ( MMceComSerializationContext & aSerCtx )

Internalizes

Parameters

MMceComSerializationContext & aSerCtx context for serialization

IsStructureChanged()

TBool & IsStructureChanged ( )

Is structure changed during update

MediaObserver()

MMceMediaSessionObserver & MediaObserver ( )

Returns media observer.

Modifier(TMceSessionModifier)

TUint & Modifier ( TMceSessionModifier aModifier )

Assigner for session modifier

Parameters

TMceSessionModifier aModifier modifer key

NewL()

CMceComSession * NewL ( ) [static]

Constructor

NewL(TType)

CMceComSession * NewL ( TType aType ) [static]

Constructor

Parameters

TType aType the type of session

NewL(MMceComSerializationContext &)

CMceComSession * NewL ( MMceComSerializationContext & aSerCtx ) [static]

Constructor

Parameters

MMceComSerializationContext & aSerCtx context for serialization

NewLC(TType)

CMceComSession * NewLC ( TType aType ) [static]

Constructor

Parameters

TType aType the type of session

NewLC(MMceComSerializationContext &)

CMceComSession * NewLC ( MMceComSerializationContext & aSerCtx ) [static]

Constructor

Parameters

MMceComSerializationContext & aSerCtx context for serialization

RemoveBundleL(CMceComStreamBundle &)

void RemoveBundleL ( CMceComStreamBundle & aBundle )

Removes grouped media stream from session. Changes SDP of the session. In order to get complete update, whole session must be updated causing sending of re-invite.

Parameters

CMceComStreamBundle & aBundle bundle to be removed

SerializationId()

TUint64 SerializationId ( ) const

Returns serialization id

SetObserver(MMceMediaSessionObserver &)

void SetObserver ( MMceMediaSessionObserver & aMediaObserver )

Adds media manager observer

Parameters

MMceMediaSessionObserver & aMediaObserver

SetOriginatorL(const TDesC8 &)

void SetOriginatorL ( const TDesC8 & aOriginator )

Sets the originator

Parameters

const TDesC8 & aOriginator

SetRecipientL(const TDesC8 &)

void SetRecipientL ( const TDesC8 & aRecipient )

Sets the recipient

Parameters

const TDesC8 & aRecipient

Streams()

RPointerArray < CMceComMediaStream > & Streams ( )

Returns the streams belonging to the session.

UpdateBundlesL(CMceComSession &, const RPointerArray< CMceComMediaStream > &)

void UpdateBundlesL ( CMceComSession & aSession,
const RPointerArray < CMceComMediaStream > & aStreams
) [private]

Update bundles

Parameters

CMceComSession & aSession session
const RPointerArray < CMceComMediaStream > & aStreams streams

UpdateFlatL(CMceComSession &)

void UpdateFlatL ( CMceComSession & aSession )

Parameters

CMceComSession & aSession

UpdateL(CMceComSession &)

void UpdateL ( CMceComSession & aSession )

Updates whole session object with new one

Parameters

CMceComSession & aSession new session

UpdateStreamsL(CMceComSession &)

void UpdateStreamsL ( CMceComSession & aSession ) [private]

Update streams

Parameters

CMceComSession & aSession session

UseRtcp()

TBool UseRtcp ( ) const

Checks whether RTCP should be used. return ETrue, if all the streams indicate RTCP usage, otherwise EFalse.

Member Enumerations Documentation

Enum TType

Enumerators

EInSession
EOutSession

Member Data Documentation

TUint iAnswerType

TUint iAnswerType

RPointerArray< CMceComStreamBundle > iBundles

RPointerArray < CMceComStreamBundle > iBundles [private]

bundles

RArray< TMceCryptoContext > iClientCryptoSuites

RArray < TMceCryptoContext > iClientCryptoSuites

Crypto Suite Set by client

CMceComSession * iCloneOrigin

CMceComSession * iCloneOrigin

cloned from

TUint iCodecSelection

TUint iCodecSelection

TUint32 iDialogId

TUint32 iDialogId

Dialog id

TBool iFcSignallingRequired

TBool iFcSignallingRequired

TUint32 iID

TUint32 iID

type of session

TUint32 iIapId

TUint32 iIapId

Internet access point used

TBool iIsConnectionActive

TBool iIsConnectionActive

is connection active

TBool iIsSecureSession

TBool iIsSecureSession

Flag to indicate if the secure session is needed To create secure link in MCC, this has to be set as True.

TInetAddr iLocalIpAddress

TInetAddr iLocalIpAddress

Local host IP-address (IPv4 or IPv6)

CDesC8Array * iLocalSessionSDPLines

CDesC8Array * iLocalSessionSDPLines

local sdp session lines

TUint32 iMccID

TUint32 iMccID

Mcc session Id

MMceMediaSessionObserver * iMediaObserver

MMceMediaSessionObserver * iMediaObserver

Media manager observer

RPointerArray< CMceComMediaStream > iMediaStreams

RPointerArray < CMceComMediaStream > iMediaStreams [private]

media streams

TUint32 iMinSE

TUint32 iMinSE

Minimun SE received in 422, in milliseconds

HBufC8 * iOriginator

HBufC8 * iOriginator

originator

TBool iPullModeUpdate

TBool iPullModeUpdate

HBufC8 * iRecipient

HBufC8 * iRecipient

recipient

TBool iRefresh

TBool iRefresh

Is this UA performing the refresh requests

TInetAddr iRemoteIpAddress

TInetAddr iRemoteIpAddress

Remote host IP-address (IPv4 or IPv6)

TBool iRemoteSecPreconditionsRequired

TBool iRemoteSecPreconditionsRequired

CDesC8Array * iRemoteSessionSDPLines

CDesC8Array * iRemoteSessionSDPLines

remote sdp session lines

TBool iRequireSignalling

TBool iRequireSignalling

HBufC8 * iSIPContent

HBufC8 * iSIPContent

content NOT serialized

CDesC8Array * iSIPContentHeaders

CDesC8Array * iSIPContentHeaders

content headers

HBufC8 * iSIPContentType

HBufC8 * iSIPContentType

content type

CDesC8Array * iSIPHeaders

CDesC8Array * iSIPHeaders

sip headers

TUint32 iServiceType

TUint32 iServiceType

TMceComSessionModifiers iSessionModifiers

TMceComSessionModifiers iSessionModifiers

Session modifiers

CMceSession::TControlPathSecurityLevel iSipContactAddrSecure

CMceSession::TControlPathSecurityLevel iSipContactAddrSecure

secure level by the contact header in offer/Answer which is with SIPSUri or transport parameter is tls.

CMceSession::TState iState

CMceSession::TState iState

state of session

TBool iStructureChanged

TBool iStructureChanged

has structure changed during update

TUint32 iTimeout

TUint32 iTimeout

Session timer interval, in milliseconds

TType iType

TType iType

type of session

TBool iUseLocalPreconditions

TBool iUseLocalPreconditions

Should use local preconditions

TBool iUseRemotePreconditions

TBool iUseRemotePreconditions

Should use remote preconditions