Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QBluetoothTransferRequest Class

The QBluetoothTransferRequest class stores information about a data transfer request. More...

 #include <QBluetoothTransferRequest>

Public Types

enum Attribute { DescriptionAttribute, TimeAttribute, TypeAttribute, LengthAttribute, NameAttribute }

Public Functions

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

Detailed Description

The QBluetoothTransferRequest class stores information about a data transfer request.

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.

Member Type Documentation

enum QBluetoothTransferRequest::Attribute

Attribute codes for QBluetoothTransferRequest and QBluetoothTransferReply.

ConstantValueDescription
QBluetoothTransferRequest::DescriptionAttribute0A textual description of the object being transferred. May be displayed in the UI of the remote device.
QBluetoothTransferRequest::TimeAttribute1Time attribute of the object being transferred.
QBluetoothTransferRequest::TypeAttribute2MIME type of the object being transferred.
QBluetoothTransferRequest::LengthAttribute3Length in bytes of the object being transferred.
QBluetoothTransferRequest::NameAttribute4Name of the object being transferred. May be displayed in the UI of the remote device.

Member Function Documentation

QBluetoothTransferRequest::QBluetoothTransferRequest(const QBluetoothAddress & address)

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

QBluetoothTransferRequest::QBluetoothTransferRequest(const QBluetoothTransferRequest & other)

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

QBluetoothTransferRequest::~QBluetoothTransferRequest()

Destorys the Bluetooth transfer request.

QBluetoothAddress QBluetoothTransferRequest::address() const

Returns the address associated with the Bluetooth transfer request.

QVariant QBluetoothTransferRequest::attribute(Attribute code, const QVariant & defaultValue = QVariant()) const

Returns the attribute associated with code. If the attribute has not been set, it returns defaultValue.

See also setAttribute() and QBluetoothTransferRequest::Attribute.

void QBluetoothTransferRequest::setAttribute(Attribute code, const QVariant & value)

Sets the attribute associated with code to 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.

bool QBluetoothTransferRequest::operator!=(const QBluetoothTransferRequest & other) const

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

See also operator==().

QBluetoothTransferRequest & QBluetoothTransferRequest::operator=(const QBluetoothTransferRequest & other)

Creates a copy of other.

bool QBluetoothTransferRequest::operator==(const QBluetoothTransferRequest & other) const

Returns true if this object is the same as other.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web