QLowEnergyDescriptorData Class
QLowEnergyDescriptorData クラスは、GATT サービスデータを作成するために使用されます。詳細...
| ヘッダー: | #include <QLowEnergyDescriptorData> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Bluetooth) target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) |
| qmake: | QT += bluetooth |
- 継承されたメンバーを含む、すべてのメンバーの一覧
- QLowEnergyDescriptorData は「暗黙的に共有されるクラス」の一部です。
パブリック関数
| QLowEnergyDescriptorData() | |
| QLowEnergyDescriptorData(const QBluetoothUuid &uuid, const QByteArray &value) | |
| QLowEnergyDescriptorData(const QLowEnergyDescriptorData &other) | |
| ~QLowEnergyDescriptorData() | |
| bool | isReadable() const |
| bool | isValid() const |
| bool | isWritable() const |
| QBluetooth::AttAccessConstraints | readConstraints() const |
| void | setReadPermissions(bool readable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints()) |
| void | setUuid(const QBluetoothUuid &uuid) |
| void | setValue(const QByteArray &value) |
| void | setWritePermissions(bool writable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints()) |
| void | swap(QLowEnergyDescriptorData &other) |
| QBluetoothUuid | uuid() const |
| QByteArray | value() const |
| QBluetooth::AttAccessConstraints | writeConstraints() const |
| QLowEnergyDescriptorData & | operator=(const QLowEnergyDescriptorData &other) |
関連する非メンバー
| bool | operator!=(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b) |
| bool | operator==(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b) |
詳細な説明
このクラスのオブジェクトは、QLowEnergyCharacteristicData::addDescriptor() を通じてQLowEnergyCharacteristicData オブジェクトに追加される記述子を提供します。
注:アクセス権限に関連するメンバ関数は 、Bluetooth 仕様で値へのアクセスが可能かどうか、またその方法が規定されていないタイプの記述子にのみ適用されます。
QLowEnergyCharacteristicData 、QLowEnergyServiceData 、およびQLowEnergyController::addServiceも参照してください 。
メンバ関数のドキュメント
QLowEnergyDescriptorData::QLowEnergyDescriptorData()
このクラスの新しい無効なオブジェクトを作成します。
QLowEnergyDescriptorData::QLowEnergyDescriptorData(const QBluetoothUuid &uuid, const QByteArray &value)
uuid およびvalue でそれぞれ指定された UUID と値を用いて、このクラスの新しいオブジェクトを作成します。
QLowEnergyDescriptorData::QLowEnergyDescriptorData(const QLowEnergyDescriptorData &other)
other のコピーである、このクラスの新しいオブジェクトを作成します。
[noexcept] QLowEnergyDescriptorData::~QLowEnergyDescriptorData()
このオブジェクトを破棄します。
bool QLowEnergyDescriptorData::isReadable() const
この記述子の値が読み取り可能な場合は `true ` を返し、それ以外の場合は `false ` を返します。
bool QLowEnergyDescriptorData::isValid() const
このオブジェクトにnull以外のUUIDが存在する場合に限り、trueを返します。
bool QLowEnergyDescriptorData::isWritable() const
この記述子の値が書き込み可能であれば `true ` を返し、それ以外の場合は `false ` を返します。
QBluetooth::AttAccessConstraints QLowEnergyDescriptorData::readConstraints() const
この記述子の値を読み取ることができる際の制約を返します。この値は、isReadable() がtrue を返した場合にのみ関連します。
void QLowEnergyDescriptorData::setReadPermissions(bool readable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints())
この記述子の値がreadable であるかどうか、また、そうである場合はどのconstraints の下にあるかを指定します。
setWritePermissions()も参照してください 。
void QLowEnergyDescriptorData::setUuid(const QBluetoothUuid &uuid)
この記述子のUUIDをuuid に設定します。
uuid()も参照してください 。
void QLowEnergyDescriptorData::setValue(const QByteArray &value)
この記述子の値を `value` に設定します。この値は、ここで指定されたとおりにそのままピアデバイスに送信されるため、呼び出し元はエンディアンなどの点に注意する必要があります。
value()も参照してください 。
void QLowEnergyDescriptorData::setWritePermissions(bool writable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints())
この記述子の値がwritable であるかどうか、また、そうである場合はどのconstraints の下にあるかを指定します。
setReadPermissions()も参照してください 。
[noexcept] void QLowEnergyDescriptorData::swap(QLowEnergyDescriptorData &other)
このオブジェクトをother と入れ替えます。
QBluetoothUuid QLowEnergyDescriptorData::uuid() const
この記述子のUUIDを返します。
setUuid()も参照してください 。
QByteArray QLowEnergyDescriptorData::value() const
この記述子の値を返します。
setValue()も参照してください 。
QBluetooth::AttAccessConstraints QLowEnergyDescriptorData::writeConstraints() const
この記述子の値が書き込み可能となる制約を返します。この値は、isWritable() がtrue を返した場合にのみ意味を持ちます。
QLowEnergyDescriptorData &QLowEnergyDescriptorData::operator=(const QLowEnergyDescriptorData &other)
このオブジェクトをother のコピーにし、このオブジェクトの新しい値を返します。
関連する非メンバー
bool operator!=(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b)
a とb のパブリック状態が等しくない場合、true を返し、それ以外の場合はfalse を返します。
bool operator==(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b)
a とb のパブリック状態が等しい場合は `true ` を返し、そうでない場合は `false` を返します。
© 2026 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.