diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-12-02 15:02:47 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-04 14:17:33 +0000 |
commit | 38b765206c352cc88123a03025024b3e5e368a4a (patch) | |
tree | 189a37106251c87d499b1122bafa1b06ca3a4753 /src/bluetooth/qbluetooth.h | |
parent | b0a0b2572a5060c268f96a77716e7ea4e3065da4 (diff) |
Bluetooth LE: Implement ATT access permissions.
Change-Id: I456d083d45569ea8d61f0a659f72646d653143d1
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetooth.h')
-rw-r--r-- | src/bluetooth/qbluetooth.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetooth.h b/src/bluetooth/qbluetooth.h index f448af02..1053b388 100644 --- a/src/bluetooth/qbluetooth.h +++ b/src/bluetooth/qbluetooth.h @@ -39,6 +39,10 @@ QT_BEGIN_NAMESPACE namespace QBluetooth { + +// TODO Qt 6: Merge these two enums? But note that ATT Authorization has no equivalent +// on the socket security level. + enum Security { NoSecurity = 0x00, Authorization = 0x01, @@ -49,6 +53,16 @@ enum Security { Q_DECLARE_FLAGS(SecurityFlags, Security) Q_DECLARE_OPERATORS_FOR_FLAGS(SecurityFlags) + +enum AttAccessConstraint { + AttAuthorizationRequired = 0x1, + AttAuthenticationRequired = 0x2, + AttEncryptionRequired = 0x4, +}; + +Q_DECLARE_FLAGS(AttAccessConstraints, AttAccessConstraint) +Q_DECLARE_OPERATORS_FOR_FLAGS(AttAccessConstraints) + } typedef quint16 QLowEnergyHandle; |