Convert internal function parameter to const &

Performance improvement

Change-Id: I9565771ab6ed15dccc67d5d7e7d5c02759a40367
Reviewed-by: Nedim Hadzic <nhadzic@blackberry.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Ensure examples behave on default backend and/or with no local Bt device

This patch fixes crashes and ensures that examples give some form of
indication why they are not working.

Change-Id: Id99951e8729c0715505e5fff7448a475979a6406
Reviewed-by: Nedim Hadzic <nhadzic@blackberry.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Doc: Document signals (not handlers) under \qmlsignal

Append the handler names to the end of the corresponding signal doc.

Task-number: QTBUG-35846
Change-Id: I0d1c067e9eca4c3c28489a074a7f0e33759c000a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Qt Bluetooth: Show correct names when compiling the module

Change-Id: I5f761cb428514d56fc88cd27def92defd3b83dd8
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QNX connected state fix

In one case, when connecting to server, the state
is not set to connected state, which makes impossible
to write data to socket later.

Change-Id: Iea4da3ffc162451963db2d0a7bc01fbafe4ebede
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Android: Improve QBluetoothLocalDevice::connectedDevices()

There is no API to get the list of connected Bluetooth devices on
Android. However there are service API's which return a list
of their current clients. In this particular case we find the
GATT related service connections. We use that info to complement
the internal list of connected devices.

Note that although this is using Bluetooth Low Energy related API's
the Qt API does not support this feature at this point in time.

Task-number: QTBUG-36764
Change-Id: Ia8266f3a9d24fd16afdd636ca2d3d0a0c6b2b499
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
QNX: Remove nested event loop

Not needed and potentially dangerous.

Change-Id: Ia3975455f1fbfbbdff0785a5ba22dad1c58f9858
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Remove building of doc snippets on Android

The snippets are built to ensure they remain in a compilable state.
Unfortunately Android's install target installs them to /lib which is not
desirable. The remaining targets are sufficient to check the state.

Task-number: QTBUG-37638
Change-Id: I4bd1b58ad6d7e5bfbb8c1e08d48834049ec9d48e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: If8694cc568502c21a3f7138d91cd67121cd32835
Android: Fix error signal handling for rfcomm sockets

The signal/slot connection actually uses an int as parameter

Change-Id: Ib9221137c36020d71834dca53040e174f855318e
Reviewed-by: Nedim Hadzic <nhadzic@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Doc: Fix doc warning

 examples/bluetooth/picturetransfer/doc/src/picturetransfer.qdoc:28: warning: Can't link to 'FolderListModel'

Change-Id: I384bc4613a7b025c1bc732e9965dc91331d911ae
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Replace double quote with single quote for single characters

Adding single characters to a QString is faster if the characters
are QChars and not QStrings.

Change-Id: I31a9e24b31bad76726231c8d164584abddde6c28
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I93fc84dd750c5d4341518c2a8367d176353decad
Equalize the docs front page layout with qtlocation and qtsensors.

Change-Id: Iedd783ff59a62ca21e61502999dd450392f48644
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
QML PingPong example added

Example presents the socket communication between two Bluetooth
devices. The basic concept is the ping pong game, where coordinate
updates of the ball and pedals are sent via socket.

Change-Id: I61d8eb0baaa11c1485a923bb0a6ae6b89cd0e6a9
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Remove old Bluetooth tennis example

And update the documentation around the removal. The new
ping pong game example is written in QML and much easier to maintain.

Change-Id: I885d0c82b8f6eb8935c8f030ebb0adef9c1afc85
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Implemented sending buffer files in QBluetoothTransferReply QNX

QTemporaryFile did not work since it created temporary file
in the app folder, which was not accessible for sending and
sharing the file.

Task-number: QTBUG-32742

Change-Id: Icf3f30e800976916d3e82a928d04143757bf9afe
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Cleaning headers in QBluetoothTransferReplyQnx class

Change-Id: Ic986a615a48ffe4e8387be8bda755cf7610b1457
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Temporary file copy fix Bluez

If size is -1 it will go in endless while loop.
Added error handling in case QIODevice cannot be read.

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

Change-Id: I98043b03db3bd420d687fd1db3a7ef74f2a4b728