QBluetoothTransferReply Class
The QBluetoothTransferReply class stores the response for a data transfer request. More...
Header: | #include <QBluetoothTransferReply> |
qmake: | QT += bluetooth |
Since: | Qt 5.2 |
Inherits: | QObject |
This class was introduced in Qt 5.2.
Public Types
enum | TransferError { NoError, UnknownError, FileNotFoundError, HostNotFoundError, ..., SessionError } |
Public Functions
virtual | ~QBluetoothTransferReply() |
QBluetoothTransferManager * | manager() const |
QBluetoothTransferRequest | request() const |
- 16 public functions inherited from QObject
Protected Functions
QBluetoothTransferReply(QObject *parent = nullptr) |
- 8 protected functions inherited from QObject
Related Non-Members
typedef | QObjectList |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 5 static public members inherited from QObject
Detailed Description
In additional to a copy of the QBluetoothTransferRequest object used to create the request, QBluetoothTransferReply contains the contents of the reply itself.
After the file transfer has started, QBluetoothTransferReply emits the transferProgress() signal, which indicates the progress of the file transfer.
Member Type Documentation
enum QBluetoothTransferReply::TransferError
This enum describes the type of error that occurred
Constant | Value | Description |
---|---|---|
QBluetoothTransferReply::NoError | 0 | No error. |
QBluetoothTransferReply::UnknownError | 1 | Unknown error, no better enum available. |
QBluetoothTransferReply::FileNotFoundError | 2 | Unable to open the file specified. |
QBluetoothTransferReply::HostNotFoundError | 3 | Unable to connect to the target host. |
QBluetoothTransferReply::UserCanceledTransferError | 4 | User terminated the transfer. |
QBluetoothTransferReply::IODeviceNotReadableError | 5 | File was not open before initiating the sending command. |
QBluetoothTransferReply::ResourceBusyError | 6 | Unable to access the resource.. |
QBluetoothTransferReply::SessionError | 7 | An error occurred during the handling of the session. This enum was introduced by Qt 5.4. |
Member Function Documentation
[protected]
QBluetoothTransferReply::QBluetoothTransferReply(QObject *parent = nullptr)
Constructs a new QBluetoothTransferReply with parent.
[virtual]
QBluetoothTransferReply::~QBluetoothTransferReply()
Destroys the QBluetoothTransferReply object.
QBluetoothTransferManager *QBluetoothTransferReply::manager() const
Returns the QBluetoothTransferManager that was used to create this QBluetoothTransferReply object. Initially, it is also the parent object.
QBluetoothTransferRequest QBluetoothTransferReply::request() const
Returns the QBluetoothTransferRequest that was used to create this QBluetoothTransferReply object.