TBTLocalDevice Class Reference

class TBTLocalDevice

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

Not a complete set of details of the local device

Public Member Functions
TBTLocalDevice()
IMPORT_C TBoolAFHChannelAssessmentMode()
IMPORT_C TBoolAcceptPairedOnlyMode()
IMPORT_C const TBTDevAddr &Address()
IMPORT_C TUint32DeviceClass()
IMPORT_C const TDesC8 &DeviceName()
IMPORT_C TBoolIsValidAFHChannelAssessmentMode()
IMPORT_C TBoolIsValidAcceptPairedOnlyMode()
IMPORT_C TBoolIsValidAddress()
IMPORT_C TBoolIsValidDeviceClass()
IMPORT_C TBoolIsValidDeviceName()
IMPORT_C TBoolIsValidLimitedDiscoverable()
IMPORT_C TBoolIsValidPowerSetting()
IMPORT_C TBoolIsValidScanEnable()
IMPORT_C TBoolLimitedDiscoverable()
IMPORT_C TUint8PowerSetting()
IMPORT_C THCIScanEnableScanEnable()
IMPORT_C voidSetAFHChannelAssessmentMode(TBool)
IMPORT_C voidSetAcceptPairedOnlyMode(TBool)
IMPORT_C voidSetAddress(const TBTDevAddr &)
IMPORT_C voidSetDeviceClass(TUint32)
IMPORT_C voidSetDeviceName(const TDesC8 &)
IMPORT_C voidSetLimitedDiscoverable(TBool)
IMPORT_C voidSetPowerSetting(TUint8)
IMPORT_C voidSetScanEnable(THCIScanEnable)
Protected Member Enumerations
enumanonymous {
EAddress = 0x0001, ECoD = 0x0002, EDeviceName = 0x0004, EPowerSetting = 0x0008, EScanEnable = 0x0010, ELimitedDiscoverable = 0x0020, EAFHChannelAssessmentMode = 0x0040, EAcceptPairedOnlyMode = 0x0080
}
Private Member Enumerations
enumanonymous { EAFHChannelAssessmentModeValue = 0x0001, EAcceptPairedOnlyModeValue = 0x0002 }
Private Attributes
TBTDevAddr iAddress
TUint32 iCod
TBool iLimitedDiscoverable
TBTDeviceName8 iLocalName
TUint8 iPowerSetting
THCIScanEnable iScanEnable
TUint iSetMask
TUint32 iSimpleSettings

Constructor & Destructor Documentation

TBTLocalDevice()

IMPORT_CTBTLocalDevice()

Constructor

Member Functions Documentation

AFHChannelAssessmentMode()

IMPORT_C TBoolAFHChannelAssessmentMode()const

Get the AFH channel assessment mode.

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.

Address()

IMPORT_C const TBTDevAddr &Address()const

Get the address of the local device.

DeviceClass()

IMPORT_C TUint32DeviceClass()const

Get the device class. TBTDeviceClass constructor

DeviceName()

IMPORT_C const TDesC8 &DeviceName()const

Get the device name.

IsValidAFHChannelAssessmentMode()

IMPORT_C TBoolIsValidAFHChannelAssessmentMode()const

Denotes whether the AFH channel assessment mode has been set.

IsValidAcceptPairedOnlyMode()

IMPORT_C TBoolIsValidAcceptPairedOnlyMode()const

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

IsValidAddress()

IMPORT_C TBoolIsValidAddress()const

Denotes whether the address has been set.

IsValidDeviceClass()

IMPORT_C TBoolIsValidDeviceClass()const

Denotes whether the device class has been set.

IsValidDeviceName()

IMPORT_C TBoolIsValidDeviceName()const

Denotes whether the device name has been set.

IsValidLimitedDiscoverable()

IMPORT_C TBoolIsValidLimitedDiscoverable()const

Denotes whether the limited discoverable mode has been set.

IsValidPowerSetting()

IMPORT_C TBoolIsValidPowerSetting()const

Denotes whether the power setting has been set.

IsValidScanEnable()

IMPORT_C TBoolIsValidScanEnable()const

Denotes whether the scan enable has been set.

LimitedDiscoverable()

IMPORT_C TBoolLimitedDiscoverable()const

Get the limited discoverable mode.

PowerSetting()

IMPORT_C TUint8PowerSetting()const

Get the power setting.

ScanEnable()

IMPORT_C THCIScanEnableScanEnable()const

Get the scanning mode.

SetAFHChannelAssessmentMode(TBool)

IMPORT_C voidSetAFHChannelAssessmentMode(TBoolaOn)

Set the AFH channel assessment mode.

Parameters

TBool 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).

Parameters

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

SetAddress(const TBTDevAddr &)

IMPORT_C voidSetAddress(const TBTDevAddr &aAddr)

Set the device address.

Parameters

const TBTDevAddr & aAddrthe local device address

SetDeviceClass(TUint32)

IMPORT_C voidSetDeviceClass(TUint32aCod)

Set the device class.

Parameters

TUint32 aCodthe local device class

SetDeviceName(const TDesC8 &)

IMPORT_C voidSetDeviceName(const TDesC8 &aName)

Set the device name.

Parameters

const TDesC8 & aNamethe local device name

SetLimitedDiscoverable(TBool)

IMPORT_C voidSetLimitedDiscoverable(TBoolaOn)

Set limited discoverable mode.

Parameters

TBool aOnthe local device limited discoverable-ness

SetPowerSetting(TUint8)

IMPORT_C voidSetPowerSetting(TUint8aPowerSetting)

Set the power setting.

Parameters

TUint8 aPowerSettingthe local device power setting

SetScanEnable(THCIScanEnable)

IMPORT_C voidSetScanEnable(THCIScanEnableaEnable)

Enable local device scanning.

Parameters

THCIScanEnable aEnablethe local device scanning

Member Enumerations Documentation

Enum anonymous

Enumerators

EAddress = 0x0001
ECoD = 0x0002
EDeviceName = 0x0004
EPowerSetting = 0x0008
EScanEnable = 0x0010
ELimitedDiscoverable = 0x0020
EAFHChannelAssessmentMode = 0x0040
EAcceptPairedOnlyMode = 0x0080

Enum anonymous

Enumerators

EAFHChannelAssessmentModeValue = 0x0001
EAcceptPairedOnlyModeValue = 0x0002

Member Data Documentation

TBTDevAddr iAddress

TBTDevAddr iAddress[private]

TUint32 iCod

TUint32 iCod[private]

TBool iLimitedDiscoverable

TBool iLimitedDiscoverable[private]

TBTDeviceName8 iLocalName

TBTDeviceName8 iLocalName[private]

TUint8 iPowerSetting

TUint8 iPowerSetting[private]

THCIScanEnable iScanEnable

THCIScanEnable iScanEnable[private]

TUint iSetMask

TUint iSetMask[private]

TUint32 iSimpleSettings

TUint32 iSimpleSettings[private]