TBTNamelessDevice Class Reference

#include <btdevice.h>

Link against: btdevice.lib

class TBTNamelessDevice
Public Member Enumerations
enumTBTDeviceSet { EAddress, EDeviceClass, ELinkKey, EGlobalSecurity, ..., EAllNamelessProperties }
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 &)

Detailed Description

Stores parameters for a nameless device.

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

See also: CBTDevice

Member Enumeration Documentation

Enum TBTDeviceSet

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

EnumeratorValueDescription
EAddress0x000001

Device address

EDeviceClass0x000002

Device class

ELinkKey0x000004

Link key

EGlobalSecurity0x000008

Global security settings

EPageScanRepMode0x000010

Page scan repition mode

EPageScanMode0x000020

Page scan mode

EPageScanPeriodMode0x000040

Page scan period

EClockOffset0x000080

Clock offset

EUsed0x000100

Last used

ESeen0x000200

Last seen

EIsPaired0x000400

Is paired

EPassKey0x000800

PassKey

EUiCookie0x001000

User interface specific cookie

EAllNamelessProperties0x00ffffff

All nameless properties set

Constructor & Destructor Documentation

TBTNamelessDevice ( )

IMPORT_CTBTNamelessDevice()

Constructor.

Member Function Documentation

Address ( )

IMPORT_C const TBTDevAddr &Address()const

Get the device address.

Returns: The device address this refers to

ClockOffset ( )

IMPORT_C TUint16ClockOffset()const

Returns: the ClockOffSet of the device

CompareTo ( const TBTNamelessDevice & )

IMPORT_C TUintCompareTo(const TBTNamelessDevice &aDevice)const

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

See also: TBTDeviceSet

Returns: bit field indicating what attributes of aDevice are equal to self

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

Returns: The device class.

GlobalSecurity ( )

IMPORT_C const TBTDeviceSecurity &GlobalSecurity()const

Retrieve the global security settings.

Returns: The Global security settings for all services used by this device

IsPaired ( )

IMPORT_C TBoolIsPaired()const

Check whether the device is paired

Returns: ETrue = Paired

IsValidAddress ( )

IMPORT_C TBoolIsValidAddress()const

Denotes whether the device address has been set.

Returns: ETrue = The address of the device been set

IsValidClockOffset ( )

IMPORT_C TBoolIsValidClockOffset()const

Denotes whether the clock offset has been set.

Returns: ETrue = The clockoffset of the device been set

IsValidDeviceClass ( )

IMPORT_C TBoolIsValidDeviceClass()const

Denotes whether the device class has been set.

Returns: ETrue = The class of the device been set

IsValidGlobalSecurity ( )

IMPORT_C TBoolIsValidGlobalSecurity()const

Denotes whether the global security settings have been set.

Returns: ETrue = The global security settings of the device been set

IsValidLinkKey ( )

IMPORT_C TBoolIsValidLinkKey()const

Denotes whether the link key has been set.

Returns: ETrue = The link key of the device been set

IsValidPageScanMode ( )

IMPORT_C TBoolIsValidPageScanMode()const

Denotes whether the page scan mode has been set.

Returns: ETrue = The pagescanmode of the device been set

IsValidPageScanPeriodMode ( )

IMPORT_C TBoolIsValidPageScanPeriodMode()const

Denotes whether the page scan period mode has been set.

Returns: ETrue = The pagescanperiodmode of the device been set

IsValidPageScanRepMode ( )

IMPORT_C TBoolIsValidPageScanRepMode()const

Denotes whether the page scan repition mode has been set.

Returns: ETrue = The pagescanrepetitionmode of the device been set

IsValidPaired ( )

IMPORT_C TBoolIsValidPaired()const

Denote whether is paired has been set

Returns: Etrue = whether is paired has been set

IsValidPassKey ( )

IMPORT_C TBoolIsValidPassKey()const

Denotes whether the PassKey has been set.

Returns: ETrue = The PassKey of the device been set

IsValidSeen ( )

IMPORT_C TBoolIsValidSeen()const

Denotes whether the time last seen has been set.

Returns: ETrue = The time last seen has been set

IsValidUiCookie ( )

IMPORT_C TBoolIsValidUiCookie()const

Denotes whether the UI Cookie has been set.

Returns: ETrue = The UI Cookie for the device been set

IsValidUsed ( )

IMPORT_C TBoolIsValidUsed()const

Denotes whether the time last used has been set.

Returns: ETrue = The time last used has been set

LinkKey ( )

IMPORT_C const TBTLinkKey &LinkKey()const

Return the link key.

Returns: the link key

LinkKeyType ( )

IMPORT_C TBTLinkKeyTypeLinkKeyType()const

Return the link key type.

Returns: the link key type

PageScanMode ( )

IMPORT_C TUint8PageScanMode()const

Returns: The Page Scan Mode of the device

PageScanPeriodMode ( )

IMPORT_C TUint8PageScanPeriodMode()const

Returns: the Page Scan Period Mode of the device

PageScanRepMode ( )

IMPORT_C TUint8PageScanRepMode()const

Returns: The Page Scan Repitition Mode of the device

PassKey ( )

IMPORT_C const TBTPinCode &PassKey()const

Return the PIN code.

Returns: TBTPinCode

PassKeyLength ( )

IMPORT_C TUintPassKeyLength()const

Returns: the PassKey length

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.

Returns: TTime of when device last seen

SetAddress ( const TBTDevAddr & )

IMPORT_C voidSetAddress(const TBTDevAddr &aBDAddr)

Set the bluetooth device address.

ParameterDescription
aBDAddrthe address of the device

SetClockOffset ( TUint16 )

IMPORT_C voidSetClockOffset(TUint16aClockOffSet)

Set the clock offset.

ParameterDescription
aClockOffSetthe clockoffset for the device

SetDeviceClass ( TBTDeviceClass )

IMPORT_C voidSetDeviceClass(TBTDeviceClassaDeviceClass)

Set the device class.

ParameterDescription
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

ParameterDescription
aSettingthe security override of the device

SetLinkKey ( const TBTLinkKey & )

IMPORT_C voidSetLinkKey(const TBTLinkKey &aLinkKey)

Set the link key.

SetLinkKey ( const TBTLinkKey &, TBTLinkKeyType )

IMPORT_C voidSetLinkKey(const TBTLinkKey &aLinkKey,
TBTLinkKeyTypeaLinkKeyType
)

Set the link key.

ParameterDescription
aLinkKeyTypethe link key type of the device

SetPageScanMode ( TUint8 )

IMPORT_C voidSetPageScanMode(TUint8aPageScanMode)

Set the page scan mode.

ParameterDescription
aPageScanModethe PSM of the device

SetPageScanPeriodMode ( TUint8 )

IMPORT_C voidSetPageScanPeriodMode(TUint8aPageScanPeriodMode)

Set the page scan period mode.

ParameterDescription
aPageScanPeriodModethe PSPM of the device

SetPageScanRepMode ( TUint8 )

IMPORT_C voidSetPageScanRepMode(TUint8aPageScanRepMode)

Set the page scan repetition mode.

ParameterDescription
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.

See also: TBTNamelessDevice::SetPaired(TBTLinkKeyType aLinkKeyType)

ParameterDescription
aPairedwhether the device is paired

SetPaired ( TBTLinkKeyType )

IMPORT_C voidSetPaired(TBTLinkKeyTypeaLinkKeyType)

Set the link key type because the device is paired

ParameterDescription
aLinkKeyTypethe link key type

SetPassKey ( const TBTPinCode & )

IMPORT_C voidSetPassKey(const TBTPinCode &aPassKey)

Set PIN code for device

ParameterDescription
aPassKeyused for pairing

SetSeen ( const TTime & )

IMPORT_C voidSetSeen(const TTime &aDateTime)

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

ParameterDescription
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.

ParameterDescription
aUiCookieThe 32bit cookie value.

SetUsed ( const TTime & )

IMPORT_C voidSetUsed(const TTime &aDateTime)

Set when the device last connected from or to.

ParameterDescription
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.

Returns: The 32bit cookie value.

Update ( const TBTNamelessDevice & )

IMPORT_C voidUpdate(const TBTNamelessDevice &aDevice)

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

ParameterDescription
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.

Returns: TTime of when device last connected to

operator!= ( const TBTNamelessDevice & )

IMPORT_C TBooloperator!=(const TBTNamelessDevice &aDevice)const

Compare aDevice with this.

ParameterDescription
aDeviceThe device to compare with this.

Returns: EFalse if they match, ETrue if not.

operator= ( const TBTNamelessDevice & )

IMPORT_C TBTNamelessDevice &operator=(const TBTNamelessDevice &aDevice)

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

ParameterDescription
aDeviceThe device to copy.

Returns: this Nameless Device

operator== ( const TBTNamelessDevice & )

IMPORT_C TBooloperator==(const TBTNamelessDevice &aDevice)const

Compare aDevice with this.

ParameterDescription
aDeviceThe device to compare with this.

Returns: ETrue if they match, EFalse if not.