Location:
sipmessageelements.h
Link against: sipclient.lib
class CSIPMessageElements : public CBase;
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".
sipclient.lib
CBase
- Base class for all classes to be instantiated on the heap
CSIPMessageElements
- Class for creation and manipulation optional elements in a SIP message
Defined in CSIPMessageElements
:
Content()
, ContentType()
, ExtractContent()
, NewL()
, NewLC()
, SetContentL()
, SetUserHeadersL()
, UserHeaders()
, ~CSIPMessageElements()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CSIPMessageElements *NewL();
Two-phased constructor.
|
static IMPORT_C CSIPMessageElements *NewLC();
Two-phased constructor.
|
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.
|
IMPORT_C const RPointerArray< CSIPHeaderBase > &UserHeaders() const;
Gets all user SIP headers this class contains
|
IMPORT_C void SetContentL(HBufC8 *aContent, CSIPContentTypeHeader *aContentType);
aContent != 0 && aContentType != 0
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).
|
|
IMPORT_C const TDesC8 &Content() const;
Gets the SIP message content
|
IMPORT_C const CSIPContentTypeHeader *ContentType() const;
Gets the content type
|