TBTNamelessDevice Class Reference

class TBTNamelessDevice

Stores parameters for a nameless device.

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

Nested Classes and Structures

Public Member Functions
TBTNamelessDevice()
IMPORT_C const TBTDevAddr &Address()
IMPORT_C TUint16ClockOffset()
IMPORT_C TUintCompareTo(const TBTNamelessDevice &)
IMPORT_C voidDeleteLinkKey()
IMPORT_C const TBTDeviceClass &DeviceClass()
IMPORT_C const TBTDeviceSecurity &GlobalSecurity()
IMPORT_C TBoolIsPaired()
IMPORT_C TBoolIsValidAddress()
IMPORT_C TBoolIsValidClockOffset()
IMPORT_C TBoolIsValidDeviceClass()
IMPORT_C TBoolIsValidGlobalSecurity()
IMPORT_C TBoolIsValidLinkKey()
IMPORT_C TBoolIsValidPageScanMode()
IMPORT_C TBoolIsValidPageScanPeriodMode()
IMPORT_C TBoolIsValidPageScanRepMode()
IMPORT_C TBoolIsValidPaired()
IMPORT_C TBoolIsValidPassKey()
IMPORT_C TBoolIsValidSeen()
IMPORT_C TBoolIsValidUiCookie()
IMPORT_C TBoolIsValidUsed()
IMPORT_C const TBTLinkKey &LinkKey()
IMPORT_C TBTLinkKeyTypeLinkKeyType()
IMPORT_C TUint8PageScanMode()
IMPORT_C TUint8PageScanPeriodMode()
IMPORT_C TUint8PageScanRepMode()
IMPORT_C const TBTPinCode &PassKey()
IMPORT_C TUintPassKeyLength()
IMPORT_C const TTime &Seen()
IMPORT_C voidSetAddress(const TBTDevAddr &)
IMPORT_C voidSetClockOffset(TUint16)
IMPORT_C voidSetDeviceClass(TBTDeviceClass)
IMPORT_C voidSetGlobalSecurity(const TBTDeviceSecurity &)
IMPORT_C voidSetLinkKey(const TBTLinkKey &)
IMPORT_C voidSetLinkKey(const TBTLinkKey &, TBTLinkKeyType)
IMPORT_C voidSetPageScanMode(TUint8)
IMPORT_C voidSetPageScanPeriodMode(TUint8)
IMPORT_C voidSetPageScanRepMode(TUint8)
IMPORT_C voidSetPaired(TBool)
IMPORT_C voidSetPaired(TBTLinkKeyType)
IMPORT_C voidSetPassKey(const TBTPinCode &)
IMPORT_C voidSetSeen(const TTime &)
IMPORT_C voidSetUiCookie(TUint32)
IMPORT_C voidSetUsed(const TTime &)
IMPORT_C TUint32UiCookie()
IMPORT_C voidUpdate(const TBTNamelessDevice &)
IMPORT_C const TTime &Used()
IMPORT_C TBooloperator!=(const TBTNamelessDevice &)
IMPORT_C TBTNamelessDevice &operator=(const TBTNamelessDevice &)
IMPORT_C TBooloperator==(const TBTNamelessDevice &)
Public Member Enumerations
enumTBTDeviceSet {
EAddress = 0x000001, EDeviceClass = 0x000002, ELinkKey = 0x000004, EGlobalSecurity = 0x000008, EPageScanRepMode = 0x000010, EPageScanMode = 0x000020, EPageScanPeriodMode = 0x000040, EClockOffset = 0x000080, EUsed = 0x000100, ESeen = 0x000200, EIsPaired = 0x000400, EPassKey = 0x000800, EUiCookie = 0x001000, EAllNamelessProperties = 0x00ffffff
}
Private Attributes
TBTDevAddr iBDAddr
TBTBasebandParameters iBasebandParams
TBTDeviceClass iDeviceClass
TBTDeviceSecurity iGlobalSecurity
TBTLinkKey iLinkKey
TBTLinkKeyType iLinkKeyType
TUint32 iPadding3
TUint32 iPadding4
TBool iPaired
TBTPinCode iPassKey
TTime iSeen
TUint32 iSetMask
TUint32 iUiCookie
TTime iUsed

Constructor & Destructor Documentation

TBTNamelessDevice()

IMPORT_CTBTNamelessDevice()

Constructor.

Member Functions Documentation

Address()

IMPORT_C const TBTDevAddr &Address()const

Get the device address.

ClockOffset()

IMPORT_C TUint16ClockOffset()const

CompareTo(const TBTNamelessDevice &)

IMPORT_C TUintCompareTo(const TBTNamelessDevice &aDevice)const

Compare the attributes of aDevice to *this and return a bitfield of matching attributes. TBTDeviceSet

Parameters

const TBTNamelessDevice & aDevice

DeleteLinkKey()

IMPORT_C voidDeleteLinkKey()

Ensure that the previously known link key is discarded

DeviceClass()

IMPORT_C const TBTDeviceClass &DeviceClass()const

Returns the class of the device

GlobalSecurity()

IMPORT_C const TBTDeviceSecurity &GlobalSecurity()const

Retrieve the global security settings.

IsPaired()

IMPORT_C TBoolIsPaired()const

Check whether the device is paired

IsValidAddress()

IMPORT_C TBoolIsValidAddress()const

Denotes whether the device address has been set.

IsValidClockOffset()

IMPORT_C TBoolIsValidClockOffset()const

Denotes whether the clock offset has been set.

IsValidDeviceClass()

IMPORT_C TBoolIsValidDeviceClass()const

Denotes whether the device class has been set.

IsValidGlobalSecurity()

IMPORT_C TBoolIsValidGlobalSecurity()const

Denotes whether the global security settings have been set.

IsValidLinkKey()

IMPORT_C TBoolIsValidLinkKey()const

Denotes whether the link key has been set.

IsValidPageScanMode()

IMPORT_C TBoolIsValidPageScanMode()const

Denotes whether the page scan mode has been set.

IsValidPageScanPeriodMode()

IMPORT_C TBoolIsValidPageScanPeriodMode()const

Denotes whether the page scan period mode has been set.

IsValidPageScanRepMode()

IMPORT_C TBoolIsValidPageScanRepMode()const

Denotes whether the page scan repition mode has been set.

IsValidPaired()

IMPORT_C TBoolIsValidPaired()const

Denote whether is paired has been set

IsValidPassKey()

IMPORT_C TBoolIsValidPassKey()const

Denotes whether the PassKey has been set.

IsValidSeen()

IMPORT_C TBoolIsValidSeen()const

Denotes whether the time last seen has been set.

IsValidUiCookie()

IMPORT_C TBoolIsValidUiCookie()const

Denotes whether the UI Cookie has been set.

IsValidUsed()

IMPORT_C TBoolIsValidUsed()const

Denotes whether the time last used has been set.

LinkKey()

IMPORT_C const TBTLinkKey &LinkKey()const

Return the link key.

LinkKeyType()

IMPORT_C TBTLinkKeyTypeLinkKeyType()const

Return the link key type.

PageScanMode()

IMPORT_C TUint8PageScanMode()const

PageScanPeriodMode()

IMPORT_C TUint8PageScanPeriodMode()const

PageScanRepMode()

IMPORT_C TUint8PageScanRepMode()const

PassKey()

IMPORT_C const TBTPinCode &PassKey()const

Return the PIN code.

PassKeyLength()

IMPORT_C TUintPassKeyLength()const

Seen()

IMPORT_C const TTime &Seen()const

Return the time when this device was last seen. Note that this is currently not support by the bluetooth stack. Only the time when the device was last _used_ can is stored.

SetAddress(const TBTDevAddr &)

IMPORT_C voidSetAddress(const TBTDevAddr &aBDAddr)

Set the bluetooth device address.

Parameters

const TBTDevAddr & aBDAddrthe address of the device

SetClockOffset(TUint16)

IMPORT_C voidSetClockOffset(TUint16aClockOffSet)

Set the clock offset.

Parameters

TUint16 aClockOffSetthe clockoffset for the device

SetDeviceClass(TBTDeviceClass)

IMPORT_C voidSetDeviceClass(TBTDeviceClassaDeviceClass)

Set the device class.

Parameters

TBTDeviceClass aDeviceClassthe deviceclass of the device

SetGlobalSecurity(const TBTDeviceSecurity &)

IMPORT_C voidSetGlobalSecurity(const TBTDeviceSecurity &aSetting)

Set the Global security settings for all services used by this device

Parameters

const TBTDeviceSecurity & aSettingthe security override of the device

SetLinkKey(const TBTLinkKey &)

IMPORT_C voidSetLinkKey(const TBTLinkKey &aLinkKey)

Set the link key.

Parameters

const TBTLinkKey & aLinkKey

SetLinkKey(const TBTLinkKey &, TBTLinkKeyType)

IMPORT_C voidSetLinkKey(const TBTLinkKey &aLinkKey,
TBTLinkKeyTypeaLinkKeyType
)

Set the link key.

Parameters

const TBTLinkKey & aLinkKey
TBTLinkKeyType aLinkKeyTypethe link key type of the device

SetPageScanMode(TUint8)

IMPORT_C voidSetPageScanMode(TUint8aPageScanMode)

Set the page scan mode.

Parameters

TUint8 aPageScanModethe PSM of the device

SetPageScanPeriodMode(TUint8)

IMPORT_C voidSetPageScanPeriodMode(TUint8aPageScanPeriodMode)

Set the page scan period mode.

Parameters

TUint8 aPageScanPeriodModethe PSPM of the device

SetPageScanRepMode(TUint8)

IMPORT_C voidSetPageScanRepMode(TUint8aPageScanRepMode)

Set the page scan repetition mode.

Parameters

TUint8 aPageScanRepModethe PSRM of the device

SetPaired(TBool)

IMPORT_C voidSetPaired(TBoolaPaired)

Set whether the device is paired. This function should not be used any more, instead the overload with a link key type should be used. TBTNamelessDevice::SetPaired(TBTLinkKeyType aLinkKeyType)

Parameters

TBool aPairedwhether the device is paired

SetPaired(TBTLinkKeyType)

IMPORT_C voidSetPaired(TBTLinkKeyTypeaLinkKeyType)

Set the link key type because the device is paired

Parameters

TBTLinkKeyType aLinkKeyTypethe link key type

SetPassKey(const TBTPinCode &)

IMPORT_C voidSetPassKey(const TBTPinCode &aPassKey)

Set PIN code for device

Parameters

const TBTPinCode & aPassKeyused for pairing

SetSeen(const TTime &)

IMPORT_C voidSetSeen(const TTime &aDateTime)

Set when last seen in inquiry (not supported by stack at present)

Parameters

const TTime & aDateTimeThe date/time stamp.

SetUiCookie(TUint32)

IMPORT_C voidSetUiCookie(TUint32aUiCookie)

Sets the UI Cookie for the device. The format of the cookie is specific to the UI using the field.

Parameters

TUint32 aUiCookieThe 32bit cookie value.

SetUsed(const TTime &)

IMPORT_C voidSetUsed(const TTime &aDateTime)

Set when the device last connected from or to.

Parameters

const TTime & aDateTimeThe date/time stamp.

UiCookie()

IMPORT_C TUint32UiCookie()const

Returns the UI Cookie value associated with the device. The format of the cookie is specific to the UI using the field.

Update(const TBTNamelessDevice &)

IMPORT_C voidUpdate(const TBTNamelessDevice &aDevice)

Update 'this' with valid details of aDevice, leaving already present settings

Parameters

const TBTNamelessDevice & aDeviceThe device details to be used to update this device.

Used()

IMPORT_C const TTime &Used()const

Return the time when the device was last used.

operator!=(const TBTNamelessDevice &)

IMPORT_C TBooloperator!=(const TBTNamelessDevice &aDevice)const

Compare aDevice with this.

Parameters

const TBTNamelessDevice & aDeviceThe device to compare with this.

operator=(const TBTNamelessDevice &)

IMPORT_C TBTNamelessDevice &operator=(const TBTNamelessDevice &aDevice)

Compiler generated operator= is ok for this class, but ARM compiler warns

Parameters

const TBTNamelessDevice & aDeviceThe device to copy.

operator==(const TBTNamelessDevice &)

IMPORT_C TBooloperator==(const TBTNamelessDevice &aDevice)const

Compare aDevice with this.

Parameters

const TBTNamelessDevice & aDeviceThe device to compare with this.

Member Enumerations Documentation

Enum TBTDeviceSet

Bitfield of TBTNamelessDevice attributes This enum is to only be used by phone manufacturers, not by application developers.

Enumerators

EAddress = 0x000001

Device address

EDeviceClass = 0x000002

Device class

ELinkKey = 0x000004

Link key

EGlobalSecurity = 0x000008

Global security settings

EPageScanRepMode = 0x000010

Page scan repition mode

EPageScanMode = 0x000020

Page scan mode

EPageScanPeriodMode = 0x000040

Page scan period

EClockOffset = 0x000080

Clock offset

EUsed = 0x000100

Last used

ESeen = 0x000200

Last seen

EIsPaired = 0x000400

Is paired

EPassKey = 0x000800

PassKey

EUiCookie = 0x001000

User interface specific cookie

EAllNamelessProperties = 0x00ffffff

All nameless properties set

Member Data Documentation

TBTDevAddr iBDAddr

TBTDevAddr iBDAddr[private]

The BT address of the remote device

TBTBasebandParameters iBasebandParams

TBTBasebandParameters iBasebandParams[private]

The baseband parameters

TBTDeviceClass iDeviceClass

TBTDeviceClass iDeviceClass[private]

The class(es) of the remote device

TBTDeviceSecurity iGlobalSecurity

TBTDeviceSecurity iGlobalSecurity[private]

The overall security criteria for all services which this device may wish to use

TBTLinkKey iLinkKey

TBTLinkKey iLinkKey[private]

The link key

TBTLinkKeyType iLinkKeyType

TBTLinkKeyType iLinkKeyType[private]

Link Key Type

TUint32 iPadding3

TUint32 iPadding3[private]

TUint32 iPadding4

TUint32 iPadding4[private]

TBool iPaired

TBool iPaired[private]

Whether this device is paired

TBTPinCode iPassKey

TBTPinCode iPassKey[private]

PassKey

TTime iSeen

TTime iSeen[private]

when last seen in inquiry

TUint32 iSetMask

TUint32 iSetMask[private]

Bit mask indicating the data members that have been set

TUint32 iUiCookie

TUint32 iUiCookie[private]

The cookie attached to this device by the UI

TTime iUsed

TTime iUsed[private]

when last connect from/to