TBTNamelessDevice Class Reference
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 Enumerations |
---|
enum | TBTDeviceSet { 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 } |
Constructor & Destructor Documentation
TBTNamelessDevice()
IMPORT_C | TBTNamelessDevice | ( | ) | |
Member Functions Documentation
CompareTo(const TBTNamelessDevice &)
Compare the attributes of aDevice to *this and return a bitfield of matching attributes. TBTDeviceSet
DeleteLinkKey()
IMPORT_C void | DeleteLinkKey | ( | ) | |
Ensure that the previously known link key is discarded
DeviceClass()
Returns the class of the device
GlobalSecurity()
Retrieve the global security settings.
IsPaired()
IMPORT_C TBool | IsPaired | ( | ) | const |
Check whether the device is paired
IsValidAddress()
IMPORT_C TBool | IsValidAddress | ( | ) | const |
Denotes whether the device address has been set.
IsValidClockOffset()
IMPORT_C TBool | IsValidClockOffset | ( | ) | const |
Denotes whether the clock offset has been set.
IsValidDeviceClass()
IMPORT_C TBool | IsValidDeviceClass | ( | ) | const |
Denotes whether the device class has been set.
IsValidGlobalSecurity()
IMPORT_C TBool | IsValidGlobalSecurity | ( | ) | const |
Denotes whether the global security settings have been set.
IsValidLinkKey()
IMPORT_C TBool | IsValidLinkKey | ( | ) | const |
Denotes whether the link key has been set.
IsValidPageScanMode()
IMPORT_C TBool | IsValidPageScanMode | ( | ) | const |
Denotes whether the page scan mode has been set.
IsValidPageScanPeriodMode()
IMPORT_C TBool | IsValidPageScanPeriodMode | ( | ) | const |
Denotes whether the page scan period mode has been set.
IsValidPageScanRepMode()
IMPORT_C TBool | IsValidPageScanRepMode | ( | ) | const |
Denotes whether the page scan repition mode has been set.
IsValidPaired()
IMPORT_C TBool | IsValidPaired | ( | ) | const |
Denote whether is paired has been set
IsValidPassKey()
IMPORT_C TBool | IsValidPassKey | ( | ) | const |
Denotes whether the PassKey has been set.
IsValidSeen()
IMPORT_C TBool | IsValidSeen | ( | ) | const |
Denotes whether the time last seen has been set.
IsValidUiCookie()
IMPORT_C TBool | IsValidUiCookie | ( | ) | const |
Denotes whether the UI Cookie has been set.
IsValidUsed()
IMPORT_C TBool | IsValidUsed | ( | ) | const |
Denotes whether the time last used has been set.
LinkKeyType()
Return the link key type.
PageScanMode()
IMPORT_C TUint8 | PageScanMode | ( | ) | const |
PageScanPeriodMode()
IMPORT_C TUint8 | PageScanPeriodMode | ( | ) | const |
PageScanRepMode()
IMPORT_C TUint8 | PageScanRepMode | ( | ) | const |
PassKeyLength()
IMPORT_C TUint | PassKeyLength | ( | ) | 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 void | SetAddress | ( | const TBTDevAddr & | aBDAddr | ) | |
Set the bluetooth device address.
Parameters
const TBTDevAddr & aBDAddr | the address of the device |
SetClockOffset(TUint16)
IMPORT_C void | SetClockOffset | ( | TUint16 | aClockOffSet | ) | |
Parameters
TUint16 aClockOffSet | the clockoffset for the device |
SetDeviceClass(TBTDeviceClass)
SetGlobalSecurity(const TBTDeviceSecurity &)
Set the Global security settings for all services used by this device
SetLinkKey(const TBTLinkKey &)
IMPORT_C void | SetLinkKey | ( | const TBTLinkKey & | aLinkKey | ) | |
SetLinkKey(const TBTLinkKey &, TBTLinkKeyType)
SetPageScanMode(TUint8)
IMPORT_C void | SetPageScanMode | ( | TUint8 | aPageScanMode | ) | |
Parameters
TUint8 aPageScanMode | the PSM of the device |
SetPageScanPeriodMode(TUint8)
IMPORT_C void | SetPageScanPeriodMode | ( | TUint8 | aPageScanPeriodMode | ) | |
Set the page scan period mode.
Parameters
TUint8 aPageScanPeriodMode | the PSPM of the device |
SetPageScanRepMode(TUint8)
IMPORT_C void | SetPageScanRepMode | ( | TUint8 | aPageScanRepMode | ) | |
Set the page scan repetition mode.
Parameters
TUint8 aPageScanRepMode | the PSRM of the device |
SetPaired(TBool)
IMPORT_C void | SetPaired | ( | TBool | aPaired | ) | |
Parameters
TBool aPaired | whether the device is paired |
SetPaired(TBTLinkKeyType)
Set the link key type because the device is paired
SetPassKey(const TBTPinCode &)
IMPORT_C void | SetPassKey | ( | const TBTPinCode & | aPassKey | ) | |
SetSeen(const TTime &)
IMPORT_C void | SetSeen | ( | const TTime & | aDateTime | ) | |
Set when last seen in inquiry (not supported by stack at present)
Parameters
const TTime & aDateTime | The date/time stamp. |
SetUiCookie(TUint32)
IMPORT_C void | SetUiCookie | ( | TUint32 | aUiCookie | ) | |
Sets the UI Cookie for the device. The format of the cookie is specific to the UI using the field.
Parameters
TUint32 aUiCookie | The 32bit cookie value. |
SetUsed(const TTime &)
IMPORT_C void | SetUsed | ( | const TTime & | aDateTime | ) | |
Set when the device last connected from or to.
Parameters
const TTime & aDateTime | The date/time stamp. |
UiCookie()
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 &)
Update 'this' with valid details of aDevice, leaving already present settings
Parameters
const TBTNamelessDevice & aDevice | The 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 &)
Compare aDevice with this.
operator=(const TBTNamelessDevice &)
Compiler generated operator= is ok for this class, but ARM compiler warns
operator==(const TBTNamelessDevice &)
Compare aDevice 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
The BT address of the remote device
TBTBasebandParameters
iBasebandParams
TBTDeviceClass
iDeviceClass
The class(es) of the remote device
TBTDeviceSecurity
iGlobalSecurity
The overall security criteria for all services which this device may wish to use
TBTLinkKeyType
iLinkKeyType
TBool
iPaired
Whether this device is paired
TTime
iSeen
when last seen in inquiry
TUint32
iSetMask
Bit mask indicating the data members that have been set
TUint32
iUiCookie
The cookie attached to this device by the UI
TTime
iUsed
when last connect from/to
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.