蓝牙obex会话类
更多...
#include <dbluetoothobexsession.h>
|
void | transferAdded (quint64 transferId) |
| 信号, 当有新的传输对象被创建时被触发
|
|
void | transferRemoved (quint64 transferId) |
| 信号, 当有传输对象被移除时被触发
|
|
void | removed () |
| 信号, 当前会话被移除时被触发
|
|
|
QString | source |
|
QString | destination |
|
QBluetoothUuid | target |
|
QDir | root |
|
ObexSessionInfo | currentSession |
|
◆ capabilities
DExpected< QString > DObexSession::capabilities |
( |
| ) |
|
|
slot |
◆ currentSession()
◆ destination()
QString DObexSession::destination |
( |
| ) |
const |
获取obex会话的传输目标地址
- 返回
- 目标地址字符串
◆ root()
QDir DObexSession::root |
( |
| ) |
const |
传输目标的存放的根目录
- 返回
- 根目录
- 注解
- 对于传输源来说, 本属性除了获取代表路径的字符串不应做其他使用
◆ sendFile
DExpected< quint64 > DObexSession::sendFile |
( |
const QFileInfo & |
file | ) |
const |
|
slot |
发送源设备系统上的文件
- 参数
-
- 返回
- 创建的传输对象的id
◆ source()
QString DObexSession::source |
( |
| ) |
const |
◆ target()
QBluetoothUuid DObexSession::target |
( |
| ) |
const |
目标的Uuid
- 返回
- 一个QBluetoothUuid对象
◆ transferFromId()
DExpected< QSharedPointer< DObexTransfer > > DObexSession::transferFromId |
( |
quint64 |
transferId | ) |
const |
由传输id创建对应的DObexTransfer对象
- 参数
-
- 返回
- DObexTransfer对象
◆ transfers()
DExpected< QList< quint64 > > DObexSession::transfers |
( |
| ) |
const |
获取当前存在的传输对象的id
- 返回
- 由传输对象id组成的列表
该类的文档由以下文件生成: