summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyservice.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-07-02 10:52:17 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-07-02 16:17:24 +0200
commit3e26211bf0d92fb46a5a5f1830766be2ea832d7b (patch)
tree44e6ea87d749024ee92db421af0f34c64023643d /src/bluetooth/qlowenergyservice.h
parente1fdef843fd8a6d8495bf96810e0ffc32d9ca0f6 (diff)
Support writing of characteristic
Right now we assume that the target characteristic is writable with confirmation response. WriteNoResponse support is still missing. Change-Id: Ie584db43f80a0bf90ec67499772488f509fc3d29 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/bluetooth/qlowenergyservice.h')
-rw-r--r--src/bluetooth/qlowenergyservice.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergyservice.h b/src/bluetooth/qlowenergyservice.h
index 9c53aea7..d26d3fa8 100644
--- a/src/bluetooth/qlowenergyservice.h
+++ b/src/bluetooth/qlowenergyservice.h
@@ -60,7 +60,9 @@ public:
enum ServiceError {
NoError = 0,
- ServiceNotValidError
+ ServiceNotValidError,
+ OperationError,
+ CharacteristicWriteError // emitted when writeCharacteristic() failed
};
enum ServiceState {
@@ -85,6 +87,9 @@ public:
ServiceError error() const;
+ bool contains(const QLowEnergyCharacteristic &characteristic);
+ void writeCharacteristic(const QLowEnergyCharacteristic &characteristic,
+ const QByteArray &newValue);
Q_SIGNALS:
void stateChanged(QLowEnergyService::ServiceState newState);