The QBluetoothTransferRequest class holds a request to be sent with QBluetoothTransferManager. More...
#include <QBluetoothTransferRequest>
This class was introduced in Qt Mobility 1.2.
enum | Attribute { DescriptionAttribute, TimeAttribute, TypeAttribute, LengthAttribute, NameAttribute } |
QBluetoothTransferRequest ( const QBluetoothAddress & address ) | |
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 |
The QBluetoothTransferRequest class holds a request to be sent with QBluetoothTransferManager.
QBluetoothTransferRequest is part of the Bluetooth Transfer API and is the class holding the information necessary to initiate a transfer over Bluetooth.
See also QBluetoothTransferReply and QBluetoothTransferManager.
Attribute codes for QBluetoothTransferRequest and QBluetoothTransferReply.
Constant | Value | Description |
---|---|---|
QBluetoothTransferRequest::DescriptionAttribute | 0 | A textural description of the object being transferred. May be display in the UI of the remote device. |
QBluetoothTransferRequest::TimeAttribute | 1 | Time attribute of the object being transferred. |
QBluetoothTransferRequest::TypeAttribute | 2 | MIME type of the object being transferred. |
QBluetoothTransferRequest::LengthAttribute | 3 | Length in bytes of the object being transferred. |
QBluetoothTransferRequest::NameAttribute | 4 | Name of the object being transferred. May be displayed in the UI of the remote device. |
Constructs a new Bluetooth transfer request to the device with address address.
Constructs a new Bluetooth transfer request that is a copy of other.
Destorys the Bluetooth transfer request.
Returns the address associated with the Bluetooth transfer request.
Returns the attribute associated with code code. If the attribute has not been set, it returns defaultValue.
See also setAttribute() and QBluetoothTransferRequest::Attribute.
Sets the attribute associated with code code to be value value. If the attribute is already set, the previous value is discarded. If value is an invalid QVariant, the attribute is unset.
See also attribute() and QBluetoothTransferRequest::Attribute.
Returns true if this object is not the same as other.
See also operator==().
Creates a copy of other.
Returns true if this object is the same as other.