CSIPResponseElements Class Reference
#include
<mw/sipresponseelements.h>
Link against: sipclient.lib
class CSIPResponseElements : public CBase |
Detailed Description
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.
Constructor & Destructor Documentation
~CSIPResponseElements ( )
IMPORT_C | ~CSIPResponseElements | ( | ) | |
Member Function Documentation
CSeqHeader ( )
Returns: a CSeq-header or a 0-pointer if not present. Ownership is not transferred.
ExternalizeL ( RWriteStream & )
FromHeader ( )
Gets the originator's From-header
Returns: a From-header or a 0-pointer if not present. Ownership is not transferred.
InternalizeL ( RReadStream & )
InternalizeLC ( RReadStream & )
MessageElements ( )
Gets message elements (contains all SIP user headers and content)
Returns: message elements
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.
Returns: message elements
NewL ( TUint, RStringF )
Two-phased constructor.
- Pre-condition
- aStatusCode > 100 && aStatusCode < 700
Parameter | Description | aStatusCode | a known SIP response status code. Cannot be 100. |
aReasonPhrase | a SIP response reason phrase. |
NewLC ( TUint, RStringF )
Two-phased constructor.
- Pre-condition
- aStatusCode > 100 && aStatusCode < 700
Parameter | Description | aStatusCode | a known SIP response status code. Cannot be 100. |
aReasonPhrase | a SIP response reason phrase. |
ReasonPhrase ( )
Gets a SIP Response Reason Phrase.
Returns: a SIP response reason phrase or an empty string if the reason phrase is not defined.
SetReasonPhraseL ( RStringF )
IMPORT_C void | SetReasonPhraseL | ( | RStringF | aReasonPhrase | ) | |
Sets a SIP Response Reason Phrase.
Parameter | Description | 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
Parameter | Description | aStatusCode | extension status code |
StatusCode ( )
IMPORT_C TUint | StatusCode | ( | ) | const |
Gets the SIP Response status code
Returns: SIP Response status code
ToHeader ( )
Gets the recipient's To-header
Returns: a To-header or a 0-pointer if not present. Ownership is not transferred.