CSIPParameterHeaderBase Class Reference

class CSIPParameterHeaderBase : public CSIPHeaderBase

A base class for SIP headers that have structure "mandatory part"delimiter"parameters"

This is an abstract class and cannot be instantiated.

sipcodec.lib

Inherits from

Public Member Functions
~CSIPParameterHeaderBase()
IMPORT_C voidDeleteParam(RStringF)
IMPORT_C TBoolHasParam(RStringF)
IMPORT_C TIntParam(TInt, RStringF &)
IMPORT_C TIntParamCount()
IMPORT_C RStringFParamValue(RStringF)
IMPORT_C voidSetParamL(RStringF, RStringF)
IMPORT_C voidSetParamL(RStringF)
IMPORT_C HBufC8 *ToTextValueL()
Protected Member Functions
CSIPParameterHeaderBase(const TChar &)
TBool ParamInsertionAllowed()
const CSIPParamContainerBase &Params()
CSIPParamContainerBase &Params()
voidParseL(const TDesC8 &, TBool, TBool)
voidParseMandatoryPartL(const TDesC8 &)
HBufC8 *ToTextMandatoryPartLC()
Private Member Functions
CSIPParameterHeaderBase()
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::CloneL()const
CSIPHeaderBase::CompactName()const
CSIPHeaderBase::EncodeMultipleToOneLine()const
CSIPHeaderBase::ExternalizeL(RWriteStream &,TBool)const
CSIPHeaderBase::ExternalizeNameL(RWriteStream &)const
CSIPHeaderBase::ExternalizeSupported()const
CSIPHeaderBase::ExternalizeValueL(RWriteStream &)const
CSIPHeaderBase::HasCompactName()const
CSIPHeaderBase::IsExtensionHeader()const
CSIPHeaderBase::MoreThanOneAllowed()const
CSIPHeaderBase::Name()const
CSIPHeaderBase::PreferredPlaceInMessage()const
CSIPHeaderBase::PushLC(RPointerArray< CSIPHeaderBase > *)
CSIPHeaderBase::ResetAndDestroy(TAny *)
CSIPHeaderBase::ToTextL()const
CSIPHeaderBase::ToTextLC()const
CSIPHeaderBase::ToTextValueLC()const
CSIPHeaderBase::~CSIPHeaderBase()
Inherited Enumerations
CSIPHeaderBase:TPreferredPlace
Private Attributes
TChar iSeparator
Inherited Attributes
CSIPHeaderBase::iLink

Constructor & Destructor Documentation

CSIPParameterHeaderBase(const TChar &)

CSIPParameterHeaderBase(const TChar &aSeparator)[protected]

Parameters

const TChar & aSeparator

CSIPParameterHeaderBase()

CSIPParameterHeaderBase()[private]

~CSIPParameterHeaderBase()

IMPORT_C~CSIPParameterHeaderBase()[virtual]

Destructor, deletes the resources of CSIPParameterHeaderBase.

Member Functions Documentation

DeleteParam(RStringF)

IMPORT_C voidDeleteParam(RStringFaName)

Deletes a parameter

Parameters

RStringF aNamethe parameter name to delete

HasParam(RStringF)

IMPORT_C TBoolHasParam(RStringFaName)const

Checks if a parameter is present

Parameters

RStringF aNamethe name of the parameter

Param(TInt, RStringF &)

IMPORT_C TIntParam(TIntaIndex,
RStringF &aName
)const

Gets a header parameter name by index. This function can be used when looping through all the header parameters.

Parameters

TInt aIndexthe index of the parameter
RStringF & aNamecopy of the parameter name that must be closed by the caller.

ParamCount()

IMPORT_C TIntParamCount()const

Gets the count of header parameters

ParamInsertionAllowed()

TBool ParamInsertionAllowed()const [protected, virtual]

ParamValue(RStringF)

IMPORT_C RStringFParamValue(RStringFaName)const
Gets a parameter value
Pre-condition
HasParam(aName) == ETrue

Parameters

RStringF aNamethe name of the parameter

Params()

const CSIPParamContainerBase &Params()const [protected, pure virtual]

Params()

CSIPParamContainerBase &Params()[protected, pure virtual]

ParseL(const TDesC8 &, TBool, TBool)

voidParseL(const TDesC8 &aValue,
TBoolaIgnoreParenthesis = ETrue,
TBoolaSkipSeparatorsBeforeAt = EFalse
)[protected]

Parameters

const TDesC8 & aValue
TBool aIgnoreParenthesis = ETrue
TBool aSkipSeparatorsBeforeAt = EFalse

ParseMandatoryPartL(const TDesC8 &)

voidParseMandatoryPartL(const TDesC8 &aMandatoryPart)[protected, pure virtual]

Parameters

const TDesC8 & aMandatoryPart

SetParamL(RStringF, RStringF)

IMPORT_C voidSetParamL(RStringFaName,
RStringFaValue
)
Sets a parameter with a value. Takes copies of the name and value, so if the RStringFs have been dynamically allocated, they can be closed if necessary after the function returns.
Pre-condition
HasParam(aName) == EFalse

Parameters

RStringF aNamethe name of the parameter
RStringF aValuethe parameter value to set

SetParamL(RStringF)

IMPORT_C voidSetParamL(RStringFaName)
Sets a parameter without a value Takes copy of the name, so if the RStringF has been dynamically allocated, it can be closed if necessary after the function returns.
Pre-condition
HasParam(aName) == EFalse

Parameters

RStringF aNamethe parameter name to set

ToTextMandatoryPartLC()

HBufC8 *ToTextMandatoryPartLC()const [protected, pure virtual]

ToTextValueL()

IMPORT_C HBufC8 *ToTextValueL()const [virtual]

From CSIPHeaderBase ToTextValueL

Member Data Documentation

TChar iSeparator

TChar iSeparator[private]