summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller_osx_p.h
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-11-25 16:11:48 +0100
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-12-01 12:10:36 +0100
commit63a158b2d53a4f18f118a95796c0386911e1e5fa (patch)
tree0c39dafd71c760fd4fdc6a1fbfc4063aeb000553 /src/bluetooth/qlowenergycontroller_osx_p.h
parentae3d26661aeaa2917ed35e5892648dea4caced04 (diff)
QLowEnergyController - writeDescriptor (OS X/iOS)
Core Bluetooth - based implementation. Change-Id: Ie642a13ae9a4d75401dd10648fac6eeee4123a3b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_osx_p.h')
-rw-r--r--src/bluetooth/qlowenergycontroller_osx_p.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycontroller_osx_p.h b/src/bluetooth/qlowenergycontroller_osx_p.h
index 2aec6200..df25e88a 100644
--- a/src/bluetooth/qlowenergycontroller_osx_p.h
+++ b/src/bluetooth/qlowenergycontroller_osx_p.h
@@ -73,6 +73,8 @@ private:
void serviceDiscoveryFinished(LEServices services) Q_DECL_OVERRIDE;
void serviceDetailsDiscoveryFinished(LEService service) Q_DECL_OVERRIDE;
void characteristicWriteNotification(LECharacteristic ch) Q_DECL_OVERRIDE;
+ void descriptorWriteNotification(QLowEnergyHandle descHandle,
+ const QByteArray &newValue) Q_DECL_OVERRIDE;
void disconnected() Q_DECL_OVERRIDE;
void error(QLowEnergyController::Error errorCode) Q_DECL_OVERRIDE;
void error(const QBluetoothUuid &serviceUuid,
@@ -97,13 +99,19 @@ private:
bool appendValue);
void writeDescriptor(QSharedPointer<QLowEnergyServicePrivate> service,
- QLowEnergyHandle charHandle, const QLowEnergyHandle descriptorHandle,
+ QLowEnergyHandle descriptorHandle,
const QByteArray &newValue);
+ quint16 updateValueOfDescriptor(QLowEnergyHandle charHandle,
+ QLowEnergyHandle descHandle,
+ const QByteArray &value,
+ bool appendValue);
+
// 'Lookup' functions:
QSharedPointer<QLowEnergyServicePrivate> serviceForHandle(QLowEnergyHandle serviceHandle);
QLowEnergyCharacteristic characteristicForHandle(QLowEnergyHandle charHandle);
+ QLowEnergyDescriptor descriptorForHandle(QLowEnergyHandle descriptorHandle);
void setErrorDescription(QLowEnergyController::Error errorCode);
void invalidateServices();