MSdpElementBuilder Class Reference

class MSdpElementBuilder

Constructs an attribute value, or a set of attributes, from multiple data elements.

The builder interface is used for building single attribute values, and sets of attribute value, attribute ID pairs, as for example in a service record.

In particular, the builder 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.

CSdpAgent::AttributeRequestL()

Member Functions Documentation

BuildBooleanL(TBool)

IMPORT_C MSdpElementBuilder *BuildBooleanL(TBoolaBool)[virtual]

Parameters

TBool aBool

BuildDEAL()

IMPORT_C MSdpElementBuilder *BuildDEAL()[virtual]

BuildDESL()

IMPORT_C MSdpElementBuilder *BuildDESL()[virtual]

BuildIntL(const TDesC8 &)

IMPORT_C MSdpElementBuilder *BuildIntL(const TDesC8 &aInt)[virtual]

Parameters

const TDesC8 & aInt

BuildNilL()

IMPORT_C MSdpElementBuilder *BuildNilL()[virtual]

BuildStringL(const TDesC8 &)

IMPORT_C MSdpElementBuilder *BuildStringL(const TDesC8 &aString)[virtual]

Parameters

const TDesC8 & aString

BuildURLL(const TDesC8 &)

IMPORT_C MSdpElementBuilder *BuildURLL(const TDesC8 &aURL)[virtual]

Parameters

const TDesC8 & aURL

BuildUUIDL(const TUUID &)

IMPORT_C MSdpElementBuilder *BuildUUIDL(const TUUID &aUUID)[virtual]

Parameters

const TUUID & aUUID

BuildUintL(const TDesC8 &)

IMPORT_C MSdpElementBuilder *BuildUintL(const TDesC8 &aUint)[virtual]

Parameters

const TDesC8 & aUint

BuildUnknownL(TUint8, TUint8, const TDesC8 &)

IMPORT_C MSdpElementBuilder *BuildUnknownL(TUint8aType,
TUint8aSizeDesc,
const TDesC8 &aData
)[virtual]

Parameters

TUint8 aType
TUint8 aSizeDesc
const TDesC8 & aData

EndListL()

IMPORT_C MSdpElementBuilder *EndListL()[virtual]

MSEB_ExtensionInterfaceL(TUid, void *&)

IMPORT_C voidMSEB_ExtensionInterfaceL(TUidaInterface,
void *&aObject
)

Returns a null aObject if the extension is not implemented, or a pointer to another interface if it is.

Parameters

TUid aInterfaceUID of the interface to return
void *& aObjectthe container for another interface as specified by aInterface

StartListL()

IMPORT_C MSdpElementBuilder *StartListL()[virtual]