class TBTAccessRequirements |
The access requirements set up by a bluetooth service.
An incoming connection must satisfy these criteria before the connection may proceed. Not spectacularly useful for applications; mainly used by other Bluetooth libraries
Public Member Functions | |
---|---|
TBTAccessRequirements() | |
IMPORT_C TBool | AuthenticationRequired() |
IMPORT_C TBool | AuthorisationRequired() |
IMPORT_C TBool | Denied() |
IMPORT_C TBool | EncryptionRequired() |
IMPORT_C TBluetoothMitmProtection | MitmProtection() |
IMPORT_C TUint | PasskeyMinLength() |
IMPORT_C void | SetAuthentication(TBool) |
IMPORT_C void | SetAuthentication(TBluetoothMitmProtection) |
IMPORT_C void | SetAuthorisation(TBool) |
IMPORT_C void | SetDenied(TBool) |
IMPORT_C void | SetEncryption(TBool) |
IMPORT_C TInt | SetPasskeyMinLength(TUint) |
IMPORT_C TBool | operator==(const TBTAccessRequirements &) |
Private Member Enumerations | |
---|---|
enum | TBTAccessRequirementsMitmProtection { EAccessRequirementsMitmUndefined = 0x00, EAccessRequirementsMitmNotRequired = 0x10, EAccessRequirementsMitmDesired = 0x20, EAccessRequirementsMitmRequired = 0x30 } |
enum | TBTServiceSecuritySettings { EAuthenticate = 0x01, EAuthorise = 0x02, EEncrypt = 0x04, EDenied = 0x08, EMitm = 0x30 } |
Private Attributes | |
---|---|
TUint | iPasskeyMinLength |
TUint8 | iRequirements |
IMPORT_C void | SetAuthentication | ( | TBool | aPreference | ) |
TBool aPreference |
IMPORT_C void | SetAuthentication | ( | TBluetoothMitmProtection | aPreference | ) |
TBluetoothMitmProtection aPreference |
IMPORT_C TInt | SetPasskeyMinLength | ( | TUint | aPasskeyMinLength | ) |
TUint aPasskeyMinLength |
IMPORT_C TBool | operator== | ( | const TBTAccessRequirements & | aRequirements | ) | const |
const TBTAccessRequirements & aRequirements |
EAccessRequirementsMitmUndefined = 0x00 | |
EAccessRequirementsMitmNotRequired = 0x10 | |
EAccessRequirementsMitmDesired = 0x20 | |
EAccessRequirementsMitmRequired = 0x30 |
EAuthenticate = 0x01 | |
EAuthorise = 0x02 | |
EEncrypt = 0x04 | |
EDenied = 0x08 | |
EMitm = 0x30 |