CSIPMessageElements Class Reference
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
Constructor & Destructor Documentation
CSIPMessageElements()
CSIPMessageElements
|
(
|
)
|
[private]
|
~CSIPMessageElements()
IMPORT_C
|
~CSIPMessageElements
|
(
|
)
|
|
Member Functions Documentation
AddHeaderL(CSIPHeaderBase *)
CheckUserHeaderL(const CSIPHeaderBase *)
void
|
CheckUserHeaderL
|
(
|
const
CSIPHeaderBase
*
|
aHeader
|
)
|
const [private]
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Content()
IMPORT_C const
TDesC8
&
|
Content
|
(
|
)
|
const
|
Gets the SIP message content
DetachUserHeader(CSIPHeaderBase *)
DoInternalizeL(RReadStream &)
void
|
DoInternalizeL
|
(
|
RReadStream
&
|
aReadStream
|
)
|
[private]
|
ExternalizeL(RWriteStream &)
ExternalizeL(const CSIPExtensionHeader *, RWriteStream &)
ExternalizeUserHeadersL(RWriteStream &)
void
|
ExternalizeUserHeadersL
|
(
|
RWriteStream
&
|
aWriteStream
|
)
|
const [private]
|
ExtractContent()
IMPORT_C
HBufC8
*
|
ExtractContent
|
(
|
)
|
|
InternalizeL(RReadStream &)
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
-
leave
-
KErrArgument if aContent == 0 or aContentType == 0
Parameters
HBufC8
* aContent
|
the content of a SIP message, the ownership is transferred
|
CSIPContentTypeHeader
* aContentType
|
the SIP message content type, the ownership is transferred
|
SetFromL(CSIPFromHeader *)
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.
UserHeaderCount(RStringF)
UserHeaders()
Gets all user SIP headers this class contains
Member Data Documentation
CSIPCSeqHeader * iCSeqHeader
CSIPContentTypeHeader * iContentTypeHeader
CSIPFromHeader * iFromHeader
TBool
iHeaderLookupOpen
TBool
|
iHeaderLookupOpen
|
[private]
|
RPointerArray< CSIPHeaderBase > iUserHeaders
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.