Bump module version to 5.4.0

Change-Id: Ie3f13dde04f6a8128a27f8d7996fce0ae46979a2
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
the poster example needs no widgets, but it needs quick

Task-number: QTBUG-36893
Change-Id: Ic77fe07aa450001386be0b2e0d4a99f2e674dbb2
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Don't assert when we discover a new SDP property.

Change-Id: I4beb72aac294511b87ef95c459c52daa85c62499
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Don't refuse the connect attempt while in ServiceLookupState.

QBluetoothSocket::connectToService can be called by itself when it
does an SDP discovery. This affects Bluez only but the bug was introduced
by the Android port.

Change-Id: I1c9b0504acaafc7dbf2fc3d94b0c2c20a0cb8c65
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Socket memory leak fix for QBluetoothServer QNX

listen(const QBluetoothAddress &address, quint16 port) was leaking memory if socket was not in listening state.

This occurred when calling a method multiple times.

Task-number: QTBUG-36626

Change-Id: I6a90f865d6c0e69d9f0b7acf0d200ec71910d448
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QBluetoothServer QNX closing error fix

In case socket was not defined error was emitted and it should not
do anything when closing a socket.

Resetting of d->activeSockets implemented.

Task-number: QTBUG-36626
Change-Id: Id1f37c0019981ffb6d9b5fd00159c118d313f44c
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QNX pairing status fix implemented

Pairing status was returning Unpaired status even if device was paired.

Change-Id: Ib529cc4868f8043f5d83076f96ac9d71acc7c96f
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Iaed8b924608e047760db6f7cc21b6a6eb250cbd6
Bump latest Bluetooth QML API version to 5.4

Change-Id: Ie93caad6c14754e037cc071d8076dce32fb3ebf1
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Bump latest Nfc QML API version to 5.4

Change-Id: I1c4615c3d78985fbd410eafcee5a0a9ab72c8763
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
QNX QBluetoothSocket state fix

Wrong socket state order fix. Due to this, the socket was not keeping
remote device info.

Change-Id: I860f15af9de4eb2e1238989d33bc59d62536f7aa
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Bump latest Nfc QML API version to 5.4

Change-Id: Ie25ae77b71a89e51a95f030f315544f69200bda4
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Revert "Bump latest Nfc QML API version to 5.4"

This reverts commit 4bc3513f18fa6a7345708748590f6a1acda486dd

THis should have gone to dev branch

Change-Id: I231818b3ac31871072a7b4630e14659a7aea78c1
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Max pending connection check for QNX server implemented

Max pending connections was ignored when adding new connections.

Change-Id: I96b1ae87254a772008b18a662faa7bc2bd84164b
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix crash when calling QBluetoothLocalDevice::connectedDevices()

The crash happened on Bluez while no local Bt device is connected.

Change-Id: I418f73b964edc3c302665d4e3374b49a68cfdc46
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QNX Service registered value fix

Once registerService() was called isRegistered() will always return true.
A call to unregisterService() now resets the value.
Cleaning fake server port hash.

Task-number: QTBUG-36626
Change-Id: I452651266192e5773b8330e5f7c02885adff2279
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Remove QBluetoothSocketPrivate::socketDescriptor()

The function is not required as the public accessor function directly
returns the socket descriptor.

Change-Id: I6d64bec7b4f0542ce213dc90dcfe30c3885ed21d
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add copy operator to QBluetoothHostInfo.

The QBluetoothSocket unit test was sometimes failing because of it.

Change-Id: I6071902e1aaa9e1138f071b7f2ce2a8ccb436789
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Utilize new QBluetoothSocket::OperationError on QNX and Bluez

Task-number: QTBUG-36817

Change-Id: I17f7d57537f7f1a5cedd01ce6043cfd6aac26db4
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Android: Fix crash in QBluetoothServer::close()

Java's BluetoothSocketServer.accept() is meant to be interrupted
via BluetoothSocketServer.close(). Unfortunately if the surrounding
thread is a QThread the returning accept call crashes the thread. This
does not happen if it is a Java Thread.

This commit changes the server's private backend to a Java thread.

Task-number: QTBUG-36754
Change-Id: I5aacc5444bbcd1275a11743b6aa04d2b11a5b22b
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>