class CSdpAttributeField : public CBase |
This class encapsulates the attribute field of Session Description Protocol for media and session level attributes. Media format/payload type level attributes are supported by the CSdpFmtAttributeField class.
The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member documentation. The implementation supports this normative reference, but does not enforce it fully.
sdpcodec.lib
Public Member Functions | |
---|---|
~CSdpAttributeField () | |
IMPORT_C void | AssignTo (const CSdpFmtAttributeField &) |
IMPORT_C RStringF | Attribute () |
IMPORT_C TBool | BelongsTo (const CSdpFmtAttributeField &) |
IMPORT_C CSdpAttributeField * | CloneL () |
IMPORT_C CSdpAttributeField * | DecodeL (const TDesC8 &) |
IMPORT_C CSdpAttributeField * | DecodeLC (const TDesC8 &) |
IMPORT_C void | EncodeL ( RWriteStream &) |
void | ExternalizeL ( RWriteStream &) |
CSdpAttributeField * | InternalizeL ( RReadStream &) |
TBool | IsFmtAttribute () |
IMPORT_C CSdpAttributeField * | NewL ( RStringF , const TDesC8 &) |
IMPORT_C CSdpAttributeField * | NewLC ( RStringF , const TDesC8 &) |
IMPORT_C void | SetL ( RStringF , const TDesC8 &) |
IMPORT_C const TDesC8 & | Value () |
IMPORT_C TBool | operator== (const CSdpAttributeField &) |
Private Attributes | |
---|---|
RStringF | iAttribute |
RStringPool | iPool |
TBool | iPropertyAttribute |
HBufC8 * | iValue |
IMPORT_C void | AssignTo | ( | const CSdpFmtAttributeField & | aFmtAttribute | ) |
Assigns attribute to the format level attribute. In the final output the attribute will placed after format level attribute.
const CSdpFmtAttributeField & aFmtAttribute | A format level attribute this attribute is assigned to. |
IMPORT_C TBool | BelongsTo | ( | const CSdpFmtAttributeField & | aFmtAttribute | ) | const |
Test if the attribute belongs to the given format level attribute. Note, that the check can be true for the media level paremeter if it appears after the last format level attribute.
const CSdpFmtAttributeField & aFmtAttribute |
void | CheckValidControlL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is among valid uri value for control attribute
const TDesC8 & aValue | Value string |
void | CheckValidCurrAndConfL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for curr and conf attribute as specified in RFC 3312
const TDesC8 & aValue | Value string |
void | CheckValidDesL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for des attribute as specified in RFC 3312
const TDesC8 & aValue | Value string |
void | CheckValidFmtpL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid fmtp string
const TDesC8 & aValue | Value string |
void | CheckValidFrameRateL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid framerate attribute
const TDesC8 & aValue | Value string |
void | CheckValidGroupL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for group attribute as specified in RFC 3388
const TDesC8 & aValue | Value string |
void | CheckValidLangStrL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid language attribute as specified in RFC 3066
const TDesC8 & aValue | Value string |
void | CheckValidOrientL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is among the valid orient attributes
const TDesC8 & aValue | Value string |
void | CheckValidRangeL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for range attribute as specified in RFC 2326
const TDesC8 & aValue | Value string |
void | CheckValidRtpmapL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid rtpmap string
const TDesC8 & aValue | Value string |
IMPORT_C CSdpAttributeField * | CloneL | ( | ) | const |
Creates a new instance that is equal to the target.
void | ConstructL | ( | const TDesC8 & | aText | ) | [private] |
Second phase constructor
const TDesC8 & aText | Text string ending to LF character |
void | ConstructL | ( | RStringF | aAttribute, |
const TDesC8 & | aValue | |||
) | [private] |
Second phase constructor
void | CreateAttributeAndValueStringsLC | ( | RArray < TPtrC8 > & | aArray, |
HBufC8 *& | aAttribute, | |||
HBufC8 *& | aValue | |||
) | [private] |
Forms attribute and value strings out of the token array and pushes both (aAttribute & aValue) into cleanup stack
IMPORT_C CSdpAttributeField * | DecodeL | ( | const TDesC8 & | aText | ) | [static] |
Constructs a new attribute field.
const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
IMPORT_C CSdpAttributeField * | DecodeLC | ( | const TDesC8 & | aText | ) | [static] |
Constructs a new attribute field and adds the pointer to the cleanup stack.
const TDesC8 & aText |
IMPORT_C void | EncodeL | ( | RWriteStream & | aStream | ) | const |
Outputs the field formatted according to SDP syntax and including the terminating CRLF.
RWriteStream & aStream | Stream used for output. On return the stream includes correctly formatted attribute field. |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes the object to stream
RWriteStream & aStream | Stream where the object's state will be stored |
void | FormatProperyAttributeL | ( | const TDesC8 & | aAttribute | ) | [private] |
Verifies that attribute is valid property attribute and initializes the member variables of class accordingly
const TDesC8 & aAttribute | Attribute in descriptor |
void | FormatValueAttributeL | ( | const TDesC8 & | aAttribute, |
const TDesC8 & | aValue | |||
) | [private] |
Verifies that attribute is valid value attribute and initializes the member variables of class accordingly
CSdpAttributeField * | InternalizeL | ( | RReadStream & | aStream | ) | [static] |
Creates object from the stream data
RReadStream & aStream | Stream where the object's state will be read |
TBool | IsFmtAttribute | ( | ) |
Informs if the attribute belongs to any format level attribute.
IMPORT_C CSdpAttributeField * | NewL | ( | RStringF | aAttribute, |
const TDesC8 & | aValue | |||
) | [static] |
Constructs a new attribute field.
IMPORT_C CSdpAttributeField * | NewLC | ( | RStringF | aAttribute, |
const TDesC8 & | aValue | |||
) | [static] |
Constructs a new attribute field and adds the pointer to the cleanup stack.
IMPORT_C void | SetL | ( | RStringF | aAttribute, |
const TDesC8 & | aValue | |||
) |
Sets the attribute and attribute value.
void | SetNotPredefinedAttributeL | ( | const TDesC8 & | aAttribute, |
const TDesC8 & | aValue | |||
) | [private] |
Set attribute and values. Attribute is not one of predefined ones.
void | ValidValueInListL | ( | TInt | aItemsCount, |
const TText8 *const | aValuesList, | |||
const TDesC8 & | aValue | |||
) | [private] |
Checks if value is included in the list of predefined values
void | VerifyValueAttributeL | ( | SdpCodecStringConstants::TStrings | aString, |
const TDesC8 & | aValue | |||
) | [private] |
Verifies that the value is valid for the attribute
SdpCodecStringConstants::TStrings aString | |
const TDesC8 & aValue |
IMPORT_C TBool | operator== | ( | const CSdpAttributeField & | aObj | ) | const |
Compares this instance to another for equality.
const CSdpAttributeField & aObj |
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.