CSIPContactHeader Class Reference

class CSIPContactHeader : public CSIPParameterHeaderBase

Class provides functions for setting and getting SIP "Contact" header fields.

sipcodec.lib

Inherits from

Public Member Functions
~CSIPContactHeader()
RPointerArray< CSIPHeaderBase >BaseDecodeL(const TDesC8 &)
IMPORT_C CSIPHeaderBase *CloneL()
RStringF CompactName()
IMPORT_C RPointerArray< CSIPContactHeader >DecodeL(const TDesC8 &)
IMPORT_C TIntExpiresParameter()
TBool HasCompactName()
IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &)
TBool MoreThanOneAllowed()
IMPORT_C RStringFName()
IMPORT_C CSIPContactHeader *NewL(CSIPAddress *)
IMPORT_C CSIPContactHeader *NewLC(CSIPAddress *)
TPreferredPlace PreferredPlaceInMessage()
IMPORT_C TRealQParameter()
IMPORT_C voidRemoveExpiresParam()
IMPORT_C const CSIPAddress *SIPAddress()
IMPORT_C CSIPAddress *SIPAddress()
IMPORT_C voidSetExpiresParameterL(TInt)
IMPORT_C voidSetQParameterL(TReal)
IMPORT_C voidSetSIPAddressL(CSIPAddress *)
IMPORT_C TBoolStar()
IMPORT_C TBooloperator==(const CSIPContactHeader &)
Private Member Functions
CSIPContactHeader(TBool)
voidConstructL()
voidConstructL(CSIPAddress *)
voidConstructL(const CSIPContactHeader &)
voidDoInternalizeValueL(RReadStream &)
voidExternalizeValueL(RWriteStream &)
TBool ParamInsertionAllowed()
const CSIPParamContainerBase &Params()
CSIPParamContainerBase &Params()
voidParseMandatoryPartL(const TDesC8 &)
HBufC8 *ToTextMandatoryPartLC()
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()
CSIPHeaderBase::CSIPHeaderBase()
CSIPHeaderBase::EncodeMultipleToOneLine()const
CSIPHeaderBase::ExternalizeL(RWriteStream &,TBool)const
CSIPHeaderBase::ExternalizeNameL(RWriteStream &)const
CSIPHeaderBase::ExternalizeSupported()const
CSIPHeaderBase::IsExtensionHeader()const
CSIPHeaderBase::PushLC(RPointerArray< CSIPHeaderBase > *)
CSIPHeaderBase::ResetAndDestroy(TAny *)
CSIPHeaderBase::ToTextL()const
CSIPHeaderBase::ToTextLC()const
CSIPHeaderBase::ToTextValueLC()const
CSIPHeaderBase::~CSIPHeaderBase()
CSIPParameterHeaderBase::CSIPParameterHeaderBase(const TChar &)
CSIPParameterHeaderBase::DeleteParam(RStringF)
CSIPParameterHeaderBase::HasParam(RStringF)const
CSIPParameterHeaderBase::Param(TInt,RStringF &)const
CSIPParameterHeaderBase::ParamCount()const
CSIPParameterHeaderBase::ParamValue(RStringF)const
CSIPParameterHeaderBase::ParseL(const TDesC8 &,TBool,TBool)
CSIPParameterHeaderBase::SetParamL(RStringF)
CSIPParameterHeaderBase::SetParamL(RStringF,RStringF)
CSIPParameterHeaderBase::ToTextValueL()const
CSIPParameterHeaderBase::~CSIPParameterHeaderBase()
Inherited Enumerations
CSIPHeaderBase:TPreferredPlace
Private Attributes
TBool iIsStar
CSIPContactHeaderParams *iParams
CSIPAddress *iSIPAddress
Inherited Attributes
CSIPHeaderBase::iLink

Constructor & Destructor Documentation

CSIPContactHeader(TBool)

CSIPContactHeader(TBoolaIsStar = EFalse)[private]

Parameters

TBool aIsStar = EFalse

~CSIPContactHeader()

IMPORT_C~CSIPContactHeader()

Destructor, deletes the resources of CSIPContactHeader.

Member Functions Documentation

BaseDecodeL(const TDesC8 &)

RPointerArray< CSIPHeaderBase >BaseDecodeL(const TDesC8 &aValue)[static]

Parameters

const TDesC8 & aValue

CloneL()

IMPORT_C CSIPHeaderBase *CloneL()const [virtual]

From CSIPHeaderBase CloneL

CompactName()

RStringF CompactName()const [virtual]

ConstructL()

voidConstructL()[private]

ConstructL(CSIPAddress *)

voidConstructL(CSIPAddress *aSIPAddress)[private]

Parameters

CSIPAddress * aSIPAddress

ConstructL(const CSIPContactHeader &)

voidConstructL(const CSIPContactHeader &aContactHeader)[private]

Parameters

const CSIPContactHeader & aContactHeader

DecodeL(const TDesC8 &)

IMPORT_C RPointerArray< CSIPContactHeader >DecodeL(const TDesC8 &aValue)[static]

Constructs a CSIPContactHeader from textual representation of the header's value part. Note that "Contact: *" can be only created using this function.

Parameters

const TDesC8 & aValuea value part of a "Contact"-header

DoInternalizeValueL(RReadStream &)

voidDoInternalizeValueL(RReadStream &aReadStream)[private]

Parameters

RReadStream & aReadStream

ExpiresParameter()

IMPORT_C TIntExpiresParameter()const

Gets the value of the "expires"-parameter

ExternalizeValueL(RWriteStream &)

voidExternalizeValueL(RWriteStream &aWriteStream)const [private, virtual]

Parameters

RWriteStream & aWriteStream

HasCompactName()

TBool HasCompactName()const [virtual]

InternalizeValueL(RReadStream &)

IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &aReadStream)[static]

Constructs an instance of a CSIPContactHeader from a RReadStream

Parameters

RReadStream & aReadStreama stream containing the value of the externalized object (header name not included).

MoreThanOneAllowed()

TBool MoreThanOneAllowed()const [virtual]

Name()

IMPORT_C RStringFName()const [virtual]

From CSIPHeaderBase Name

NewL(CSIPAddress *)

IMPORT_C CSIPContactHeader *NewL(CSIPAddress *aSIPAddress)[static]
Creates a new instance of CSIPContactHeader
Pre-condition
aSIPAddress != 0

Parameters

CSIPAddress * aSIPAddressa name-address, the ownership is transferred

NewLC(CSIPAddress *)

IMPORT_C CSIPContactHeader *NewLC(CSIPAddress *aSIPAddress)[static]
Creates a new instance of CSIPContactHeader and puts it to CleanupStack
Pre-condition
aSIPAddress != 0

Parameters

CSIPAddress * aSIPAddressa name-address, the ownership is transferred

ParamInsertionAllowed()

TBool ParamInsertionAllowed()const [private, virtual]

Params()

const CSIPParamContainerBase &Params()const [private, virtual]

Params()

CSIPParamContainerBase &Params()[private, virtual]

ParseMandatoryPartL(const TDesC8 &)

voidParseMandatoryPartL(const TDesC8 &aMandatoryPart)[private, virtual]

Parameters

const TDesC8 & aMandatoryPart

PreferredPlaceInMessage()

TPreferredPlace PreferredPlaceInMessage()const [virtual]

QParameter()

IMPORT_C TRealQParameter()const
Gets the value of "q"-parameter
Pre-condition
Star() == EFalse

RemoveExpiresParam()

IMPORT_C voidRemoveExpiresParam()

Removes the "expires"-parameter

SIPAddress()

IMPORT_C const CSIPAddress *SIPAddress()const

Gets the name-address as const

SIPAddress()

IMPORT_C CSIPAddress *SIPAddress()

Gets the name-address

SetExpiresParameterL(TInt)

IMPORT_C voidSetExpiresParameterL(TIntaExpiresParam)
Sets the "expires"-parameter
Pre-condition
aExpiresParam >= 0

Parameters

TInt aExpiresParama "expires"-parameter value to set

SetQParameterL(TReal)

IMPORT_C voidSetQParameterL(TRealaQValue)
Sets the "q"-parameter value in the "Contact" header
Pre-condition
Star() == EFalse

Parameters

TReal aQValuea "q"-parameter value to set

SetSIPAddressL(CSIPAddress *)

IMPORT_C voidSetSIPAddressL(CSIPAddress *aSIPAddress)
Sets the name-address
Pre-condition
Star() == EFalse
aSIPAddress != 0

Parameters

CSIPAddress * aSIPAddressa name-address to set, the ownership is transferred

Star()

IMPORT_C TBoolStar()const

Checks if the address is set to a STAR ("*")

ToTextMandatoryPartLC()

HBufC8 *ToTextMandatoryPartLC()const [private, virtual]

operator==(const CSIPContactHeader &)

IMPORT_C TBooloperator==(const CSIPContactHeader &aHeader)const

Compares this object to another instance of CSIPContactHeader

Parameters

const CSIPContactHeader & aHeadera CSIPContactHeader header to compare to

Member Data Documentation

TBool iIsStar

TBool iIsStar[private]

CSIPContactHeaderParams * iParams

CSIPContactHeaderParams *iParams[private]

CSIPAddress * iSIPAddress

CSIPAddress *iSIPAddress[private]