CSIPResponseElements Class Reference

class CSIPResponseElements : public CBase

Class provides services for creating and manipulating SIP responses This class is used for creating and manipulating SIP responses including status code, reason phrase and optional elements such user headers, content and its type.

sipclient.lib

Inherits from

Constructor & Destructor Documentation

CSIPResponseElements()

CSIPResponseElements ( ) [private]

~CSIPResponseElements()

IMPORT_C ~CSIPResponseElements ( )

Destructor.

Member Functions Documentation

CSeqHeader()

IMPORT_C const CSIPCSeqHeader * CSeqHeader ( ) const

Gets CSeq-header

ConstructL(TUint, RStringF)

void ConstructL ( TUint aStatusCode,
RStringF aReasonPhrase
) [private]

Parameters

TUint aStatusCode
RStringF aReasonPhrase

DoInternalizeL(RReadStream &)

void DoInternalizeL ( RReadStream & aReadStream ) [private]

Parameters

RReadStream & aReadStream

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aWriteStream ) const

Parameters

RWriteStream & aWriteStream

FromHeader()

IMPORT_C const CSIPFromHeader * FromHeader ( ) const

Gets the originator's From-header

InternalizeL(RReadStream &)

CSIPResponseElements * InternalizeL ( RReadStream & aReadStream ) [static]

Parameters

RReadStream & aReadStream

InternalizeLC(RReadStream &)

CSIPResponseElements * InternalizeLC ( RReadStream & aReadStream ) [static]

Parameters

RReadStream & aReadStream

MessageElements()

IMPORT_C const CSIPMessageElements & MessageElements ( ) const

Gets message elements (contains all SIP user headers and content)

MessageElements()

IMPORT_C CSIPMessageElements & MessageElements ( )

Gets message elements (contains all SIP user headers and content) The response elements can be populated with SIP user headers and content using returned reference to the message elements.

NewL(TUint, RStringF)

IMPORT_C CSIPResponseElements * NewL ( TUint aStatusCode,
RStringF aReasonPhrase
) [static]
Two-phased constructor.
Pre-condition
aStatusCode > 100 && aStatusCode < 700

Parameters

TUint aStatusCode a known SIP response status code. Cannot be 100.
RStringF aReasonPhrase a SIP response reason phrase.

NewLC(TUint, RStringF)

IMPORT_C CSIPResponseElements * NewLC ( TUint aStatusCode,
RStringF aReasonPhrase
) [static]
Two-phased constructor.
Pre-condition
aStatusCode > 100 && aStatusCode < 700

Parameters

TUint aStatusCode a known SIP response status code. Cannot be 100.
RStringF aReasonPhrase a SIP response reason phrase.

ReasonPhrase()

IMPORT_C RStringF ReasonPhrase ( ) const

Gets a SIP Response Reason Phrase.

SetReasonPhraseL(RStringF)

IMPORT_C void SetReasonPhraseL ( RStringF aReasonPhrase )

Sets a SIP Response Reason Phrase.

Parameters

RStringF aReasonPhrase a SIP response reason phrase.

SetStatusCodeL(TUint)

IMPORT_C void SetStatusCodeL ( TUint aStatusCode )
Sets a SIP Response extension status code. It is not possible to set value 100.
Pre-condition
aStatusCode > 100 && aStatusCode < 700
leave
KErrArgument if aStatusCode < 100 or aStatusCode >= 700

Parameters

TUint aStatusCode extension status code

StatusCode()

IMPORT_C TUint StatusCode ( ) const

Gets the SIP Response status code

ToHeader()

IMPORT_C const CSIPToHeader * ToHeader ( ) const

Gets the recipient's To-header

Member Data Documentation

CSIPMessageElements * iMessageElements

CSIPMessageElements * iMessageElements [private]

RStringF iReasonPhrase

RStringF iReasonPhrase [private]

TUint iStatusCode

TUint iStatusCode [private]