summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/android/lowenergynotificationhub_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-04-10 11:24:45 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-04-15 08:31:03 +0000
commit6bb265e12c1e59078da9e9190bb11f6ac957b2cd (patch)
tree3a9d01c6964b98bb1369a01e940d41bd241dc5d8 /src/bluetooth/android/lowenergynotificationhub_p.h
parent2675df60727b9221d2800b6172fbc05ea5437af0 (diff)
Android: Implement error reporting for char & desc reading
Change-Id: I5652075b4fde4d4927e86f5394baf176f263104f Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/android/lowenergynotificationhub_p.h')
-rw-r--r--src/bluetooth/android/lowenergynotificationhub_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bluetooth/android/lowenergynotificationhub_p.h b/src/bluetooth/android/lowenergynotificationhub_p.h
index b4c67b85..0395f9db 100644
--- a/src/bluetooth/android/lowenergynotificationhub_p.h
+++ b/src/bluetooth/android/lowenergynotificationhub_p.h
@@ -76,6 +76,8 @@ public:
jint errorCode);
static void lowEnergy_characteristicChanged(JNIEnv *, jobject, jlong qtObject,
jint charHandle, jbyteArray data);
+ static void lowEnergy_serviceError(JNIEnv *, jobject, jlong qtObject,
+ jint attributeHandle, int errorCode);
QAndroidJniObject javaObject()
{
@@ -98,6 +100,7 @@ signals:
void descriptorWritten(int descHandle, const QByteArray &data,
QLowEnergyService::ServiceError errorCode);
void characteristicChanged(int charHandle, const QByteArray &data);
+ void serviceError(int attributeHandle, QLowEnergyService::ServiceError errorCode);
public slots:
private: