TBTLocalDevice Class Reference

#include <btdevice.h>

Link against: btdevice.lib

class TBTLocalDevice

Detailed Description

Class used to exchange the local settings with the Registry server.

Not a complete set of details of the local device

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
EAddress0x0001
ECoD0x0002
EDeviceName0x0004
EPowerSetting0x0008
EScanEnable0x0010
ELimitedDiscoverable0x0020
EAFHChannelAssessmentMode0x0040
EAcceptPairedOnlyMode0x0080

Constructor & Destructor Documentation

TBTLocalDevice ( )

IMPORT_CTBTLocalDevice()

Constructor

Member Function Documentation

AFHChannelAssessmentMode ( )

IMPORT_C TBoolAFHChannelAssessmentMode()const

Get the AFH channel assessment mode.

Returns: ETrue if local device has AFHChannelModeAssessment switched on (i.e. available for use), otherwise EFalse

AcceptPairedOnlyMode ( )

IMPORT_C TBoolAcceptPairedOnlyMode()const

Get the setting for whether to accept all incoming connections or just those from paired devices. Note this is in fact a setting in the stack not the controller.

Returns: ETrue if local device is set only to accept incoming connections from paired devices, otherwise EFalse

Address ( )

IMPORT_C const TBTDevAddr &Address()const

Get the address of the local device.

Returns: Address of local device

DeviceClass ( )

IMPORT_C TUint32DeviceClass()const

Get the device class.

See also: TBTDeviceClass constructor

Returns: DeviceClass (as uint32)

DeviceName ( )

IMPORT_C const TDesC8 &DeviceName()const

Get the device name.

Returns: name of local device

IsValidAFHChannelAssessmentMode ( )

IMPORT_C TBoolIsValidAFHChannelAssessmentMode()const

Denotes whether the AFH channel assessment mode has been set.

Returns: ETrue if AFH channel assessment mode has been set

IsValidAcceptPairedOnlyMode ( )

IMPORT_C TBoolIsValidAcceptPairedOnlyMode()const

Denotes whether "Accept Paired Only Mode" has been set.

Returns: ETrue if "Accept Paired Only Mode" has been set

IsValidAddress ( )

IMPORT_C TBoolIsValidAddress()const

Denotes whether the address has been set.

Returns: ETrue if Address has been set

IsValidDeviceClass ( )

IMPORT_C TBoolIsValidDeviceClass()const

Denotes whether the device class has been set.

Returns: ETrue if DeviceClass has been set

IsValidDeviceName ( )

IMPORT_C TBoolIsValidDeviceName()const

Denotes whether the device name has been set.

Returns: ETrue if DeviceName has been set

IsValidLimitedDiscoverable ( )

IMPORT_C TBoolIsValidLimitedDiscoverable()const

Denotes whether the limited discoverable mode has been set.

Returns: ETrue if LimitedDiscoverble has been set

IsValidPowerSetting ( )

IMPORT_C TBoolIsValidPowerSetting()const

Denotes whether the power setting has been set.

Returns: ETrue if Power setting has been set

IsValidScanEnable ( )

IMPORT_C TBoolIsValidScanEnable()const

Denotes whether the scan enable has been set.

Returns: ETrue if ScanEnable has been set

LimitedDiscoverable ( )

IMPORT_C TBoolLimitedDiscoverable()const

Get the limited discoverable mode.

Returns: ETrue if local device is limited discoverable, otherwise EFalse

PowerSetting ( )

IMPORT_C TUint8PowerSetting()const

Get the power setting.

Returns: The power setting of the local device

ScanEnable ( )

IMPORT_C THCIScanEnableScanEnable()const

Get the scanning mode.

Returns: the scanning of the local device

SetAFHChannelAssessmentMode ( TBool )

IMPORT_C voidSetAFHChannelAssessmentMode(TBoolaOn)

Set the AFH channel assessment mode.

ParameterDescription
aOnthe local device channel assessment mode is switched on (available for use)

SetAcceptPairedOnlyMode ( TBool )

IMPORT_C voidSetAcceptPairedOnlyMode(TBoolaOn)

Set the paired device only mode. This is a stack setting which makes the decision as to whether to accept connection requests ONLY from paired devices (rejecting connection requests from unpaired devices).

ParameterDescription
aOnthe local stack will ONLY accept connection requests from paired devices

SetAddress ( const TBTDevAddr & )

IMPORT_C voidSetAddress(const TBTDevAddr &aAddr)

Set the device address.

ParameterDescription
aAddrthe local device address

SetDeviceClass ( TUint32 )

IMPORT_C voidSetDeviceClass(TUint32aCod)

Set the device class.

ParameterDescription
aCodthe local device class

SetDeviceName ( const TDesC8 & )

IMPORT_C voidSetDeviceName(const TDesC8 &aName)

Set the device name.

ParameterDescription
aNamethe local device name

SetLimitedDiscoverable ( TBool )

IMPORT_C voidSetLimitedDiscoverable(TBoolaOn)

Set limited discoverable mode.

ParameterDescription
aOnthe local device limited discoverable-ness

SetPowerSetting ( TUint8 )

IMPORT_C voidSetPowerSetting(TUint8aPowerSetting)

Set the power setting.

ParameterDescription
aPowerSettingthe local device power setting

SetScanEnable ( THCIScanEnable )

IMPORT_C voidSetScanEnable(THCIScanEnableaEnable)

Enable local device scanning.

ParameterDescription
aEnablethe local device scanning