Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: btsdp.h
Link against: bluetooth.lib

Class CSdpAttrValueList

CSdpAttrValueList

Support

Supported from 6.1

Description

Base class for classes that specify lists of attribute data elements.

It implements the MSdpElementBuilder interface to build data elements into an attribute value.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CSdpAttrValueBase class for classes that encapsulate SDP attributes values
CSdpAttrValueListBase class for classes that specify lists of attribute data elements
MSdpElementBuilderConstructs an attribute value from multiple data elements

Defined in CSdpAttrValueList:
AcceptVisitorL(), AppendValueL(), BuildBooleanL(), BuildDEAL(), BuildDESL(), BuildIntL(), BuildNilL(), BuildStringL(), BuildURLL(), BuildUUIDL(), BuildUintL(), BuildUnknownL(), DataSize(), EndListL(), StartListL(), ~CSdpAttrValueList()

Inherited from CBase:
operator new()

Inherited from CSdpAttrValue:
Bool(), Des(), DoesIntFit(), Int(), Type(), UUID(), Uint()

See also:


Destructor


~CSdpAttrValueList()

virtual ~CSdpAttrValueList();

Description

Destructor.

[Top]


List access and properties


AcceptVisitorL()

virtual void AcceptVisitorL(MSdpAttributeValueVisitor& aVisitor);

Description

Requests a call back to pass the attribute value.

This provides a simple method of enumerating each element in the list.

Parameters

MSdpAttributeValueVisitor& aVisitor

Abstract interface that can be implemented to receive an enumeration of the values in the attribute list.


DataSize()

virtual TUint DataSize() const;

Description

Gets the size of the list.

Return value

TUint

Size of the list (in bytes)

[Top]


Adding elements to the list


AppendValueL()

void AppendValueL(CSdpAttrValue* aValue);

Description

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

Parameters

CSdpAttrValue* aValue

Attribute value to be added onto this list.


BuildBooleanL()

virtual MSdpElementBuilder* BuildBooleanL(TBool aBool);

Description

Adds a Boolean element.

Parameters

TBool aBool

Attribute to add

Return value

MSdpElementBuilder*

Attribute value with added element


BuildDEAL()

virtual MSdpElementBuilder* BuildDEAL();

Description

Adds a Data element alternative (DEA).

This should be followed by a call to StartList(), and then calls to add elements to the list.

Return value

MSdpElementBuilder*

Attribute value with added element


BuildDESL()

virtual MSdpElementBuilder* BuildDESL();

Description

Adds a Data element sequence (DES).

This should be followed by a call to StartList(), and then calls to add elements to the list.

Return value

MSdpElementBuilder*

Attribute value with added element


BuildNilL()

virtual MSdpElementBuilder* BuildNilL();

Description

Adds a Nil element.

Return value

MSdpElementBuilder*

Attribute value with added element


BuildIntL()

virtual MSdpElementBuilder* BuildIntL(const TDesC8& aInt);

Description

Adds a signed integer element.

Parameters

const TDesC8& aInt

Attribute to add

Return value

MSdpElementBuilder*

Attribute value with added element


BuildStringL()

virtual MSdpElementBuilder* BuildStringL(const TDesC8& aString);

Description

Adds a Text String element.

Parameters

const TDesC8& aString

Attribute to add

Return value

MSdpElementBuilder*

Attribute value with added element


BuildUintL()

virtual MSdpElementBuilder* BuildUintL(const TDesC8& aUint);

Description

Adds an unsigned integer element.

Parameters

const TDesC8& aUint

Attribute to add

Return value

MSdpElementBuilder*

Attribute value with added element


BuildUnknownL()

virtual MSdpElementBuilder* BuildUnknownL(TUint8 aType, TUint8 aSizeDesc, const TDesC8& aData);

Description

Adds an element of any type.

Parameters

TUint8 aType

Type descriptor

TUint8 aSizeDesc

Size descriptor

const TDesC8& aData

Data field

Return value

MSdpElementBuilder*

Attribute value with added element


BuildURLL()

virtual MSdpElementBuilder* BuildURLL(const TDesC8& aURL);

Description

Adds a URL element.

Parameters

const TDesC8& aURL

Attribute to add

Return value

MSdpElementBuilder*

Attribute value with added element


BuildUUIDL()

virtual MSdpElementBuilder* BuildUUIDL(const TUUID& aUUID);

Description

Adds a UUID element.

Parameters

const TUUID& aUUID

Attribute to add

Return value

MSdpElementBuilder*

Attribute value with added element


StartListL()

virtual MSdpElementBuilder* StartListL();

Description

Indicates that subsequent elements added belong to a DES or DEA.

The end of the list should be indicated by a call to EndList().

Return value

MSdpElementBuilder*

Attribute value with added element


EndListL()

virtual MSdpElementBuilder* EndListL();

Description

Indicates the end of a list started by StartList().

Return value

MSdpElementBuilder*

Attribute value with added element