Класс QBluetoothTransferRequest
Класс QBluetoothTransferRequest хранит информацию о запросе на передачу данных. Подробнее...
| Заголовок: | #include <QBluetoothTransferRequest> |
| qmake: | QT += bluetooth |
| С момента: | Qt 5.2 |
Типы
| Перечисление | Attribute { DescriptionAttribute, TimeAttribute, TypeAttribute, LengthAttribute, NameAttribute } |
Общедоступные функции
| QBluetoothTransferRequest(const QBluetoothAddress &address = QBluetoothAddress()) | |
| QBluetoothTransferRequest(const QBluetoothTransferRequest &other) | |
| ~QBluetoothTransferRequest() | |
| QBluetoothAddress | address() const |
| QVariant | attribute(Attribute code, const QVariant &defaultValue = QVariant()) const |
| void | setAttribute(Attribute code, const QVariant &value) |
| bool | operator!=(const QBluetoothTransferRequest &other) const |
| QBluetoothTransferRequest & | operator=(const QBluetoothTransferRequest &other) |
| bool | operator==(const QBluetoothTransferRequest &other) const |
Подробное описание
Класс QBluetoothTransferRequest хранит информацию о запросе на передачу данных.
QBluetoothTransferRequest является частью API Bluetooth Transfer и представляет собой класс, содержащий информацию, необходимую для инициирования передачи по Bluetooth.
См. также QBluetoothTransferReply и QBluetoothTransferManager.
Документация по типам членов
Перечисление QBluetoothTransferRequest::Attribute
Коды атрибутов для QBluetoothTransferRequest и QBluetoothTransferReply.
| Константа | Значение | Описание |
|---|---|---|
QBluetoothTransferRequest::DescriptionAttribute |
0 |
Текстовое описание передаваемого объекта. Может отображаться в пользовательском интерфейсе удаленного устройства. |
QBluetoothTransferRequest::TimeAttribute |
1 |
Атрибут времени передаваемого объекта. |
QBluetoothTransferRequest::TypeAttribute |
2 |
Тип MIME передаваемого объекта. |
QBluetoothTransferRequest::LengthAttribute |
3 |
Длина передаваемого объекта в байтах. |
QBluetoothTransferRequest::NameAttribute |
4 |
Имя передаваемого объекта. Может отображаться в пользовательском интерфейсе удаленного устройства. |
Документация по функциям-членам
QBluetoothTransferRequest::QBluetoothTransferRequest(const QBluetoothAddress &address = QBluetoothAddress())
Создает новый запрос на передачу Bluetooth по устройству с адресом address.
QBluetoothTransferRequest::QBluetoothTransferRequest(const QBluetoothTransferRequest &other)
Создает новый запрос на передачу Bluetooth, являющийся копией other.
QBluetoothTransferRequest::~QBluetoothTransferRequest()
Удаляет запрос на передачу Bluetooth.
QBluetoothAddress QBluetoothTransferRequest::address() const
Возвращает адрес, связанный с запросом на передачу Bluetooth.
QVariant QBluetoothTransferRequest::attribute(Attribute code, const QVariant &defaultValue = QVariant()) const
Возвращает атрибут, связанный с code. Если атрибут не задан, возвращает defaultValue.
См. также setAttribute() и QBluetoothTransferRequest::Attribute.
void QBluetoothTransferRequest::setAttribute(Attribute code, const QVariant &value)
Устанавливает атрибут, связанный с code, в значение value. Если атрибут уже задан, предыдущее значение игнорируется. Если value является недопустимым QVariant, атрибут сбрасывается.
См. также attribute() и QBluetoothTransferRequest::Attribute.
bool QBluetoothTransferRequest::operator!=(const QBluetoothTransferRequest &other) const
Возвращает true, если этот объект не такой же, как other.
См. также operator==().
QBluetoothTransferRequest &QBluetoothTransferRequest::operator=(const QBluetoothTransferRequest &other)
Создает копию other.
bool QBluetoothTransferRequest::operator==(const QBluetoothTransferRequest &other) const
Возвращает true, если этот объект такой же, как other.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qbluetoothtransferrequest.html