CSIPRegistrar Class Reference

class CSIPRegistrar : public CBase

Class stores registrar information (the host part of To header from REGISTER request), related callId and CSeq.

Inherits from

Constructor & Destructor Documentation

CSIPRegistrar(TUint, CSIPRegistrarStore &)

CSIPRegistrar ( TUint aCSeqNumber,
CSIPRegistrarStore & aRegistrarStore
) [private]

Parameters

TUint aCSeqNumber
CSIPRegistrarStore & aRegistrarStore

~CSIPRegistrar()

~CSIPRegistrar ( )

Destructor.

Member Functions Documentation

AddRegistrationIdL(const TRegistrationId)

void AddRegistrationIdL ( const TRegistrationId aRegistrationId )

add TRegistrationId of created binding to the registrationIds array.

@ param aRegistrationId; a TRegistrationId.

Parameters

const TRegistrationId aRegistrationId

BindingRemoved(const TRegistrationId)

TBool BindingRemoved ( const TRegistrationId aRegistrationId )

remove RegistrationId of related binding from registrationIds array

@ param aRegistrationId; a TRegistrationId. @ return ETrue if the registrar is added to delete manager, EFalse otherwise.

Parameters

const TRegistrationId aRegistrationId

CSeqNumber()

TUint CSeqNumber ( ) const

get CSeq number

@ return CSeq number

ConstructL(const CURIContainer &, const TDesC8 &, const TRegistrationId)

void ConstructL ( const CURIContainer & aRegistrar,
const TDesC8 & aCallId,
const TRegistrationId aRegistrationId
) [private]

Parameters

const CURIContainer & aRegistrar
const TDesC8 & aCallId
const TRegistrationId aRegistrationId

FillCallIdAndCSeqL(CSIPRequest &)

void FillCallIdAndCSeqL ( CSIPRequest & aSIPRequest )

fill in the callId and CSeq to the request passed as parameter.

@ param aSIPRequest; a sip request.

Parameters

CSIPRequest & aSIPRequest

FindRegistrationId(const TRegistrationId)

TInt FindRegistrationId ( const TRegistrationId aRegistrationId )

check if registrationId exists. if it exists, return the index otherwise return KErrNotFound.

Parameters

const TRegistrationId aRegistrationId

IncreaseCSeqNumber()

void IncreaseCSeqNumber ( )

increase the CSeq number

NewLC(const CURIContainer &, const TDesC8 &, TUint, const TRegistrationId, CSIPRegistrarStore &)

CSIPRegistrar * NewLC ( const CURIContainer & aRegistrar,
const TDesC8 & aCallId,
TUint aCSeqNumber,
const TRegistrationId aRegistrationId,
CSIPRegistrarStore & aRegistrarStore
) [static]

Create a CSIPRegistrar object and adds it to the clean up stack.

@ param aRegistrar; a registrar name. @ param aCallId; a CallId. @ param aCSeqNumber; aCSeq number. @ param aRegistrationnId; Registration Id. @ param aRegistrarStore; store of registrar.

@ return a CSipRegistrar instance.

Parameters

const CURIContainer & aRegistrar
const TDesC8 & aCallId
TUint aCSeqNumber
const TRegistrationId aRegistrationId
CSIPRegistrarStore & aRegistrarStore

Registrar()

const CURIContainer & Registrar ( ) const

Get registrar

@ return registrar infor.

Member Data Documentation

TUint iCSeqNumber

TUint iCSeqNumber [private]

HBufC8 * iCallId

HBufC8 * iCallId [private]

CURIContainer * iRegistrar

CURIContainer * iRegistrar [private]

CSIPRegistrarStore & iRegistrarStore

CSIPRegistrarStore & iRegistrarStore [private]

RArray< TRegistrationId > iRegistrationIds

RArray < TRegistrationId > iRegistrationIds [private]