diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-01-22 12:24:01 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-01-25 09:31:49 +0000 |
commit | e55981842b702dced8ed0301ff9550e7d98e8a14 (patch) | |
tree | cf742a883616bb24f87f027885f9357b41b10dfb /src/bluetooth/qlowenergycontroller_bluezdbus_p.h | |
parent | 45ea69635f08f967b31660e2bcd33d3bb8187497 (diff) |
BlueZ: Implements characteristicChanged() notifications
This feature depends on ClientCharacteristicConfiguration descriptor
types which determine whether changed signals are sent or not.
The patch also ensures that cached char values are not
updated/cached when the char is not readable.
Task-number: QTBUG-46819
Change-Id: I841bcaaca60c588eae7d4067b6ead6af28f957e3
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_bluezdbus_p.h')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_bluezdbus_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_bluezdbus_p.h b/src/bluetooth/qlowenergycontroller_bluezdbus_p.h index 7195bfbf..7ac1808f 100644 --- a/src/bluetooth/qlowenergycontroller_bluezdbus_p.h +++ b/src/bluetooth/qlowenergycontroller_bluezdbus_p.h @@ -126,6 +126,9 @@ private: private slots: void devicePropertiesChanged(const QString &interface, const QVariantMap &changedProperties, const QStringList &/*invalidatedProperties*/); + void characteristicPropertiesChanged(QLowEnergyHandle charHandle, const QString &interface, + const QVariantMap &changedProperties, + const QStringList &invalidatedProperties); void interfacesRemoved(const QDBusObjectPath &objectPath, const QStringList &interfaces); void onCharReadFinished(QDBusPendingCallWatcher *call); @@ -145,6 +148,7 @@ private: struct GattCharacteristic { QSharedPointer<OrgBluezGattCharacteristic1Interface> characteristic; + QSharedPointer<OrgFreedesktopDBusPropertiesInterface> charMonitor; QVector<QSharedPointer<OrgBluezGattDescriptor1Interface>> descriptors; }; |