#include <mw/sipacceptheader.h>
class CSIPAcceptHeader : public CSIPParameterHeaderBase |
Public Member Functions | |
---|---|
~CSIPAcceptHeader() | |
RPointerArray< CSIPHeaderBase > | BaseDecodeL(const TDesC8 &) |
virtual IMPORT_C CSIPHeaderBase * | CloneL() |
IMPORT_C RPointerArray< CSIPAcceptHeader > | DecodeL(const TDesC8 &) |
IMPORT_C CSIPHeaderBase * | InternalizeValueL(RReadStream &) |
IMPORT_C TBool | IsEmpty() |
IMPORT_C const TDesC8 & | MediaSubtype() |
IMPORT_C const TDesC8 & | MediaType() |
virtual TBool | MoreThanOneAllowed() |
virtual IMPORT_C RStringF | Name() |
IMPORT_C CSIPAcceptHeader * | NewL(const TDesC8 &, const TDesC8 &) |
IMPORT_C CSIPAcceptHeader * | NewLC(const TDesC8 &, const TDesC8 &) |
virtual TPreferredPlace | PreferredPlaceInMessage() |
IMPORT_C TReal | QParameter() |
IMPORT_C void | SetMediaSubtypeL(const TDesC8 &) |
IMPORT_C void | SetMediaTypeL(const TDesC8 &) |
IMPORT_C void | SetQParameterL(TReal) |
Inherited Attributes | |
---|---|
CSIPHeaderBase::iLink |
Inherited Enumerations | |
---|---|
CSIPHeaderBase:TPreferredPlace |
Class provides functions for setting and getting media types and parameters in SIP "Accept" header.
IMPORT_C | ~CSIPAcceptHeader | ( | ) |
Destructor, deletes the resources of CSIPAcceptHeader.
RPointerArray< CSIPHeaderBase > | BaseDecodeL | ( | const TDesC8 & | aValue | ) | [static] |
IMPORT_C CSIPHeaderBase * | CloneL | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::CloneL()const
From CSIPHeaderBase CloneL
IMPORT_C RPointerArray< CSIPAcceptHeader > | DecodeL | ( | const TDesC8 & | aValue | ) | [static] |
Constructs a CSIPAcceptHeader from textual representation of the header's value part. An empty Accept-header can be created using this function by passing a KNullDesC8 as a parameter.
Parameter | Description |
---|---|
aValue | a value part of a "Accept"-header |
Returns: an array containing one to many instances of CSIPAcceptHeader.
IMPORT_C CSIPHeaderBase * | InternalizeValueL | ( | RReadStream & | aReadStream | ) | [static] |
Constructs an instance of a CSIPAcceptHeader from a RReadStream
Parameter | Description |
---|---|
aReadStream | a stream containing the value of the externalized header object (header name not included). |
Returns: An instance of a CSIPAcceptHeader
IMPORT_C TBool | IsEmpty | ( | ) | const |
Check if the header is empty. If so, the other getters will not return a meaningful value.
Returns: ETrue if empty, EFalse otherwise.
IMPORT_C const TDesC8 & | MediaSubtype | ( | ) | const |
Gets the media subtype from the "Accept" header
Returns: a media subtype
IMPORT_C const TDesC8 & | MediaType | ( | ) | const |
Gets the media type from the "Accept" header
Returns: a media type
TBool | MoreThanOneAllowed | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::MoreThanOneAllowed()const
IMPORT_C RStringF | Name | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::Name()const
From CSIPHeaderBase Name
IMPORT_C CSIPAcceptHeader * | NewL | ( | const TDesC8 & | aMediaType, |
const TDesC8 & | aMediaSubtype | |||
) | [static] |
Creates a new instance of CSIPAcceptHeader
Parameter | Description |
---|---|
aMediaType | a media type to set. For example "application" |
aMediaSubtype | a media subtype to set. For example "sdp" |
Returns: a new instance of CSIPAcceptHeader
IMPORT_C CSIPAcceptHeader * | NewLC | ( | const TDesC8 & | aMediaType, |
const TDesC8 & | aMediaSubtype | |||
) | [static] |
Creates a new instance of CSIPAcceptHeader and puts it into the cleanup stack
Parameter | Description |
---|---|
aMediaType | a media type to set. For example "application" |
aMediaSubtype | a media subtype to set. For example "sdp" |
Returns: a new instance of CSIPAcceptHeader
TPreferredPlace | PreferredPlaceInMessage | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::PreferredPlaceInMessage()const
IMPORT_C void | SetQParameterL | ( | TReal | aQValue | ) |
Sets the "q"-parameter value
Parameter | Description |
---|---|
aQValue | a "q"-parameter value to set |