QLowEnergyDescriptorData Class
QLowEnergyDescriptorData クラスは、GATT サービス・データを作成するために使用されます。詳細...
Header: | #include <QLowEnergyDescriptorData> |
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 と値はそれぞれuuid とvalue で指定します。
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
を返す。
© 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.