对于蓝牙设备的封装
更多...
#include <dbluetoothdevice.h>
|
void | blockedChanged (bool blocked) |
| 信号, 设备锁定属性改变时触发
|
|
void | connectedChanged (bool connected) |
| 信号, 设备已连接属性改变时触发
|
|
void | pairedChanged (bool servicesResolved) |
| 信号, 设备已配对属性改变时触发
|
|
void | servicesResolvedChanged (bool servicesResolved) |
| 信号, 发现服务解析属性改变时触发
|
|
void | trustedChanged (bool trusted) |
| 信号, 信任设备属性改变时触发
|
|
void | addressTypeChanged (AddressType type) |
| 信号, 地址类型属性改变时触发
|
|
void | aliasChanged (const QString &alias) |
| 信号, 设备别名属性改变时触发
|
|
void | RSSIChanged (qint16 rssi) |
| 信号, 设备信号强调属性改变时触发
|
|
void | removed () |
| 信号, 本设备被移除时触发
|
|
|
bool | blocked |
|
bool | connected |
|
bool | legacyPairing |
|
bool | paired |
|
bool | servicesResolved |
|
bool | trusted |
|
quint64 | adapter |
|
QString | address |
|
AddressType | addressType |
|
QString | alias |
|
QString | name |
|
qint16 | RSSI |
|
QBluetoothDeviceInfo | deviceInfo |
|
QString | icon |
|
quint16 | appearance |
|
|
class | DAdapter |
|
class | DAgentAdaptor |
|
◆ AddressType
◆ adapter()
quint64 DDevice::adapter |
( |
| ) |
const |
◆ address()
QString DDevice::address |
( |
| ) |
const |
◆ addressType()
◆ alias()
QString DDevice::alias |
( |
| ) |
const |
◆ appearance()
quint16 DDevice::appearance |
( |
| ) |
const |
当前设备外观, 数值含义参考这个文档
- 返回
- 代表外观的数值
◆ blocked()
bool DDevice::blocked |
( |
| ) |
const |
◆ cancelPairing
DExpected< void > DDevice::cancelPairing |
( |
| ) |
const |
|
slot |
◆ connectDevice
DExpected< void > DDevice::connectDevice |
( |
| ) |
const |
|
slot |
◆ connected()
bool DDevice::connected |
( |
| ) |
const |
◆ deviceInfo()
QBluetoothDeviceInfo DDevice::deviceInfo |
( |
| ) |
const |
◆ disconnectDevice
DExpected< void > DDevice::disconnectDevice |
( |
| ) |
const |
|
slot |
◆ icon()
QString DDevice::icon |
( |
| ) |
const |
当前设备能用什么图标表示
- 返回
- 图标类型组成的字符串
◆ isValid()
bool DDevice::isValid |
( |
| ) |
const |
当前设备对象是否合法
- 返回
- 代表是否合法的布尔值
- 注解
- 例如设备已移除但对象还没析构
◆ legacyPairing()
bool DDevice::legacyPairing |
( |
| ) |
const |
设备是否支持传统配对
- 返回
- 代表是否支持传统配对的布尔值
◆ name()
QString DDevice::name |
( |
| ) |
const |
◆ pair
DExpected< void > DDevice::pair |
( |
| ) |
const |
|
slot |
◆ paired()
bool DDevice::paired |
( |
| ) |
const |
◆ RSSI()
qint16 DDevice::RSSI |
( |
| ) |
const |
当前设备的信号强度
- 返回
- 代表强度的数值
- 注解
- 此属性只在发现设备时更新
◆ servicesResolved()
bool DDevice::servicesResolved |
( |
| ) |
const |
发现服务是否已解析
- 返回
- 代表发现服务是否已解析的布尔值
◆ trusted()
bool DDevice::trusted |
( |
| ) |
const |
该类的文档由以下文件生成: