Android: Fix broken QBluetoothServer::isListening

The function didn't return true right after calling listen(). This
is caused by the fakeserverport implementation. On Android listen()
doesn't really initiate the listen until
QBluetoothServiceInfo::registerService() was called. We need to check
the fakeServerPort registration to check whether we are listening
already.

[ChangeLog][QtBluetooth][Android] Fixed broken
QBluetoothServer::isListening(). It returned false right after a
successful call to listen().

Change-Id: I24de02602b401ecbbedaafd19d824170a181e03f
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix QBluetoothServiceInfo uni test on platforms using fake server ports

Those platforms require a running QBluetoothServer to satisfy the
prerequisites of calling QBluetoothServiceInfo::registerService().
This requirement is imposed by the public API contract anyway.

Change-Id: I2498030fa2787df9745580cd744886693945fe4f
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Remove nfctestserver test application

It is realted to nfc socket streaming which we don't support at this
stage.

Change-Id: Idae80decad7aa2cdf7eb67b82ddc3e20384df8b8
Reviewed-by: Martin Leutelt <martin.leutelt@basyskom.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add new QML Chat example to Bluetooth module example list

The change makes a few minor cosmetic changes (e.g. sorting by
alphabet and better descriptions) to the overview page too.

Change-Id: I20c6e4735dd531b457fdf52b59f00e8a285a7397
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Improve QML Chat example UI

This makes the example more compliant with general UI color guidelines
and cuts out unnecessary code.

Change-Id: I1cf7df602e586a667ebd052ed45baef8eafb6955
Reviewed-by: Sami Makkonen <sami.makkonen@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Doc: Applied title case to section1 titles

Change-Id: I4bf466a3f6c34b338f741ec003343b572e73d738
Task-number: QTBUG-41250
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
Improve QBluetoothSocket::close() documentation

The disconnected() and stateChanged() signals are delayed which
may easily overlooked by API users. This change specifically points out
this behavior difference.

Change-Id: I3a9e9c656da50c9efe455cd2dbf903a2849e36da
Task-number: QTBUG-41770
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
QBluetoothTransferReply - fix a memory leak.

Fix a potential memory leak in _bluez and _qnx versions of copyToTempFile.

Change-Id: I4c21d25b88620747adaaea8f2da561ca0b3d5df6
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix QBluetoothSocket::isReadable()/isOpen()/isWritable()

Change-Id: Ifd6b5ed8176aa7959ed8da0edc762266aa2bd6fa
Task-number: QTBUG-32704
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix QBluetoothSocket unit test failures on Android

Change-Id: Ib8800fa30c74678c74df9ed943b143ea4cf49bb2
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Catch segfault when passing 0 to QBluetoothTransferManager::put()

Change-Id: I8c659233fd6eb2232d7bd9d904ce14f1de8a9d34
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Improve QBluetoothTransferManager documentation

Change-Id: I918bd3b4134504d5bfc3e160adeb97187186df3d
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Merge remote-tracking branch 'gerrit/5.4' into HEAD

Change-Id: Ic6549b3d728fbc9ad2425d0d6902aeac8c81e6be
QtBluetooth - fix QBluetoothServer (OS X)

isListening on OS X should work with 'fake ports', not
real notifications, so even if all services unregister,
server is still listening.

Change-Id: I70bce4612c2fdb0bbe94e72f2f6d12feeb427fee
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge "Merge remote-tracking branch 'gerrit/5.4' into HEAD" into refs/staging/btle
OSX: Set openMode() when the QBluetoothSocket connection is established

Also, set openMode to NotOpen in close/abort and in error handlers.

Change-Id: Ia9b9d4896efbc7b4059fb4339ba2dc83cd8d2f8d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>