Commit Graph

13 Commits

Author SHA1 Message Date
Alex Blasche 673f658832 Remove unused variable
Change-Id: Iaf623ee57ca793381f1d692982def26568accd5a
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2021-04-22 16:01:30 +02:00
Andreas Buhr 75c3a3ee9f rename error signals to errorOccurred
Currently, there is a name clash between the error getter and
the error signal. This leads to extensive use of qOverload or
similar. This patch renames all error signals to errorOccurred
to resolve this.

Task-number: QTBUG-62877
Change-Id: I615e2405f855433b6e142d820072c4d3f35ae28f
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2021-03-22 13:51:28 +01:00
Oliver Wolff 4821972696 qbluetoothlocaldevice_p.cpp: Make sure d_ptr is initialized
Backends that still use qbluetoothlocaldevce_p.cpp (namely ios and winrt)
overload QBluetoothLocalDevicePrivate::isValid. While it does not make a
difference for ios (as false is returned if no d_ptr is initialized) local
device will be seen as invalid on winrt if there is no d_ptr.

Fixes: QTBUG-67090
Change-Id: I82dfa4563be0ed4800f0a8dd2a9ccfc3fe313e3b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2018-11-15 14:37:30 +00:00
Oliver Wolff d7af549666 winrt: Use config feature when checking for winrt backend in auto tests
As the winrt backend may also be used on desktop Windows, checking for
the operating system does no longer work.

While touching these lines deprecated OS X checks were fixed as well.

Task-number: QTBUG-61566
Change-Id: I247979aa63de6a71ac4908bda946d7db1e29b6c3
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2017-08-30 13:33:16 +00:00
Oliver Wolff a027130eae winrt: Fix tst_QBluetoothServer
We cannot obtain information about local bluetooth devices
on winrt.

Change-Id: I7805b68bff38a2a2d049619742880db5bd8d3cef
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2017-08-04 07:58:14 +00:00
Antti Kokko 3821f105a8 Updated license headers
From Qt 5.7 -> tools & applications are lisenced under GPL v3 with some
exceptions, see
http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/
Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one
(in those files which will be under GPL 3 with exceptions)

Change-Id: I37338c968d8cb5a056cd42e1130cfa077b12d164
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
2016-01-20 20:14:38 +00:00
Konstantin Ritt acaab9e642 Port from Q_ENUMS to new macro Q_ENUM
Remove Q_ENUMS in favor of the new Q_ENUM macro which provides
registration as meta enum and a debug stream operator.

Register some enums via Q_ENUM to improve debug output
and types auto-registration.

Change-Id: I31c9535a2de7da1783b4ec967612c02a57cb62ff
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
2015-06-23 08:22:31 +00:00
Jani Heikkinen 7354c6d393 Update copyright headers
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>
2015-02-16 11:48:42 +00:00
Alex Blasche fd88da6bf1 Convert qRegisterMetaType<T>(const char*) to qRegisterMetaType<T>()
This is much safer and cleaner.

[ChangeLog][QtBluetooth][Important Behavior Changes] Q_DECLARE_METATYPE
added for QBluetoothServiceDiscoveryAgent::Error,
QBluetoothSocket::SocketState, QBluetoothSocket::SocketError and
QBluetoothDeviceInfo. This breaks source compatibility if application
code has defined the above metatypes already. The applications
Q_DECLARE_METATYPE must be removed to fix the compile error.

Change-Id: I1c7cb1ee25832b7e5337c9aca6f36b21e8caf22e
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
2015-01-28 07:48:13 +00:00
Timur Pocheptsov 2b0b8344bd QBluetoothServer - auto test on OS X
Modify the test to deal with Bluetooth adapter OFF on OS X.

Change-Id: If45b620bb7a7c86016da0bb1cd04ed60af73662b
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
2014-12-03 16:37:50 +01:00
Timur Pocheptsov 552bdb884b QBluetoothServer - enable auto test on OS X.
Enable test and skip the part, that tries to set host mode and check
the success (setHostMode is a noop on OS X).

Change-Id: Ib2583b9d0990c38445aaa44d62e778f5ac820141
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
2014-10-02 07:30:09 +02:00
Jani Heikkinen ac0b7ac671 Update license headers and add new licenses
- 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>
2014-08-24 17:23:37 +02:00
Alex Blasche 68717ee698 Create QBluetoothServer unit test from QRfcommServer/QL2CAPServer tests
Task-number: QTBUG-22017
Change-Id: I3e5613153d2496567f7afd87c8a0a44c1067a4e7
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
2014-03-03 14:44:51 +01:00