summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdeviceinfo.h
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2013-10-23 17:33:36 +0200
committerAlex Blasche <alexander.blasche@digia.com>2013-11-04 09:35:01 +0100
commitec61d7b9e82e6d653c02df14f34acdba8fc060db (patch)
treed61e73318c11e0dcae471ee7c1f8ed56397b9f75 /src/bluetooth/qbluetoothdeviceinfo.h
parentb00388ea1448cfd977c54f53d038d1a270562d53 (diff)
Implemented Bluetooth Low Energy gatt service and characteristics discovery
Bluez v4.x does not have total support for LE devices, a new approach, using gatttool command was implemented. Auto-tests and documentation will be in other commits. Change-Id: Iee711cc111199e15956052eebb7593bd3a5e27c8 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdeviceinfo.h')
-rw-r--r--src/bluetooth/qbluetoothdeviceinfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdeviceinfo.h b/src/bluetooth/qbluetoothdeviceinfo.h
index ee8be191..3e403954 100644
--- a/src/bluetooth/qbluetoothdeviceinfo.h
+++ b/src/bluetooth/qbluetoothdeviceinfo.h
@@ -196,6 +196,13 @@ public:
DataUnavailable
};
+ enum CoreConfiguration {
+ BaseRateCoreConfiguration = 0x01,
+ BaseRateAndLowEnergyCoreConfiguration = 0x02,
+ LowEnergyCoreConfiguration = 0x03
+ };
+ Q_DECLARE_FLAGS(CoreConfigurations, CoreConfiguration)
+
QBluetoothDeviceInfo();
QBluetoothDeviceInfo(const QBluetoothAddress &address, const QString &name, quint32 classOfDevice);
QBluetoothDeviceInfo(const QBluetoothDeviceInfo &other);
@@ -223,6 +230,8 @@ public:
void setServiceUuids(const QList<QBluetoothUuid> &uuids, DataCompleteness completeness);
QList<QBluetoothUuid> serviceUuids(DataCompleteness *completeness = 0) const;
DataCompleteness serviceUuidsCompleteness() const;
+ void setCoreConfiguration(const CoreConfiguration &coreConfig);
+ CoreConfiguration coreConfiguration() const;
protected:
QBluetoothDeviceInfoPrivate *d_ptr;