Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: btsdp.h
Link against: bluetooth.lib

Class MSdpElementBuilder

MSdpElementBuilder

Support

Supported from 6.1

Description

Constructs an attribute value from multiple data elements.

The interface can be implemented to receive the results from CSdpAgent attribute queries.

Each member function itself returns an MsdpElementBuilder interface that can then be used to add further elements.

For more on the format of attribute values, see [BS1 Service Discovery Protocol 3].

Note that the interface defines each function to leave with the error KErrGeneral.

Defined in MSdpElementBuilder:
BuildBooleanL(), BuildDEAL(), BuildDESL(), BuildIntL(), BuildNilL(), BuildStringL(), BuildURLL(), BuildUUIDL(), BuildUintL(), BuildUnknownL(), EndListL(), StartListL()

See also:


BuildBooleanL()

virtual MSdpElementBuilder* BuildBooleanL(TBool aBool);

Description

Adds a Boolean element.

Parameters

TBool aBool

Element to add

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


BuildDEAL()

virtual MSdpElementBuilder* BuildDEAL();

Description

Adds a Data element alternative (DEA), a data element whose data field is a sequence of data elements from which one data element is to be selected.

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

[Top]


BuildDESL()

virtual MSdpElementBuilder* BuildDESL();

Description

Adds a Data element sequence (DES), a data element whose data field is a sequence of data elements.

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

[Top]


BuildNilL()

virtual MSdpElementBuilder* BuildNilL();

Description

Adds a Nil element.

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


BuildIntL()

virtual MSdpElementBuilder* BuildIntL(const TDesC8& aInt);

Description

Adds a signed integer element.

Parameters

const TDesC8& aInt

Element to add

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


BuildStringL()

virtual MSdpElementBuilder* BuildStringL(const TDesC8& aString);

Description

Adds a Text String element.

Parameters

const TDesC8& aString

Element to add

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


BuildUintL()

virtual MSdpElementBuilder* BuildUintL(const TDesC8& aUint);

Description

Adds an unsigned integer element.

Parameters

const TDesC8& aUint

Element to add

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


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

[Top]


BuildURLL()

virtual MSdpElementBuilder* BuildURLL(const TDesC8& aURL);

Description

Adds a URL element.

Parameters

const TDesC8& aURL

Element to add

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


BuildUUIDL()

virtual MSdpElementBuilder* BuildUUIDL(const TUUID& aUUID);

Description

Adds a UUID element.

Parameters

const TUUID& aUUID

Element to add

Return value

MSdpElementBuilder*

Attribute value with added element

[Top]


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

[Top]


EndListL()

virtual MSdpElementBuilder* EndListL();

Description

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

Return value

MSdpElementBuilder*

Attribute value with added element