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

Detaillierte Beschreibung

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.

KonstanteWertBeschreibung
QBluetooth::AttAccessConstraint::AttAuthorizationRequired0x1Der Client benötigt eine Autorisierung vom ATT-Server, um auf das Attribut zuzugreifen.
QBluetooth::AttAccessConstraint::AttAuthenticationRequired0x2Der Client muss authentifiziert sein, um auf das Attribut zugreifen zu können.
QBluetooth::AttAccessConstraint::AttEncryptionRequired0x4Auf 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.

KonstanteWertBeschreibung
QBluetooth::Security::NoSecurity0x00Der Dienst erfordert keine Sicherheit.
QBluetooth::Security::Authorization0x01Der Dienst erfordert eine Autorisierung durch den Benutzer, es sei denn, das Gerät ist autorisiert-gekoppelt.
QBluetooth::Security::Authentication0x02Der 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::Encryption0x04Für den Dienst muss die Kommunikationsverbindung verschlüsselt sein. Dazu muss das Gerät gepaart sein.
QBluetooth::Security::Secure0x08Fü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.