summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-04-10 11:25:52 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-04-15 08:30:58 +0000
commit2675df60727b9221d2800b6172fbc05ea5437af0 (patch)
tree228bd9b2ca53d208e1e4625837e740972c107dfe
parentcfdd43d118fbc54a3157eb0c9f7c3ab2bf8cc822 (diff)
Fix enum value break
The new values CharacteristicReadError & DescriptorReadError were introduced in Qt 5.5 whereas all other values of the QLEService::ServiceError enum were introduced by Qt 5.4. The new values should not have been put in between the existing enum values as it breaks binary compatibility. Although the QLEService API is tech preview in Qt 5.4, there is no reason to break the compatibility here. In fact this broke the Android implementation as the enum values are hardcoded on the Java side. Change-Id: Ic263550f281e03c90f04ae8ae55d1054c1fd7ea6 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
-rw-r--r--src/bluetooth/qlowenergyservice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bluetooth/qlowenergyservice.h b/src/bluetooth/qlowenergyservice.h
index 78183c05..f3fa076b 100644
--- a/src/bluetooth/qlowenergyservice.h
+++ b/src/bluetooth/qlowenergyservice.h
@@ -55,11 +55,11 @@ public:
enum ServiceError {
NoError = 0,
OperationError,
- CharacteristicReadError,
CharacteristicWriteError,
- DescriptorReadError,
DescriptorWriteError,
- UnknownError
+ UnknownError,
+ CharacteristicReadError,
+ DescriptorReadError
};
enum ServiceState {