MBTEngSdpResultReceiver Class Reference

class MBTEngSdpResultReceiver

Class CBTEngDiscovery

Callback interface for receiving results from queries of remote SDP databases. Clients that make SDP queries through CBTEngDiscovery must implement this interface to handle the results.

btengdiscovery.lib
Since
S60 v3.2

Member Functions Documentation

AttributeSearchComplete(TSdpServRecordHandle, const RSdpResultArray &, TInt)

voidAttributeSearchComplete(TSdpServRecordHandleaHandle,
const RSdpResultArray &aAttr,
TIntaErr
)[pure virtual]

Provides notification of the result of an attribute search that matches the requested attribute (through CBTEngDiscovery::RemoteSdpQuery). This method indicates that the search has completed, and returns all the results to the caller at once.

Since
S60 v3.2

Parameters

TSdpServRecordHandle aHandleRecord handle of the service record containing the result.
const RSdpResultArray & aAttrArray containing the attribute that matches the requested attribute. Note: the array will not be available anymore after this method returns.
TInt aErrError code of the service search operation; KErrNone if sucessful, KErrEof if the requested attribute was not contained in the specified service record, KErrCouldNotConnect and KErrCouldDisconnected in case of Bluetooth connection errors; otherwise one of the system-wide error codes.

DeviceSearchComplete(CBTDevice *, TInt)

voidDeviceSearchComplete(CBTDevice *aDevice,
TIntaErr
)[pure virtual]

Provides notification of the result of the discovery of nearby Bluetooth devices.

Since
S60 v3.2

Parameters

CBTDevice * aDeviceThe data structure encapsulates information about the selected device. Ownership of the data structure has not been transfered and is still with the API client.
TInt aErrError code of the device search operation; KErrNone if sucessful, KErrCancel if the user cancelled the dialog, KErrAbort if CBTEngDiscovery::CancelSearchRemoteDevice was called; otherwise one of the system-wide error codes.

DeviceSearchComplete(CBTDevice *, TNameEntry *, TInt)

IMPORT_C voidDeviceSearchComplete(CBTDevice *aDevice,
TNameEntry *aNameEntry,
TIntaErr
)[virtual]

Provides notification of the result of the discovery of nearby Bluetooth devices and EIR data.

Since
S60 v5.1

Parameters

CBTDevice * aDeviceThe data structure encapsulates information about the selected device. Ownership of the data structure has not been transfered and is still with the API client.
TNameEntry * aNameEntryContains the EIR data of the remote device. Ownership of the data structure has not been transfered and is still with the API client.
TInt aErrError code of the device search operation; KErrNone if sucessful, KErrCancel if the user cancelled the dialog, KErrAbort if CBTEngDiscovery::CancelSearchRemoteDevice was called; otherwise one of the system-wide error codes.

GetEirServiceUUIDsComplete(TNameEntry *, TInt)

IMPORT_C voidGetEirServiceUUIDsComplete(TNameEntry *aNameEntry,
TIntaErr
)[virtual]

Provides notification of the result of service UUIDs retrieval.

Since
S60 v5.1

Parameters

TNameEntry * aNameEntryContains the EIR data of the remote device. Ownership of the data structure has not been transfered and is still with the API client.
TInt aErrKErrNone if sucessful; otherwise one of the system-wide error codes.

ServiceAttributeSearchComplete(TSdpServRecordHandle, const RSdpResultArray &, TInt)

voidServiceAttributeSearchComplete(TSdpServRecordHandleaHandle,
const RSdpResultArray &aAttr,
TIntaErr
)[pure virtual]

Provides notification of the result of an combination of a service and attribute search (through CBTEngDiscovery::RemoteSdpQuery). This method is called for each service and attribute combination for which a match was found. The last result (which could be empty if no match was found) contain error code KErrEof to indicate that the search has completed. The corresponding CBTEngDiscovery instance can only be deleted inside the callback method if the serach has completed (KErrEof is received).

Since
S60 v3.2

Parameters

TSdpServRecordHandle aHandleRecord handle of the service record containing the result.
const RSdpResultArray & aAttrArray containing the attribute that matches the requested attribute. Note: the array will not be available anymore after this method returns.
TInt aErrError code of the service search operation; KErrNone if sucessful and more results follow, KErrEof indicates that this is the last result (which could be empty if no match was found), KErrCouldNotConnect and KErrCouldDisconnected in case of Bluetooth connection errors; otherwise one of the system-wide error codes.

ServiceSearchComplete(const RSdpRecHandleArray &, TUint, TInt)

voidServiceSearchComplete(const RSdpRecHandleArray &aResult,
TUintaTotalRecordsCount,
TIntaErr
)[pure virtual]

Provides notification of the result of a service search that matches the requested UUID (through CBTEngDiscovery::RemoteSdpQuery). This method indicates that the search has completed, and returns all the results to the caller at once.

Since
S60 v3.2

Parameters

const RSdpRecHandleArray & aResultArray of record handles that match the requested UUID. Note: the array will not be available anymore after this method returns.
TUint aTotalRecordsCountThe total number of records returned.
TInt aErrError code of the service search operation; KErrNone if sucessful, KErrEof if no record matched the requested UUID, KErrCouldNotConnect and KErrCouldDisconnected in case of Bluetooth connection errors; otherwise one of the system-wide error codes.