diff options
author | Oleksandr Matasov <ast.or.maar@gmail.com> | 2013-11-11 15:10:02 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-12 13:11:54 +0100 |
commit | af030bfbf86d807bed9511326699c82ccc9d9adb (patch) | |
tree | dbf5b0ca440540fe57eea0b571e460273537a53b /src/bluetooth/qbluetoothlocaldevice.cpp | |
parent | a096dfe555762ed4cee747c99c274bd8d912fe66 (diff) |
Added new API for device "connected" status
The feature allows to know whether QBluetoothLocalDevice
is currently connected to any other device using connectedDevices() method.
Change-Id: I4d1a19ebb0b42efd1fc5d5f0f9e7816aa956fbf4
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/bluetooth/qbluetoothlocaldevice.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothlocaldevice.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice.cpp b/src/bluetooth/qbluetoothlocaldevice.cpp index 9661adcb..fa9057a1 100644 --- a/src/bluetooth/qbluetoothlocaldevice.cpp +++ b/src/bluetooth/qbluetoothlocaldevice.cpp @@ -188,6 +188,27 @@ bool QBluetoothLocalDevice::isValid() const */ /*! + \fn void QBluetoothLocalDevice::deviceConnected(const QBluetoothAddress &address) + \since 5.3 + + A device with \a address is connected with this device. +*/ + +/*! + \fn void QBluetoothLocalDevice::deviceDisconnected(const QBluetoothAddress &address) + \since 5.3 + + A device with \a address is disconnected from this device. +*/ + +/*! + \fn QList<QBluetoothAddress> connectedDevices() const + \since 5.3 + + Returns the list of connected devices. +*/ + +/*! \fn QBluetoothLocalDevice::pairingStatus(const QBluetoothAddress &address) const Returns the current bluetooth pairing status of \a address, if it's unpaired, paired, or paired and authorized. |