5#ifndef DBLUETOOTHOBEXSESSION_H
6#define DBLUETOOTHOBEXSESSION_H
13#include <QBluetoothUuid>
15DBLUETOOTH_BEGIN_NAMESPACE
17using DTK_CORE_NAMESPACE::DExpected;
18using DTK_CORE_NAMESPACE::DObject;
21class DObexSessionPrivate;
32 Q_PROPERTY(QString source READ source CONSTANT)
33 Q_PROPERTY(QString destination READ destination CONSTANT)
34 Q_PROPERTY(QBluetoothUuid target READ target CONSTANT)
35 Q_PROPERTY(QDir root READ root CONSTANT)
38 QString source() const;
39 QString destination() const;
40 QBluetoothUuid target() const;
44 DExpected<QList<quint64>> transfers() const;
45 DExpected<QSharedPointer<
DObexTransfer>> transferFromId(quint64 transferId) const;
48 DExpected<QString> capabilities();
49 DExpected<quint64> sendFile(const QFileInfo &file) const;
52 void transferAdded(quint64 transferId);
53 void transferRemoved(quint64 transferId);
61DBLUETOOTH_END_NAMESPACE
蓝牙obex管理类
Definition: dbluetoothobexmanager.h:22
蓝牙obex会话类
Definition: dbluetoothobexsession.h:24
传输会话的信息
Definition: dbluetoothtypes.h:23