summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Updated license headersAntti Kokko2016-01-201-14/+20
| | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: I856c13e2a6d4d12c46e1286b0ca1c092ee4608f8 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Bluez5: Sanitize app name to be valid DBus object path nameAlex Blasche2015-12-231-1/+1
| | | | | | | | This may happen when the app name contains for example a dash ('-'). Task-number: QTBUG-49402 Change-Id: I04b289b0723e2979a67c93e335205556bf1eb30e Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-161-7/+7
| | | | | | | | | 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-19/+11
| | | | | | | | | - 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>
* Bluez5: Add service (un)registration supportAlex Blasche2014-06-021-24/+118
| | | | | | | | | | | | | | | | | The Bluez5 DBus API does not permit the selection of the local Bt adapter when registering a service. This means that if the local device has two Bluetooth adapters the service will be advertised by both adapters. This leads to cases where the QBluetoothServer::listen() call binds the socket on one adapter but the remote device tries to connect to the other adapter. For now this is an acceptable behavior since it is rather rare to have two local adapters at the same time. A potential future fix is tracked by QTBUG-39012. Task-number: QTBUG-32085 Change-Id: Ibb24edc5b9d1c25a005aedd98f6fc5d0d11b60f8 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Utilize QStringLiteral where possibleAlex Blasche2014-05-151-47/+47
| | | | | | | | The only exception are generated files and cases where QLatin1String based overloads are used (e.g. during QString comparisons) Change-Id: I6f36789fb8acb3b30c1dc1f8a920b118a979d74f Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Reduce debug output on BluezAlex Blasche2014-02-111-2/+0
| | | | | Change-Id: I82459078c0510d27ae3611e2914b0ec36ff625ed Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Use QLoggingCategory to categorize the various debug output streamsAlex Blasche2013-12-201-5/+8
| | | | | | | Task-number: QTBUG-32253 Change-Id: I193162407d0fc7eca83689e31f03e1641a494ab0 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove private and unused API from QBluetoothServiceInfoPrivateAlex Blasche2013-09-251-15/+0
| | | | | | | | | | | | Presumably this API was intended to update attributes while the service info object is already registered. It was not implemented anywhere. No reason to keep it. Some minor documentation fixes Change-Id: If6b4b7c37d99027d49a7af48c282725228e9a6c7 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix peer to peer communication using two local adapters.Alex Blasche2013-09-251-10/+22
| | | | | | | | | | | | The code assumed to use the default adapter in a variety of places which caused wrong SDP registrations, device searches and peer names. The btchat examples was extended to cope with two local adapters. If there are more than two local adapters they will be ignored. Change-Id: I27d8bce65d943773e4e6cbd86982446fa79664a4 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Lower the verbosity of bluetoothFabian Bumberger2013-09-181-4/+4
| | | | | | | | | Remove some qDebug statements and change qDebugs to qWarning in case of an error. Task-number: QTBUG-32253 Change-Id: Ia647d3f485cae56cc9f9c6725400f5b4617b7bf7 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>
* Fix compiler warningAlex Blasche2013-07-301-1/+1
| | | | | | | | | | | | | qbluetoothserviceinfo_bluez.cpp:87:5: warning: case value ‘33’ not in enumerated type ‘QVariant::Type’ [-Wswitch] qbluetoothserviceinfo_bluez.cpp:81:5: warning: case value ‘34’ not in enumerated type ‘QVariant::Type’ [-Wswitch] qbluetoothserviceinfo_bluez.cpp:67:5: warning: case value ‘36’ not in enumerated type ‘QVariant::Type’ [-Wswitch] qbluetoothserviceinfo_bluez.cpp:60:5: warning: case value ‘37’ not in enumerated type ‘QVariant::Type’ [-Wswitch] qbluetoothserviceinfo_bluez.cpp:57:5: warning: case value ‘43’ not in enumerated type ‘QVariant::Type’ [-Wswitch] Change-Id: Ic5e792119e0676e09e1f4a3b07e5d3defa27c623 Reviewed-by: Michael Zanetti <michael.zanetti@canonical.com> Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Use the getter instead of accessing the value directlyThomas McGuire2013-07-301-0/+5
| | | | | | | | | This fixes a valgrind issue with the dummy backend and sdds the getter to the Bluez backernd. Change-Id: I55c785e01bb428819b8ae9a936b761c3697ecb50 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Update Copyright headersAlex Blasche2013-06-251-1/+1
| | | | | | | | | - Update Digia's copyright year - Add copyright to files without it - Convert old BSD to new LGPL license for auto test code Change-Id: I47f5c871c436f9c2731b235026434448719cc671 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Rename NFC and Bluetooth namespace macros.Aaron McCarthy2013-02-141-2/+2
| | | | | | | | Renamed to the namespace macros to follow what syncqt expects. This fixes missing namespace macro warnings printed by syncqt. Change-Id: I7be5a700e8435a559cb4c2e74938851233095887 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* fix compileOswald Buddenhagen2012-11-281-1/+1
| | | | | | Change-Id: Iab81e3610cb883b1771acd5af7fab91512ca0368 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Peter Hartmann <phartmann@rim.com>
* Refactoring service infoFabian Bumberger2012-11-271-25/+9
| | | | | Change-Id: Ide804f02b68e5bcf811969ed5cfad9c03e8bdbf2 Reviewed-by: Alex <ablasche@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-231-24/+24
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I4f07028d0bf0b3ba4c4649897b80687ea5e51abc Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* removed Nokia specific stuff not needed any moreMichael Zanetti2012-06-261-7/+0
| | | | | Change-Id: I0b2c41f3c971221c65f77f847129ab38b094c31c Reviewed-by: Alex <alex.blasche@nokia.com>
* Extend SPP profile to be used with NOKIA_BT_SERVICESMichael Zanetti2012-04-261-6/+17
| | | | | Change-Id: Ide681b442f50d7b126d93b891b58aba75832b881 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I84f8c423bd7748bbae495fedae696990414cee83 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-201-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I1c6ba5c87f0eca30b6f01f4245a032262d30f8ce Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-051-1/+1
| | | | | | Change-Id: I76920b22a5b386a0f85ec28076da20505c022b6f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* added Connectivity namespaces (QtBluetooth and QtNfc)Michael Zanetti2011-11-111-1/+5
| | | | | | Change-Id: I5f3062c857e657a6d05ab29edfa2f1b48cb173f8 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Initial commit.Michael Zanetti2011-08-241-0/+296
From qt5connectivity.tar.gz, md5 317c149d6f8c07d09632353188582834