#include <mw/sipmessageelements.h>
class CSIPMessageElements : public CBase |
Public Member Functions | |
---|---|
~CSIPMessageElements() | |
void | AddHeaderL(CSIPHeaderBase *) |
const CSIPCSeqHeader * | CSeq() |
IMPORT_C const TDesC8 & | Content() |
IMPORT_C const CSIPContentTypeHeader * | ContentType() |
void | DetachContent() |
void | DetachUserHeader(CSIPHeaderBase *) |
void | ExternalizeL(RWriteStream &) |
IMPORT_C HBufC8 * | ExtractContent() |
const CSIPFromHeader * | From() |
CSIPMessageElements * | InternalizeL(RReadStream &) |
IMPORT_C CSIPMessageElements * | NewL() |
IMPORT_C CSIPMessageElements * | NewLC() |
TInt | RemoveHeaders(RStringF) |
void | SetContent(HBufC8 *) |
IMPORT_C void | SetContentL(HBufC8 *, CSIPContentTypeHeader *) |
void | SetFromL(CSIPFromHeader *) |
void | SetToL(CSIPToHeader *) |
IMPORT_C void | SetUserHeadersL(RPointerArray< CSIPHeaderBase > &) |
const CSIPToHeader * | To() |
TInt | UserHeaderCount(RStringF) |
IMPORT_C const RPointerArray< CSIPHeaderBase > & | UserHeaders() |
const RPointerArray< CSIPHeaderBase > | UserHeadersL(RStringF) |
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".
IMPORT_C const TDesC8 & | Content | ( | ) | const |
Gets the SIP message content
Returns: SIP message content. If content does not exist, an empty descriptor is returned.
IMPORT_C const CSIPContentTypeHeader * | ContentType | ( | ) | const |
Gets the content type
Returns: Content-Type-header or a 0-pointer if not present; the ownership is not transferred.
IMPORT_C void | SetContentL | ( | HBufC8 * | aContent, |
CSIPContentTypeHeader * | aContentType | |||
) |
Parameter | Description |
---|---|
aContent | the content of a SIP message, the ownership is transferred |
aContentType | the SIP message content type, the ownership is transferred |
IMPORT_C void | SetUserHeadersL | ( | RPointerArray< CSIPHeaderBase > & | aHeaders | ) |
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.
Parameter | Description |
---|---|
aHeaders | an array of SIP headers. The ownership of objects in the array is transferred. |
IMPORT_C const RPointerArray< CSIPHeaderBase > & | UserHeaders | ( | ) | const |
Gets all user SIP headers this class contains
Returns: SIP headers. Ownership is not transferred.