summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserver_qnx.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove QNX/BlackBerry implementation for QtBluetoothAlex Blasche2015-06-171-304/+0
| | | | | | | | | [ChangeLog][QtBluetooth][Platform Specific Changes] Removed support for Blackberry 10. Change-Id: I431c4f34bb10aa3668542df7a8b3403b61bf4705 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-161-6/+6
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I3822a6484e8f7a420330de1cb1aeb0c3d1cf41b7 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Update license headers and add new licensesJani Heikkinen2014-08-241-18/+10
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I7a8b8b787fcae9a178794364efdefe1021d10b1b Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* BlackBerry C API added for OS>10.2.1Nedim Hadzic2014-04-291-6/+53
| | | | | | | | | | | With new OS 10.3 some PPS object paths are changed. Therefore BB C API was used intead of PPS communication in some parts of QtConnectivity. The BB C API is introduced for OS 10.2.1 and newer. Change-Id: I94a21ed61a49a94dd2101990df4801a6925a3ce6 Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
* QNX: Remove nested event loopFabian Bumberger2014-03-241-2/+0
| | | | | | | | Not needed and potentially dangerous. Change-Id: Ia3975455f1fbfbbdff0785a5ba22dad1c58f9858 Reviewed-by: Milian Wolff <milian.wolff@kdab.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix qrfcomm unit testAlex Blasche2014-03-011-0/+17
| | | | | | | | | | The patch also aligns the error behavior of QBluetoothServer::listen() across the various platforms. Task-number: QTBUG-22017 Change-Id: Ic81808c94d060ca07bd125afa842452e53efaec7 Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com> Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
* QNX Service registered value fixNedim Hadzic2014-02-261-1/+4
| | | | | | | | | | 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>
* Max pending connection check for QNX server implementedNedim Hadzic2014-02-261-1/+1
| | | | | | | | 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>
* QNX QBluetoothSocket state fixNedim Hadzic2014-02-261-1/+2
| | | | | | | | 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>
* QBluetoothServer QNX closing error fixNedim Hadzic2014-02-211-10/+15
| | | | | | | | | | | 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>
* Socket memory leak fix for QBluetoothServer QNXNedim Hadzic2014-02-211-3/+3
| | | | | | | | | | | 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 fixesAlex Blasche2014-02-071-1/+1
| | | | | | | | | | | | | | | | | | | 1.) If QBluetoothServer::listen(QBluetoothUuid,QString) fails during service registration we have to ensure that the Server doesn't remain in listening state. 2.) 29de876f55dc96748fdca8dd3fef0c873791796f sets the socket descriptor to -1 when closing the QBluetoothSocket. QBluetothServer treats a value of -1 as error and aborts any call to listen(). This implies that any call to listen() after the first close() would always fail. This patch adds some redundancy and first tries to recreate the socket and only if the re-creation failed exists with an error. 3.) Catch case when user calls listen() on an already listening server. Documentation has been updated to document the behavior. Change-Id: I2df13500e74a9741017f7404f0e0c477c96d5356 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Use QLoggingCategory to categorize the various debug output streamsAlex Blasche2013-12-201-11/+11
| | | | | | | Task-number: QTBUG-32253 Change-Id: I193162407d0fc7eca83689e31f03e1641a494ab0 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Error handling for QBluetoothServerFabian Bumberger2013-09-201-6/+21
| | | | | | Task-number: QTBUG-32669 Change-Id: I0f12b19f7989972b7c8305f6e11a95f7f25a281d Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Unify QBluetoothSoket, QBluetoothServer and QBluetoothServiceInfo protocol enumFabian Bumberger2013-09-201-5/+5
| | | | | Change-Id: I6e66196a599e2cceabc7d93d728ba97361d8999f Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* QNX: Take socketType and serverType into accountFabian Bumberger2013-09-191-1/+4
| | | | | | | Also add a serverType member function in QBluetoothServer Change-Id: I107f73b3943dc84f5c4d2afcb00e303567a67b5d Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove QtBluetooth and QtNfc namespace.Alex Blasche2013-09-091-2/+2
| | | | | | | | This is based on namespace discussions on the Qt project dev mailing list. We continue to use the Qt namespace. Change-Id: I6119d06662f7682c11f42d759f3218be1f5a7d6c Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Merge QRfcommServer and QL2capServer to QBluetoothServerFabian Bumberger2013-08-291-0/+223
Task-number: QTBUG-32722 Change-Id: Ia75ad5af2f81b737a8cca09dba919a7dc0fa0f8a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>