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, UserCanceledTransferError, …, SessionError }

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

ConstantValueDescription
QBluetoothTransferReply::NoError0No error.
QBluetoothTransferReply::UnknownError1Unknown error, no better enum available.
QBluetoothTransferReply::FileNotFoundError2Unable to open the file specified.
QBluetoothTransferReply::HostNotFoundError3Unable to connect to the target host.
QBluetoothTransferReply::UserCanceledTransferError4User terminated the transfer.
QBluetoothTransferReply::IODeviceNotReadableError5File was not open before initiating the sending command.
QBluetoothTransferReply::ResourceBusyError6Unable to access the resource..
QBluetoothTransferReply::SessionError7An error occurred during the handling of the session. This enum was introduced by Qt 5.4.