CMceComSession Class Reference

class CMceComSession : public CBase

Server/Client session

Inherits from

Public Member Functions
~CMceComSession()
voidAddBundleL(CMceComStreamBundle *)
voidAddStreamL(CMceComMediaStream *)
TMceComFactory BaseFactory()
const RPointerArray< CMceComStreamBundle > &Bundles()
CMceComSession *CloneL(TBool)
voidEventReceivedL(TMceComEvent &)
voidExternalizeFlatL(RWriteStream &)
voidExternalizeL(MMceComSerializationContext &)
TMceComFactory Factory()
TUint32 Id()
voidInitializeL()
voidInternalizeFlatL(RReadStream &)
voidInternalizeL(MMceComSerializationContext &)
TBool &IsStructureChanged()
MMceMediaSessionObserver &MediaObserver()
TUint &Modifier(TMceSessionModifier)
CMceComSession *NewL()
CMceComSession *NewL(TType)
CMceComSession *NewL(MMceComSerializationContext &)
CMceComSession *NewLC(TType)
CMceComSession *NewLC(MMceComSerializationContext &)
voidRemoveBundleL(CMceComStreamBundle &)
TUint64 SerializationId()
voidSetObserver(MMceMediaSessionObserver &)
voidSetOriginatorL(const TDesC8 &)
voidSetRecipientL(const TDesC8 &)
RPointerArray< CMceComMediaStream > &Streams()
voidUpdateFlatL(CMceComSession &)
voidUpdateL(CMceComSession &)
TBool UseRtcp()
Private Member Functions
CMceComSession()
CMceComSession(TType)
voidCloneBudlesL(CMceComSession &)
voidCloneStreamsL(CMceComSession &)
voidConstructL()
voidConstructL(CMceComSession &, TBool)
voidUpdateBundlesL(CMceComSession &, const RPointerArray< CMceComMediaStream > &)
voidUpdateStreamsL(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
enumTType { 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(TTypeaType)[private]

C++ constructor.

Parameters

TType aTypethe type of session

~CMceComSession()

~CMceComSession()

Destructor.

Member Functions Documentation

AddBundleL(CMceComStreamBundle *)

voidAddBundleL(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 *)

voidAddStreamL(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 &)

voidCloneBudlesL(CMceComSession &aSession)[private]

Clone bundles

Parameters

CMceComSession & aSessionsession

CloneL(TBool)

CMceComSession *CloneL(TBoolaPullModeUpdate = EFalse)

Clones whole session object

Parameters

TBool aPullModeUpdate = EFalse

CloneStreamsL(CMceComSession &)

voidCloneStreamsL(CMceComSession &aSession)[private]

Clone streams

Parameters

CMceComSession & aSessionsession

ConstructL()

voidConstructL()[private]

second-phase constructor

ConstructL(CMceComSession &, TBool)

voidConstructL(CMceComSession &aSession,
TBoolaPullModeUpdate = EFalse
)[private]

second-phase copy constructor

Parameters

CMceComSession & aSession
TBool aPullModeUpdate = EFalse

EventReceivedL(TMceComEvent &)

voidEventReceivedL(TMceComEvent &aEvent)[virtual]

Traversal event handler

Parameters

TMceComEvent & aEventthe event

ExternalizeFlatL(RWriteStream &)

voidExternalizeFlatL(RWriteStream &aWriteStream)

Externalizes flat data

Parameters

RWriteStream & aWriteStreamwrite stream

ExternalizeL(MMceComSerializationContext &)

voidExternalizeL(MMceComSerializationContext &aSerCtx)

Externalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

Factory()

TMceComFactory Factory()[static]

Factory

Id()

TUint32 Id()const

ID

InitializeL()

voidInitializeL()

Initializes

InternalizeFlatL(RReadStream &)

voidInternalizeFlatL(RReadStream &aReadStream)

Internalizes flat data

Parameters

RReadStream & aReadStreamread stream

InternalizeL(MMceComSerializationContext &)

voidInternalizeL(MMceComSerializationContext &aSerCtx)

Internalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

IsStructureChanged()

TBool &IsStructureChanged()

Is structure changed during update

MediaObserver()

MMceMediaSessionObserver &MediaObserver()

Returns media observer.

Modifier(TMceSessionModifier)

TUint &Modifier(TMceSessionModifieraModifier)

Assigner for session modifier

Parameters

TMceSessionModifier aModifiermodifer key

NewL()

CMceComSession *NewL()[static]

Constructor

NewL(TType)

CMceComSession *NewL(TTypeaType)[static]

Constructor

Parameters

TType aTypethe type of session

NewL(MMceComSerializationContext &)

CMceComSession *NewL(MMceComSerializationContext &aSerCtx)[static]

Constructor

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

NewLC(TType)

CMceComSession *NewLC(TTypeaType)[static]

Constructor

Parameters

TType aTypethe type of session

NewLC(MMceComSerializationContext &)

CMceComSession *NewLC(MMceComSerializationContext &aSerCtx)[static]

Constructor

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

RemoveBundleL(CMceComStreamBundle &)

voidRemoveBundleL(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 & aBundlebundle to be removed

SerializationId()

TUint64 SerializationId()const

Returns serialization id

SetObserver(MMceMediaSessionObserver &)

voidSetObserver(MMceMediaSessionObserver &aMediaObserver)

Adds media manager observer

Parameters

MMceMediaSessionObserver & aMediaObserver

SetOriginatorL(const TDesC8 &)

voidSetOriginatorL(const TDesC8 &aOriginator)

Sets the originator

Parameters

const TDesC8 & aOriginator

SetRecipientL(const TDesC8 &)

voidSetRecipientL(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 > &)

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

Update bundles

Parameters

CMceComSession & aSessionsession
const RPointerArray< CMceComMediaStream > & aStreamsstreams

UpdateFlatL(CMceComSession &)

voidUpdateFlatL(CMceComSession &aSession)

Parameters

CMceComSession & aSession

UpdateL(CMceComSession &)

voidUpdateL(CMceComSession &aSession)

Updates whole session object with new one

Parameters

CMceComSession & aSessionnew session

UpdateStreamsL(CMceComSession &)

voidUpdateStreamsL(CMceComSession &aSession)[private]

Update streams

Parameters

CMceComSession & aSessionsession

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