CSdpAgent Class Reference

class CSdpAgent : public CBase

Makes Bluetooth service discovery protocol (SDP) requests to a remote device.

To make SDP requests,

Construct a CSdpAgent object with the Bluetooth address of the remote device to query.

Set the classes of service that you want to query for. The classes have predefined UUIDs, which you specify with SetRecordFilterL().

Get results through NextRecordRequestL(). Information on services is stored as records, which can be queried in turn for attribute values for the service through AttributeRequestL().

A user of this class must implement MSdpAgentNotifier to receive the responses to queries.

Note that queries are asynchronous, although this is hidden in the API. The implication is that the interface functions that receive responses are only called when the thread's active scheduler can schedule handling of the completion of the query.

MSdpAgentNotifier

Inherits from

Constructor & Destructor Documentation

CSdpAgent()

CSdpAgent()[private]

~CSdpAgent()

IMPORT_C~CSdpAgent()

Member Functions Documentation

AttributeRequestL(TSdpServRecordHandle, TSdpAttributeID)

IMPORT_C voidAttributeRequestL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID
)

Parameters

TSdpServRecordHandle aHandle
TSdpAttributeID aAttrID

AttributeRequestL(TSdpServRecordHandle, const CSdpAttrIdMatchList &)

IMPORT_C voidAttributeRequestL(TSdpServRecordHandleaHandle,
const CSdpAttrIdMatchList &aMatchList
)

Parameters

TSdpServRecordHandle aHandle
const CSdpAttrIdMatchList & aMatchList

AttributeRequestL(MSdpElementBuilder *, TSdpServRecordHandle, TSdpAttributeID)

IMPORT_C voidAttributeRequestL(MSdpElementBuilder *aBuilder,
TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID
)

Parameters

MSdpElementBuilder * aBuilder
TSdpServRecordHandle aHandle
TSdpAttributeID aAttrID

AttributeRequestL(MSdpElementBuilder *, TSdpServRecordHandle, const CSdpAttrIdMatchList &)

IMPORT_C voidAttributeRequestL(MSdpElementBuilder *aBuilder,
TSdpServRecordHandleaHandle,
const CSdpAttrIdMatchList &aMatchList
)

Parameters

MSdpElementBuilder * aBuilder
TSdpServRecordHandle aHandle
const CSdpAttrIdMatchList & aMatchList

Cancel()

IMPORT_C voidCancel()

ConstructL(MSdpAgentNotifier &, TBTDevAddr)

voidConstructL(MSdpAgentNotifier &aNotifier,
TBTDevAddraDevAddr
)[private]

Parameters

MSdpAgentNotifier & aNotifier
TBTDevAddr aDevAddr

NewL(MSdpAgentNotifier &, const TBTDevAddr &)

IMPORT_C CSdpAgent *NewL(MSdpAgentNotifier &aNotifier,
const TBTDevAddr &aDevAddr
)[static]

Parameters

MSdpAgentNotifier & aNotifier
const TBTDevAddr & aDevAddr

NewLC(MSdpAgentNotifier &, const TBTDevAddr &)

IMPORT_C CSdpAgent *NewLC(MSdpAgentNotifier &aNotifier,
const TBTDevAddr &aDevAddr
)[static]

Parameters

MSdpAgentNotifier & aNotifier
const TBTDevAddr & aDevAddr

NextRecordRequestL()

IMPORT_C voidNextRecordRequestL()

SetAttributePredictorListL(const CSdpAttrIdMatchList &)

IMPORT_C voidSetAttributePredictorListL(const CSdpAttrIdMatchList &aMatchList)

Parameters

const CSdpAttrIdMatchList & aMatchList

SetRecordFilterL(const CSdpSearchPattern &)

IMPORT_C voidSetRecordFilterL(const CSdpSearchPattern &aUUIDFilter)

Parameters

const CSdpSearchPattern & aUUIDFilter

Member Data Documentation

CSdpAgentEng * iAgentEngine

CSdpAgentEng *iAgentEngine[private]