QBluetoothTransferRequest

Since: 1.2

#include <QtConnectivity/QBluetoothTransferRequest>

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.


Overview

Protected Attributes Index

QBluetoothTransferRequestPrivate *d_ptr

Public Functions Index

QBluetoothTransferRequest (const QBluetoothAddress &address)
QBluetoothTransferRequest (const QBluetoothTransferRequest &other)
~QBluetoothTransferRequest ()
QBluetoothAddressaddress () const
QVariantattribute (Attribute code, const QVariant &defaultValue=QVariant()) const
booloperator!= (const QBluetoothTransferRequest &other) const
QBluetoothTransferRequest &operator= (const QBluetoothTransferRequest &other)
booloperator== (const QBluetoothTransferRequest &other) const
voidsetAttribute (Attribute code, const QVariant &value)

Public Types

Attribute

DescriptionAttribute A textural description of the object being transferred. May be display in the UI of the remote device. TimeAttribute Time attribute of the object being transferred. TypeAttribute MIME type of the object being transferred. LengthAttribute Length in bytes of the object being transferred. NameAttribute Name of the object being transferred. May be displayed in the UI of the remote device.

DescriptionAttribute
TimeAttribute
TypeAttribute
LengthAttribute
NameAttribute

Protected Attributes

QBluetoothTransferRequestPrivate * d_ptr ()

Public Functions

QBluetoothTransferRequest (

Constructs a new Bluetooth transfer request to the device wit address address.

QBluetoothTransferRequest (

Constructs a new Bluetooth transfer request that is a copy of other.

~QBluetoothTransferRequest ()

Destructor.

QBluetoothAddress address ()

Returns the address associated with the Bluetooth transfer request.

QVariant attribute (

Returns the attribute associated with code code.

If the attribute has not been set, it returns defaultValue.

bool operator!= (

Returns true if this object is not the same as other.

See also:

operator==()

QBluetoothTransferRequest & operator= (

Creates a copy of other.

bool operator== (

Returns true if this object is the same as other.

void setAttribute (

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.

Last modified: 2014-03-13

comments powered by Disqus