CSdpAttributeField Class Reference
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
Constructor & Destructor Documentation
CSdpAttributeField()
CSdpAttributeField | ( | ) | [private] |
~CSdpAttributeField()
IMPORT_C | ~CSdpAttributeField | ( | ) | |
Deletes the resources held by the instance.
Member Functions Documentation
AssignTo(const CSdpFmtAttributeField &)
Assigns attribute to the format level attribute. In the final output the attribute will placed after format level attribute.
BelongsTo(const CSdpFmtAttributeField &)
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.
CheckValidControlL(const TDesC8 &)
void | CheckValidControlL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is among valid uri value for control attribute
Parameters
const TDesC8 & aValue | Value string |
CheckValidCurrAndConfL(const TDesC8 &)
void | CheckValidCurrAndConfL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for curr and conf attribute as specified in RFC 3312
Parameters
const TDesC8 & aValue | Value string |
CheckValidDesL(const TDesC8 &)
void | CheckValidDesL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for des attribute as specified in RFC 3312
Parameters
const TDesC8 & aValue | Value string |
CheckValidFmtpL(const TDesC8 &)
void | CheckValidFmtpL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid fmtp string
Parameters
const TDesC8 & aValue | Value string |
CheckValidFrameRateL(const TDesC8 &)
void | CheckValidFrameRateL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid framerate attribute
Parameters
const TDesC8 & aValue | Value string |
CheckValidGroupL(const TDesC8 &)
void | CheckValidGroupL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for group attribute as specified in RFC 3388
Parameters
const TDesC8 & aValue | Value string |
CheckValidLangStrL(const TDesC8 &)
void | CheckValidLangStrL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid language attribute as specified in RFC 3066
Parameters
const TDesC8 & aValue | Value string |
CheckValidOrientL(const TDesC8 &)
void | CheckValidOrientL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is among the valid orient attributes
Parameters
const TDesC8 & aValue | Value string |
CheckValidRangeL(const TDesC8 &)
void | CheckValidRangeL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid value for range attribute as specified in RFC 2326
Parameters
const TDesC8 & aValue | Value string |
CheckValidRtpmapL(const TDesC8 &)
void | CheckValidRtpmapL | ( | const TDesC8 & | aValue | ) | [private] |
Checks if the value is valid rtpmap string
Parameters
const TDesC8 & aValue | Value string |
CloneL()
Creates a new instance that is equal to the target.
ConstructL(const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aText | ) | [private] |
Parameters
const TDesC8 & aText | Text string ending to LF character |
ConstructL(RStringF, const TDesC8 &)
Parameters
RStringF aAttribute | Attribute identifier |
const TDesC8 & aValue | Value of the attribute of KNullDesC8 |
CreateAttributeAndValueStringsLC(RArray< TPtrC8 > &, HBufC8 *&, HBufC8 *&)
Forms attribute and value strings out of the token array and pushes both (aAttribute & aValue) into cleanup stack
Parameters
RArray< TPtrC8 > & aArray | Token array |
HBufC8 *& aAttribute | Attribute string (in cleanup stack) |
HBufC8 *& aValue | Value string (in cleanup stack) |
CreateAttributeFieldPtrsL()
void | CreateAttributeFieldPtrsL | ( | ) | [private] |
DecodeL(const TDesC8 &)
Constructs a new attribute field.
Parameters
const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
DecodeLC(const TDesC8 &)
Constructs a new attribute field and adds the pointer to the cleanup stack.
EncodeL(RWriteStream &)
Outputs the field formatted according to SDP syntax and including the terminating CRLF.
Parameters
RWriteStream & aStream | Stream used for output. On return the stream includes correctly formatted attribute field. |
ExternalizeL(RWriteStream &)
Externalizes the object to stream
Parameters
RWriteStream & aStream | Stream where the object's state will be stored |
FormatProperyAttributeL(const TDesC8 &)
void | FormatProperyAttributeL | ( | const TDesC8 & | aAttribute | ) | [private] |
Verifies that attribute is valid property attribute and initializes the member variables of class accordingly
Parameters
const TDesC8 & aAttribute | Attribute in descriptor |
FormatValueAttributeL(const TDesC8 &, const TDesC8 &)
void | FormatValueAttributeL | ( | const TDesC8 & | aAttribute, |
| const TDesC8 & | aValue |
| ) | [private] |
Verifies that attribute is valid value attribute and initializes the member variables of class accordingly
InternalizeL(RReadStream &)
Creates object from the stream data
Parameters
RReadStream & aStream | Stream where the object's state will be read |
IsFmtAttribute()
Informs if the attribute belongs to any format level attribute.
NewL(RStringF, const TDesC8 &)
Constructs a new attribute field.
Parameters
RStringF aAttribute | The attribute name. It can be a pre- defined name in the SDP string pool or defined by the client. |
const TDesC8 & aValue | A valid attribute value or an empty descriptor to omit the value part. |
NewLC(RStringF, const TDesC8 &)
Constructs a new attribute field and adds the pointer to the cleanup stack.
Parameters
RStringF aAttribute | The attribute name. It can be a pre-defined name in the SDP string pool or defined by the client. |
const TDesC8 & aValue | A valid attribute value or an empty descriptor to omit the value part. |
SetL(RStringF, const TDesC8 &)
Sets the attribute and attribute value.
-
leave
- KErrSdpCodecAttributeField if the attribute part is not pre-defined EAttributeFmtp or EAttributeRtpmap.
Parameters
RStringF aAttribute | A valid attribute name. It can be a pre-defined name in the SDP string pool or defined by the client. |
const TDesC8 & aValue | A valid attribute value or an empty descriptor to omit the value part. |
SetNotPredefinedAttributeL(const TDesC8 &, const TDesC8 &)
void | SetNotPredefinedAttributeL | ( | const TDesC8 & | aAttribute, |
| const TDesC8 & | aValue |
| ) | [private] |
Set attribute and values. Attribute is not one of predefined ones.
Parameters
const TDesC8 & aAttribute | Attribute string (in cleanup stack) |
const TDesC8 & aValue | Value string |
ValidValueInListL(TInt, const TText8 *const, const TDesC8 &)
void | ValidValueInListL | ( | TInt | aItemsCount, |
| const TText8 *const | aValuesList, |
| const TDesC8 & | aValue |
| ) | [private] |
Checks if value is included in the list of predefined values
Parameters
TInt aItemsCount | Predefined values count |
const TText8 *const aValuesList | List of predefined values |
const TDesC8 & aValue | Value string |
Value()
IMPORT_C const TDesC8 & | Value | ( | ) | const |
VerifyValueAttributeL(SdpCodecStringConstants::TStrings, const TDesC8 &)
Verifies that the value is valid for the attribute
__DbgTestInvariant()
void | __DbgTestInvariant | ( | ) | const [private] |
operator==(const CSdpAttributeField &)
Compares this instance to another for equality.
Member Data Documentation
TBool
iPropertyAttribute
TBool
| iPropertyAttribute | [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.