TBTRegistrySearch Class Reference

#include <btmanclient.h>

Link against: btmanclient.lib

class TBTRegistrySearch
Public Member Functions
TBTRegistrySearch()
TBTRegistrySearch(const TBTRegistrySearch &)
IMPORT_C voidFindAddress(const TBTDevAddr &)
IMPORT_C voidFindAll()
IMPORT_C voidFindBluetoothName(const TDesC8 &)
IMPORT_C voidFindBonded()
IMPORT_C voidFindCoD(const TBTDeviceClass &)
IMPORT_C voidFindCoD(const TBTDeviceClass &, TBTDeviceClassSearch)
IMPORT_C voidFindCurrentProcessOwned()
IMPORT_C voidFindFriendlyName(const TDesC &)
IMPORT_C voidFindSinceSeen(const TTime &)
IMPORT_C voidFindSinceUsed(const TTime &)
IMPORT_C voidFindTrusted()
IMPORT_C voidFindUiCookie(TUint32)
IMPORT_C voidFindUiCookie(TUint32, TUint32)
IMPORT_C voidReset()
IMPORT_C TBTRegistrySearch &operator=(const TBTRegistrySearch &)

Detailed Description

Set search criteria on the Bluetooth Registry.

The search logic is "AND", so if device bonded is set, and code set to headsets the search results contain all the bonded headsets in the registry.

Other things can be added to the search criteria e.g. recently used headsets can easil be found by adding in the LastUsed criterion.

Constructor & Destructor Documentation

TBTRegistrySearch ( )

IMPORT_CTBTRegistrySearch()

Default constructor

TBTRegistrySearch ( const TBTRegistrySearch & )

IMPORT_CTBTRegistrySearch(const TBTRegistrySearch &aSearch)

Copy Constructor

Member Function Documentation

FindAddress ( const TBTDevAddr & )

IMPORT_C voidFindAddress(const TBTDevAddr &aAddress)

Add search criterion to search for given device

ParameterDescription
aAddressaddress of device to search for

FindAll ( )

IMPORT_C voidFindAll()

Add search criterion to search for finding all devices

FindBluetoothName ( const TDesC8 & )

IMPORT_C voidFindBluetoothName(const TDesC8 &aName)

Add search criterion to search for devices with some Bluetooth device name

ParameterDescription
aNamedevice name to search for Add search criteria of specific Bluetooth name

FindBonded ( )

IMPORT_C voidFindBonded()

Add search criterion for bonded devices

FindCoD ( const TBTDeviceClass & )

IMPORT_C voidFindCoD(const TBTDeviceClass &aClass)

Add search criterion to search for specific CoD

See also: TBTDeviceClass

ParameterDescription
aClassThe CoD to search

FindCoD ( const TBTDeviceClass &, TBTDeviceClassSearch )

IMPORT_C voidFindCoD(const TBTDeviceClass &aClass,
TBTDeviceClassSearchaPref
)

Add search criterion to search for certain classes of device

See also: TBTDeviceClass enum TBTDeviceClassSearch

ParameterDescription
aClassthe device class to search for
aPrefdescribes the type of device search to perform

FindCurrentProcessOwned ( )

IMPORT_C voidFindCurrentProcessOwned()

Add search criterion to search for devices added by the current process

FindFriendlyName ( const TDesC & )

IMPORT_C voidFindFriendlyName(const TDesC &aName)

Add search criterion to search for devices with some friendly name

ParameterDescription
aNamedevice name to search for

FindSinceSeen ( const TTime & )

IMPORT_C voidFindSinceSeen(const TTime &aLastSeen)

Add search criterion to search for devices seen since given date NOTE not currently implemented

ParameterDescription
aLastSeendate from which to find devices

FindSinceUsed ( const TTime & )

IMPORT_C voidFindSinceUsed(const TTime &aLastUsed)

Add search criterion to search for devices used since given date

ParameterDescription
aLastUseddate from which to find devices

FindTrusted ( )

IMPORT_C voidFindTrusted()

Add search criterion for trusted devices

FindUiCookie ( TUint32 )

IMPORT_C voidFindUiCookie(TUint32aUiCookie)

Add search criterion to search for devices with a particular UI Cookie value.

ParameterDescription
aUiCookieThe particular UI cookie value to search on.

FindUiCookie ( TUint32, TUint32 )

IMPORT_C voidFindUiCookie(TUint32aUiCookie,
TUint32aUiCookieMask
)

Add search criterion to search for devices with a particular UI Cookie value.

ParameterDescription
aUiCookieThe particular UI cookie value to search on.
aUiCookieMaskThe mask to indicate which bits of the cookie value are to be searched on.

Reset ( )

IMPORT_C voidReset()

Resets the search criteria

operator= ( const TBTRegistrySearch & )

IMPORT_C TBTRegistrySearch &operator=(const TBTRegistrySearch &aSearch)

Assignment operator

ParameterDescription
aSearchthe search pattern to which to assign this