#include <btsdp.h>
| class CSdpAttrValueList : public CSdpAttrValue |
| Protected Attributes | |
|---|---|
| CArrayPtr< CSdpAttrValue > * | iList |
| Public Member Functions | |
|---|---|
| virtual | ~CSdpAttrValueList() |
| virtual void | AcceptVisitorL(MSdpAttributeValueVisitor &) |
| IMPORT_C void | AppendValueL(CSdpAttrValue *) |
| virtual MSdpElementBuilder * | BuildBooleanL(TBool) |
| virtual MSdpElementBuilder * | BuildDEAL() |
| virtual MSdpElementBuilder * | BuildDESL() |
| virtual MSdpElementBuilder * | BuildEncodedL(const TDesC8 &) |
| virtual MSdpElementBuilder * | BuildIntL(const TDesC8 &) |
| virtual MSdpElementBuilder * | BuildNilL() |
| virtual MSdpElementBuilder * | BuildStringL(const TDesC8 &) |
| virtual MSdpElementBuilder * | BuildURLL(const TDesC8 &) |
| virtual MSdpElementBuilder * | BuildUUIDL(const TUUID &) |
| virtual MSdpElementBuilder * | BuildUintL(const TDesC8 &) |
| virtual MSdpElementBuilder * | BuildUnknownL(TUint8, TUint8, const TDesC8 &) |
| virtual TUint | DataSize() |
| virtual MSdpElementBuilder * | EndListL() |
| virtual MSdpElementBuilder * | StartListL() |
| Protected Member Functions | |
|---|---|
| CSdpAttrValueList(MSdpElementBuilder *) | |
| void | ConstructL() |
Base class for classes that specify lists of attribute data elements.
It implements the MSdpElementBuilder interface to build data elements into an attribute value.
See also: CSdpAttrValueDEA CSdpAttrValueDES
| CArrayPtr< CSdpAttrValue > * | iList | [protected] |
Array of attribute values contained in this CSdpAttrValueList class
| CSdpAttrValueList | ( | MSdpElementBuilder * | aBuilder | ) | [protected] |
| void | AcceptVisitorL | ( | MSdpAttributeValueVisitor & | aVisitor | ) | [virtual] |
Reimplemented from CSdpAttrValue::AcceptVisitorL(MSdpAttributeValueVisitor &)
Requests a call back to pass the attribute value.
This provides a simple method of enumerating each element in the list.
| Parameter | Description |
|---|---|
| aVisitor | Abstract interface that can be implemented to receive an enumeration of the values in the attribute list. |
| IMPORT_C void | AppendValueL | ( | CSdpAttrValue * | aValue | ) |
Add a new value onto the end on this list.
Ownership of the passed value is transferred to this list. It will be deleted when the list is destroyed.
If a leave occurs, aValue will be cleanup up automatically
| Parameter | Description |
|---|---|
| aValue | Attribute value to be added onto this list. |
| MSdpElementBuilder * | BuildBooleanL | ( | TBool | aBool | ) | [virtual] |
Adds a Boolean element.
| Parameter | Description |
|---|---|
| aBool | Attribute to add |
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildDEAL | ( | ) | [virtual] |
Adds a Data element alternative (DEA).
This should be followed by a call to StartListL(), and then calls to add elements to the list.
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildDESL | ( | ) | [virtual] |
Adds a Data element sequence (DES).
This should be followed by a call to StartListL(), and then calls to add elements to the list.
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildEncodedL | ( | const TDesC8 & | aString | ) | [virtual] |
Encode an attribute value.
| Parameter | Description |
|---|---|
| aString | The attribute value. |
Returns: This attribute value.
| MSdpElementBuilder * | BuildIntL | ( | const TDesC8 & | aInt | ) | [virtual] |
Adds a signed integer element.
| Parameter | Description |
|---|---|
| aInt | Attribute to add |
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildNilL | ( | ) | [virtual] |
Adds a null type element.
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildStringL | ( | const TDesC8 & | aString | ) | [virtual] |
Adds a Text String element.
| Parameter | Description |
|---|---|
| aString | Attribute to add |
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildURLL | ( | const TDesC8 & | aString | ) | [virtual] |
Adds a URL element.
| Parameter | Description |
|---|---|
| aString | URL to add |
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildUUIDL | ( | const TUUID & | aUUID | ) | [virtual] |
Adds a UUID element.
| Parameter | Description |
|---|---|
| aUUID | Attribute to add |
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildUintL | ( | const TDesC8 & | aUint | ) | [virtual] |
Adds an unsigned integer element.
| Parameter | Description |
|---|---|
| aUint | Attribute to add |
Returns: This attribute value with added element
| MSdpElementBuilder * | BuildUnknownL | ( | TUint8 | aType, |
| TUint8 | aSizeDesc, | |||
| const TDesC8 & | aData | |||
| ) | [virtual] | |||
Adds an element of any type.
Does nothing.
| Parameter | Description |
|---|---|
| aType | Type descriptor |
| aSizeDesc | Size descriptor |
| aData | Data field |
Returns: Attribute value with added elementThis attribute value
| TUint | DataSize | ( | ) | const [virtual] |
Reimplemented from CSdpAttrValue::DataSize()const
Gets the size of the list.
Returns: Size of the list (in bytes)
| MSdpElementBuilder * | EndListL | ( | ) | [virtual] |
Indicates the end of a list started by StartListL().
Returns: Parent of this attribute value
| MSdpElementBuilder * | StartListL | ( | ) | [virtual] |
Indicates that subsequent elements added belong to a DES or DEA.
The end of the list should be indicated by a call to EndList().
Returns: This attribute value