QBluetooth Namespace

QBluetooth 名前空間は、Bluetooth に関連するクラスと関数を提供します。詳細...

Header: #include <QBluetooth>
qmake: QT += bluetooth

enum class AttAccessConstraint { AttAuthorizationRequired, AttAuthenticationRequired, AttEncryptionRequired }
flags AttAccessConstraints
QLowEnergyHandle
enum class Security { NoSecurity, Authorization, Authentication, Encryption, Secure }
flags SecurityFlags

詳細説明

型の説明

enum class QBluetooth::AttAccessConstraints
flags QBluetooth::AttAccessConstraints

この列挙型は、ATT 属性を読み書きするために可能な要件を記述します。

定数説明
QBluetooth::AttAccessConstraint::AttAuthorizationRequired0x1クライアントは、属性にアクセスするために ATT サーバーからの認証が必要です。
QBluetooth::AttAccessConstraint::AttAuthenticationRequired0x2クライアントは属性にアクセスするために認証される必要がある。
QBluetooth::AttAccessConstraint::AttEncryptionRequired0x4属性にアクセスできるのは、接続が暗号化されている場合のみです。

AttAccessConstraints型はQFlags<AttAccessConstraint>のtypedefである。AttAccessConstraints値のORの組み合わせを格納します。

QLowEnergyHandle

Bluetooth Low Energy ATT 属性ハンドルのための型定義です。

enum class QBluetooth::Security
flags QBluetooth::SecurityFlags

この enum は、Bluetooth サービスのセキュリティ要件を記述します。

定数説明
QBluetooth::Security::NoSecurity0x00サービスはセキュリティを必要としません。
QBluetooth::Security::Authorization0x01デバイスがAuthorized-Pairedでない限り、サービスにはユーザーによる認証が必要です。
QBluetooth::Security::Authentication0x02サービスには認証が必要です。デバイスはペアリングされている必要があり、デバイスがAuthorized-Pairedでない限り、接続時にユーザーにプロンプトが表示されます。
QBluetooth::Security::Encryption0x04このサービスでは、通信リンクが暗号化されている必要があります。このため、デバイスがペアリングされている必要があります。
QBluetooth::Security::Secure0x08このサービスでは、通信リンクがセキュアである必要があります。Bluetooth 2.1 以上のシンプルペアリングが必要です。レガシーペアリングは許可されません。

SecurityFlags型はQFlags<Security>のtypedefである。Security値のORの組み合わせを格納する。

© 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.