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  · 

Qt Bluetooth C++ API

An API enabling basic Bluetooth operations like scanning for Devices and connecting them. More...

Namespaces

QBluetooth

Classes and functions related to Bluetooth

Classes

QBluetoothAddress

Assigns an address to the Bluetooth device

QBluetoothDeviceDiscoveryAgent

Discovers the Bluetooth devices nearby

QBluetoothDeviceInfo

Stores information about the Bluetooth device

QBluetoothLocalDevice

Enables access to the local Bluetooth device

QBluetoothServiceDiscoveryAgent

Enables you to query for Bluetooth services

QBluetoothServiceInfo

Enables access to the attributes of a Bluetooth service

QBluetoothSocket

Enables connection to a Bluetooth device running an RFCOMM server

QBluetoothTransferManager

Transfers data to another device using Object Push Profile (OPP)

QBluetoothTransferReply

Stores the response for a data transfer request

QBluetoothTransferRequest

Stores information about a data transfer request

QBluetoothUuid

Generates a UUID for each Bluetooth service

QL2capServer

Allows you to connect to a service using the L2CAP protocol

QRfcommServer

Uses the RFCOMM protocol to communicate with a Bluetooth device

Detailed Description

The Qt Bluetooth C++ API enables an application to scan for devices and connect and interact with them in a more flexible way than the Qt Bluetooth QML API.

Getting Started

To include the Bluetooth classes, use the include directive for the appropriate class. For example:

 #include <qbluetoothlocaldevice.h>

The Qt Bluetooth C++ API is a Qt Add-On API and for thus wrapped in a namespace. To make use of the namespace use:

 QTBLUETOOTH_USE_NAMESPACE

To link against the module, add this line to your qmake .pro file:

 QT += bluetooth

Classes

QBluetoothServiceInfo::Alternative

Stores attributes of a Bluetooth Data Element Alternative

QBluetooth

Classes and functions related to Bluetooth

QBluetoothAddress

Assigns an address to the Bluetooth device

QBluetoothDeviceDiscoveryAgent

Discovers the Bluetooth devices nearby

QBluetoothDeviceInfo

Stores information about the Bluetooth device

QBluetoothLocalDevice

Enables access to the local Bluetooth device

QBluetoothServiceDiscoveryAgent

Enables you to query for Bluetooth services

QBluetoothServiceInfo

Enables access to the attributes of a Bluetooth service

QBluetoothSocket

Enables connection to a Bluetooth device running an RFCOMM server

QBluetoothTransferManager

Transfers data to another device using Object Push Profile (OPP)

QBluetoothTransferReply

Stores the response for a data transfer request

QBluetoothTransferRequest

Stores information about a data transfer request

QBluetoothUuid

Generates a UUID for each Bluetooth service

QL2capServer

Allows you to connect to a service using the L2CAP protocol

QRfcommServer

Uses the RFCOMM protocol to communicate with a Bluetooth device

QBluetoothServiceInfo::Sequence

Stores attributes of a Bluetooth Data Element Sequence

Examples

The following sample applications show examples of API usage:

ExampleDescription
Bluetooth ChatA chat server and client using bluetooth.
Bluetooth TennisThe classic game of Pong. Supports multiplayer over Bluetooth and touch-to-play functionality on devices that support NFC.
Bluetooth File TransferTransfer files between Bluetooth devices.
Bluetooth ScannerScan for Bluetooth devices.
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