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.
Public Member Functions | |
---|---|
~CSdpAgent() | |
IMPORT_C void | AttributeRequestL(TSdpServRecordHandle, TSdpAttributeID) |
IMPORT_C void | AttributeRequestL(TSdpServRecordHandle, const CSdpAttrIdMatchList &) |
IMPORT_C void | AttributeRequestL(MSdpElementBuilder *, TSdpServRecordHandle, TSdpAttributeID) |
IMPORT_C void | AttributeRequestL(MSdpElementBuilder *, TSdpServRecordHandle, const CSdpAttrIdMatchList &) |
IMPORT_C void | Cancel() |
IMPORT_C CSdpAgent * | NewL(MSdpAgentNotifier &, const TBTDevAddr &) |
IMPORT_C CSdpAgent * | NewLC(MSdpAgentNotifier &, const TBTDevAddr &) |
IMPORT_C void | NextRecordRequestL() |
IMPORT_C void | SetAttributePredictorListL(const CSdpAttrIdMatchList &) |
IMPORT_C void | SetRecordFilterL(const CSdpSearchPattern &) |
Private Member Functions | |
---|---|
CSdpAgent() | |
void | ConstructL(MSdpAgentNotifier &, TBTDevAddr) |
Private Attributes | |
---|---|
CSdpAgentEng * | iAgentEngine |
IMPORT_C void | AttributeRequestL | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID | |||
) |
TSdpServRecordHandle aHandle | |
TSdpAttributeID aAttrID |
IMPORT_C void | AttributeRequestL | ( | TSdpServRecordHandle | aHandle, |
const CSdpAttrIdMatchList & | aMatchList | |||
) |
TSdpServRecordHandle aHandle | |
const CSdpAttrIdMatchList & aMatchList |
IMPORT_C void | AttributeRequestL | ( | MSdpElementBuilder * | aBuilder, |
TSdpServRecordHandle | aHandle, | |||
TSdpAttributeID | aAttrID | |||
) |
MSdpElementBuilder * aBuilder | |
TSdpServRecordHandle aHandle | |
TSdpAttributeID aAttrID |
IMPORT_C void | AttributeRequestL | ( | MSdpElementBuilder * | aBuilder, |
TSdpServRecordHandle | aHandle, | |||
const CSdpAttrIdMatchList & | aMatchList | |||
) |
MSdpElementBuilder * aBuilder | |
TSdpServRecordHandle aHandle | |
const CSdpAttrIdMatchList & aMatchList |
void | ConstructL | ( | MSdpAgentNotifier & | aNotifier, |
TBTDevAddr | aDevAddr | |||
) | [private] |
MSdpAgentNotifier & aNotifier | |
TBTDevAddr aDevAddr |
IMPORT_C CSdpAgent * | NewL | ( | MSdpAgentNotifier & | aNotifier, |
const TBTDevAddr & | aDevAddr | |||
) | [static] |
MSdpAgentNotifier & aNotifier | |
const TBTDevAddr & aDevAddr |
IMPORT_C CSdpAgent * | NewLC | ( | MSdpAgentNotifier & | aNotifier, |
const TBTDevAddr & | aDevAddr | |||
) | [static] |
MSdpAgentNotifier & aNotifier | |
const TBTDevAddr & aDevAddr |
IMPORT_C void | SetAttributePredictorListL | ( | const CSdpAttrIdMatchList & | aMatchList | ) |
const CSdpAttrIdMatchList & aMatchList |
IMPORT_C void | SetRecordFilterL | ( | const CSdpSearchPattern & | aUUIDFilter | ) |
const CSdpSearchPattern & aUUIDFilter |