Add ability to process notifications and indications

Change-Id: I7e9436b99b84176d490b01605d721bf5eb014fa7
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Port HeartRateListener Example to new API.

Change-Id: If3af869a8e5d380592d24b7482ff8eb34a11e6a0
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Add simpler API to retrieve descriptor/characteristic for certain uuid

This new API is mostly syntactic sugar and reduces the amount of code
to be written by API users.

Change-Id: I51ff1ea706ac97199646d211e39e79c8140ee74b
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Convert QLowEnergyHandle from quint32 to quint16

This is in accordence with the maximal possible handle size
of 0xffff as per Bluetooth spec.

As a side effect processReply() had to be modified since
endHandle (0xffff) + 1 caused a type overrun.

Change-Id: Ibdd0ec49f6f5fba7cf875f92a52659c6961076e9
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Add capability to dectect MTU value of the COM channel

The MTU is still being ignored during the read/write operations. This
will change in later commits.

Change-Id: If13cf949e5258159ec59678e9235de4d248af446
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Ignore unexpected server messages

Some BTLE servers (e.g. the tested CSR development kit) send requests
to the BTLE client although they shouldn't according to the spec.
Most likely they are due to firmware bugs. Too avoid that those messages
confuse the message handlers they are being filtered out (ignored).

Change-Id: I60c75ef9c5316d680ce7119aada2fb1ab6161eba
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Don't try to read characteristic if we cannot even find one

The discovery of the service details immediately stops as no
characteristic means no descriptor, no descriptor value and no
characteristic value.

Change-Id: Ifca5529369d09d67d3840126081b32210102dbde
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Various improvements to lowenergyscanner example

1.) Improves UI flow
2.) Improves error behavior (e.g. device disconnects)
3.) Adds missing signal/model updates whcih caused unexpected UI flow

Change-Id: Icc7edf4945df0e964b5c91b407ce5976a1585b81
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>