CSIPMessageElements Class Reference
#include
<mw/sipmessageelements.h>
Link against: sipclient.lib
class CSIPMessageElements : public CBase |
Detailed Description
Class for creation and manipulation optional elements in a SIP message.
Class provides functions for setting and getting optional elements in a SIP message. Optional elements include user SIP message headers, content and content type. Following headers are not considered to be user SIP message headers and cannot be set or retrieved using functions of this class: "Authentication-Info", "Call-Id", "CSeq", "From" "Max-Forwards", "Min-Expires", "Record-Route", "Security-Verify", "Service-Route", "To", "Via", "Security-Server" and "Proxy-Authorization".
Constructor & Destructor Documentation
~CSIPMessageElements ( )
IMPORT_C | ~CSIPMessageElements | ( | ) | |
Member Function Documentation
AddHeaderL ( CSIPHeaderBase * )
CSeq ( )
Content ( )
IMPORT_C const TDesC8 & | Content | ( | ) | const |
Gets the SIP message content
- Return Value
- SIP message content. If content does not exist, an empty descriptor is returned.
ContentType ( )
- Return Value
- Content-Type-header or a 0-pointer if not present; the ownership is not transferred.
DetachContent ( )
DetachUserHeader ( CSIPHeaderBase * )
ExternalizeL ( RWriteStream & )
ExtractContent ( )
IMPORT_C HBufC8 * | ExtractContent | ( | ) | |
From ( )
InternalizeL ( RReadStream & )
RemoveHeaders ( RStringF )
SetContent ( HBufC8 * )
void | SetContent | ( | HBufC8 * | aContent | ) | |
SetContentL ( HBufC8 *, CSIPContentTypeHeader * )
Sets the SIP message content and its type. A zero length content can be set by providing a pointer to a zero length
HBufC8 instance (the ownership is transferred).
- Pre-condition
- aContent != 0 && aContentType != 0
Parameters |
---|
aContent | the content of a SIP message, the ownership is transferred |
aContentType | the SIP message content type, the ownership is transferred |
Leave Codes |
---|
KErrArgument | if aContent == 0 or aContentType == 0 |
SetFromL ( CSIPFromHeader * )
SetToL ( CSIPToHeader * )
SetUserHeadersL ( RPointerArray< CSIPHeaderBase > & )
Sets an array of user headers i.e. headers that user is allowed manipulate to a SIP message. An empty array resets the user headers. Note that the Content-Type header must be set using SetContentL.
Parameters |
---|
aHeaders | an array of SIP headers. The ownership of objects in the array is transferred. |
To ( )
UserHeaderCount ( RStringF )
UserHeaders ( )
Gets all user SIP headers this class contains
- Return Value
- SIP headers. Ownership is not transferred.
UserHeadersL ( RStringF )