btdevice.h File Reference

KMaxBluetoothNameLen

const TIntKMaxBluetoothNameLen[static]

The maximum length of a bluetooth device name, as stored in CBTDevice.

KMaxFriendlyNameLen

const TIntKMaxFriendlyNameLen[static]

The maximum length of the user-assinged friendly name for a bluetooth device, as stored in CBTDevice.

KMaxBCBluetoothNameLen

const TIntKMaxBCBluetoothNameLen[static]

Length of a bluetooth device name. This is not to be used outside of the sub-system. Retained for binary compatibility. Deprecated

Typedef CBTDeviceArray

typedef CArrayPtrFlat< CBTDevice >CBTDeviceArray

A typedef'ed array of CBTDevice objects.

Typedef RBTSecurityArray

typedef RArray< TBTServiceSecurityPerDevice >RBTSecurityArray

A typedef'ed array of TBTServiceSecurityPerDevice objects.

Typedef TBTDeviceName

typedef TBuf< KMaxBCBluetoothNameLen >TBTDeviceName

Wide descriptor of correct length to hold a bluetooth device name.

Typedef TBTDeviceName8

typedef TBuf8< KMaxBluetoothNameLen >TBTDeviceName8

Narrow descriptor of correct length to hold a bluetooth device name.

Enum TBTMajorServiceClass

Enum used to describe the Bluetooth major service classes.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMajorServiceLimitedDiscoverableMode0x01

Limited discoverable mode

EMajorServicePositioning0x08

Positioning

EMajorServiceNetworking0x10

Networking

EMajorServiceRendering0x20

Rendering

EMajorServiceCapturing0x40

Capturing

EMajorServiceObjectTransfer0x80

Object transfer

EMajorServiceAudio0x100

Audio

EMajorServiceTelephony0x200

Telephony

EMajorServiceInformation0x400

Information

EMajorServiceAudioService0x100

Old name kept for SC. Deprecated

See also: EMajorServiceAudio

Enum TBTMajorDeviceClass

Enum used to describe the Bluetooth major device classes.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMajorDeviceMisc0x0

Miscellaneous device

EMajorDeviceComputer0x1

Computer device

EMajorDevicePhone0x2

Phone device

EMajorDeviceLanAccessPoint0x3

LAN access point device

EMajorDeviceAV0x4

Audio-video device

EMajorDevicePeripheral0x5

Peripheral device

EMajorDeviceImaging0x6

Imaging device

EMajorDeviceWearable0x7

Wearable device

EMajorDeviceToy0x8

Toy device

EMajorDeviceUnclassified0x1F

Unclassified device

EMajorDeviceAudioDevice0x4

Old name kept for SC. Deprecated

See also: EMajorDeviceAV

EMajorDeviceDeviceUnclassified0x1F

Old name kept for SC. Deprecated

See also: EMajorDeviceUnclassified

Enum TBTMinorDeviceClassComputer

Enum used to describe the Bluetooth minor device classes relating to the "Computer" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDeviceComputerUnclassified0x0

Unclassified computer device

EMinorDeviceComputerDesktop0x1

Desktop computer device

EMinorDeviceComputerServer0x2

Server computer device

EMinorDeviceComputerLaptop0x3

Laptop computer device

EMinorDeviceComputerHandheld0x4

Handheld computer device

EMinorDeviceComputerPalmSize0x5

Palm computer device

EMinorDeviceComputerWearable0x6

Wearable computer device

Enum TBTMinorDeviceClassPhone

Enum used to describe the Bluetooth minor device classes relating to the "phone" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDevicePhoneUnclassified0x0

Unclassified phone device

EMinorDevicePhoneCellular0x1

Cellular phone device

EMinorDevicePhoneCordless0x2

Cordless phone device

EMinorDevicePhoneSmartPhone0x3

Smart phone device

EMinorDevicePhoneWiredModem0x4

Wired modem phone device

EMinorDevicePhoneCommonISDNAccess0x5

ISDN phone device

Enum TBTMinorDeviceClassLAN

Enum used to describe the Bluetooth minor device classes relating to the "LAN" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDeviceLANFullyAvailable0x0

LAN is currently 0% utilitized

EMinorDeviceLANServiceOne0x8

LAN is currently 1-17% utilitized

EMinorDeviceLANServiceTwo0x10

LAN is currently 17-33% utilitized

EMinorDeviceLANServiceThree0x18

LAN is currently 33-50% utilitized

EMinorDeviceLANServiceFour0x20

LAN is currently 50-67% utilitized

EMinorDeviceLANServiceFive0x28

LAN is currently 67-83% utilitized

EMinorDeviceLANServiceSix0x30

LAN is currently 83-99% utilitized

EMinorDeviceLANNoService0x38

LAN is currently 100% utilitized

Enum TBTMinorDeviceClassAV

Enum used to describe the Bluetooth minor device classes relating to the "AV" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDeviceAVUnclassified0x0

Unclassified AV Device

EMinorDeviceAVHeadset0x1

Headset AV Device

EMinorDeviceAVHandsfree0x2

Handsfree AV Device

EMinorDeviceAVMicrophone0x4

Microphone AV Device

EMinorDeviceAVLoudspeaker0x5

Loudspeaker AV Device

EMinorDeviceAVHeadphones0x6

Headphone AV Device

EMinorDeviceAVPortableAudio0x7

Portable audio AV Device

EMinorDeviceAVCarAudio0x8

Car audio AV Device

EMinorDeviceAVSetTopBox0x9

Set top box AV Device

EMinorDeviceAVHiFiAudio0xA

Hifi audio AV Device

EMinorDeviceAVVCR0xB

VCR AV Device

EMinorDeviceAVVideoCamera0xC

Video camera AV Device

EMinorDeviceAVCamcorder0xD

Camcorder AV Device

EMinorDeviceAVVideoMonitor0xE

Video monitor AV Device

EMinorDeviceAVVideoDisplayAndLoudspeaker0xF

Video display and loudspeaker AV Device

EMinorDeviceAVVideoConferencing0x10

Video conferencing AV Device

EMinorDeviceAVGamingToy0x12

Gaming toy AV Device

Enum TBTMinorDeviceClassPeripheral

Enum used to describe the Bluetooth minor device classes relating to the "Peripheral" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDevicePeripheralKeyboard0x10

Keyboard peripheral device.

Note that the keyboard bit can be independently or'd with all other bits.

EMinorDevicePeripheralPointer0x20

Pointer peripheral device.

Note that the pointer bit can be independently or'd with all other bits.

EMinorDevicePeripheralUncategorized0x00

Uncategorized peripheral device

EMinorDevicePeripheralJoystick0x01

Joystick peripheral device

EMinorDevicePeripheralGamepad0x02

Gamepad peripheral device

EMinorDevicePeripheralRemoteControl0x03

Remote control peripheral device

EMinorDevicePeripheralSensingDevice0x04

Sensing peripheral device

EMinorDevicePeripheralDigitizerTablet0x05

Digitizer tablet peripheral device

EMinorDevicePeripheralCardReader0x06

Card reader peripheral device

Enum TBTMinorDeviceClassImaging

Enum used to describe the Bluetooth minor device classes relating to the "Imaging" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDeviceImagingDisplay0x04

Display imaging device

EMinorDeviceImagingCamera0x08

Camera imaging device

EMinorDeviceImagingScanner0x10

Scanner imaging device

EMinorDeviceImagingPrinter0x20

Printer imaging device

Enum TBTMinorDeviceClassWearable

Enum used to describe the Bluetooth minor device classes relating to the "Wearable" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDeviceWearableWatch0x01

Wrist watch wearable device

EMinorDeviceWearablePager0x02

Pager wearable device

EMinorDeviceWearableJacket0x03

Jacket wearable device

EMinorDeviceWearableHelmet0x04

Helmet wearable device

EMinorDeviceWearableGlasses0x05

Glasses wearable device

Enum TBTMinorDeviceClassToy

Enum used to describe the Bluetooth minor device classes relating to the "Toy" major device class.

See the bluetooth specification for more details.

EnumeratorValueDescription
EMinorDeviceToyRobot0x01

Robot toy device

EMinorDeviceToyVehicle0x02

Vehicle toy device

EMinorDeviceToyDoll0x03

Doll toy device

EMinorDeviceToyController0x04

Controller toy device

EMinorDeviceToyGame0x05

Game toy device

NONSHARABLE_CLASS ( TBTDeviceClass )

NONSHARABLE_CLASS(TBTDeviceClass)

Encapsulation of device class definitions.

Contains a single TInt as member data and methods to extract the major, minor and service class information from that TInt.

NONSHARABLE_CLASS ( TBTDeviceSecurity )

NONSHARABLE_CLASS(TBTDeviceSecurity)

Class to store the security override parameters for a particular remote device.

NONSHARABLE_CLASS ( TBTServiceSecurityPerDevice )

NONSHARABLE_CLASS(TBTServiceSecurityPerDevice)

Class to tie a service uid with a device security setting.

This allows us to have service-specific security settings for a device.

NONSHARABLE_CLASS ( TBTNamelessDevice )

NONSHARABLE_CLASS(TBTNamelessDevice)

Stores parameters for a nameless device.

A class which stores useful parameters concerning a remote device But *not* including names

See also: CBTDevice

NONSHARABLE_CLASS ( CBTDevice )

NONSHARABLE_CLASS(CBTDevice)

Encapsulates all information that must be known about a device.

Stores useful information concerning a remote device, including names

KHCIAFHHostChannelClassificationSize

const TUint8KHCIAFHHostChannelClassificationSize

Number of bytes in an AFH Host Channel Classification.

Size and Length of the TBTAFHHostChannelClassification Descriptor

See also: TBTAFHHostChannelClassification

KAFHMinUnknownChannels

const TUint8KAFHMinUnknownChannels

Required number of unknown channels in an AFH Host Channel Classification.

That is least number of channels in the 79 channel set that must be left NOT set to bad. In AFH host channel classification a channel may labelled 'bad' (implies do not use) or 'unknown' (implies that it is up to the controller to decide if should be used). An attempt to create a TBTAFHHostChannelClassification with more than KAFHMinUnknownChannels set to 'bad' will result in a KErrUnderflow error being returned.

See also: TBTAFHHostChannelClassification

KAFHNumChannels

const TUint8KAFHNumChannels

Number of channels in the Bluetooth channel set that is used with AFH

The Bluetooth channel set is the set of frequencies used in the Bluetooth hopping sequence. AFH allows a connection to opt not to use some of the frequencies in this set.

See also: TBTAFHHostChannelClassification

NONSHARABLE_CLASS ( TBTAFHHostChannelClassification )

NONSHARABLE_CLASS(TBTAFHHostChannelClassification)

Descriptor class that should be used to help set up an AFH host channel classification for the controller.

The bits in each byte of this descriptor are used to tell the controller which channels the host anticipates will become busy and so advisable for Bluetooth to avoid. Such channels are referred to as 'bad', and are represented by bits set to 0. Channels that are not 'bad' are referred to as 'unknown' implying simply that the host has no knowledge that they are, or are about to become 'bad'. These are represented by bits set to 1. Note: The Bluetooth specification demands that at least 20 channels must be set to 'unknown'. Any attempt by the user of this class to set too many 'bad' channels will result in the return of a KErrNotSupported error, and the attempt having no effect.

NONSHARABLE_CLASS ( TBTLocalDevice )

NONSHARABLE_CLASS(TBTLocalDevice)

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

Not a complete set of details of the local device