CSIPResponseElements Class Reference
class CSIPResponseElements : public CBase
|
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.
sipclient.lib
Constructor & Destructor Documentation
CSIPResponseElements()
CSIPResponseElements
|
(
|
)
|
[private]
|
~CSIPResponseElements()
IMPORT_C
|
~CSIPResponseElements
|
(
|
)
|
|
Member Functions Documentation
ConstructL(TUint, RStringF)
void
|
ConstructL
|
(
|
TUint
|
aStatusCode,
|
|
RStringF
|
aReasonPhrase
|
|
)
|
[private]
|
DoInternalizeL(RReadStream &)
void
|
DoInternalizeL
|
(
|
RReadStream
&
|
aReadStream
|
)
|
[private]
|
ExternalizeL(RWriteStream &)
FromHeader()
Gets the originator's From-header
InternalizeL(RReadStream &)
InternalizeLC(RReadStream &)
MessageElements()
Gets message elements (contains all SIP user headers and content)
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.
NewL(TUint, RStringF)
Two-phased constructor.
-
Pre-condition
-
aStatusCode > 100 && aStatusCode < 700
Parameters
TUint
aStatusCode
|
a known SIP response status code. Cannot be 100.
|
RStringF
aReasonPhrase
|
a SIP response reason phrase.
|
NewLC(TUint, RStringF)
Two-phased constructor.
-
Pre-condition
-
aStatusCode > 100 && aStatusCode < 700
Parameters
TUint
aStatusCode
|
a known SIP response status code. Cannot be 100.
|
RStringF
aReasonPhrase
|
a SIP response reason phrase.
|
ReasonPhrase()
IMPORT_C
RStringF
|
ReasonPhrase
|
(
|
)
|
const
|
Gets a SIP Response Reason Phrase.
SetReasonPhraseL(RStringF)
IMPORT_C void
|
SetReasonPhraseL
|
(
|
RStringF
|
aReasonPhrase
|
)
|
|
Sets a SIP Response Reason Phrase.
Parameters
RStringF
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
Parameters
TUint
aStatusCode
|
extension status code
|
StatusCode()
IMPORT_C
TUint
|
StatusCode
|
(
|
)
|
const
|
Gets the SIP Response status code
ToHeader()
Gets the recipient's To-header
Member Data Documentation
CSIPMessageElements * iMessageElements
TUint
iStatusCode
TUint
|
iStatusCode
|
[private]
|
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.