QBluetooth Namespace
Der QBluetooth-Namensraum bietet Klassen und Funktionen im Zusammenhang mit Bluetooth. Mehr...
Header: | #include <QBluetooth> |
qmake: | QT += bluetooth |
Typen
enum class | AttAccessConstraint { AttAuthorizationRequired, AttAuthenticationRequired, AttEncryptionRequired } |
flags | AttAccessConstraints |
QLowEnergyHandle | |
enum class | Security { NoSecurity, Authorization, Authentication, Encryption, Secure } |
flags | SecurityFlags |
Typ Dokumentation
enum class QBluetooth::AttAccessConstraint
flags QBluetooth::AttAccessConstraints
Diese Aufzählung beschreibt die möglichen Anforderungen für das Lesen oder Schreiben eines ATT-Attributs.
Konstante | Wert | Beschreibung |
---|---|---|
QBluetooth::AttAccessConstraint::AttAuthorizationRequired | 0x1 | Der Client benötigt eine Autorisierung vom ATT-Server, um auf das Attribut zuzugreifen. |
QBluetooth::AttAccessConstraint::AttAuthenticationRequired | 0x2 | Der Client muss authentifiziert sein, um auf das Attribut zugreifen zu können. |
QBluetooth::AttAccessConstraint::AttEncryptionRequired | 0x4 | Auf das Attribut kann nur zugegriffen werden, wenn die Verbindung verschlüsselt ist. |
Der Typ AttAccessConstraints ist ein Typedef für QFlags<AttAccessConstraint>. Er speichert eine ODER-Kombination von AttAccessConstraint-Werten.
QLowEnergyHandle
Typendefinition für Bluetooth Low Energy ATT-Attribut-Handles.
enum class QBluetooth::Security
flags QBluetooth::SecurityFlags
Diese Aufzählung beschreibt die Sicherheitsanforderungen eines Bluetooth-Dienstes.
Konstante | Wert | Beschreibung |
---|---|---|
QBluetooth::Security::NoSecurity | 0x00 | Der Dienst erfordert keine Sicherheit. |
QBluetooth::Security::Authorization | 0x01 | Der Dienst erfordert eine Autorisierung durch den Benutzer, es sei denn, das Gerät ist autorisiert-gekoppelt. |
QBluetooth::Security::Authentication | 0x02 | Der Dienst erfordert eine Authentifizierung. Das Gerät muss gekoppelt werden, und der Benutzer wird bei der Verbindung aufgefordert, es sei denn, das Gerät ist autorisiert-gekoppelt. |
QBluetooth::Security::Encryption | 0x04 | Für den Dienst muss die Kommunikationsverbindung verschlüsselt sein. Dazu muss das Gerät gepaart sein. |
QBluetooth::Security::Secure | 0x08 | Für den Dienst muss die Kommunikationsverbindung sicher sein. Einfaches Pairing von Bluetooth 2.1 oder höher ist erforderlich. Legacy Pairing ist nicht erlaubt. |
Der Typ SecurityFlags ist ein Typedef für QFlags<Security>. Er speichert eine ODER-Kombination von Sicherheitswerten.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.