summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluetooth.pro
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2019-04-26 14:18:26 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2019-06-14 14:21:53 +0200
commit722fde4664b8b3f5f661e37d212c32ba0fb2bbad (patch)
treebc00af5f01f15ed0b74c2d8a9cf2c93405eef6f7 /src/bluetooth/bluetooth.pro
parent50b589b85f1caa68846316e8b3dbe4f8c416775b (diff)
De-duplicate device discovery code (Darwin)
- use the shared *._p.h file/class declaration for the private class - use the shared *.cpp with the public class implementation - get rid of *_ios.mm - iOS/tvOS/watchOS specific implementation and use the shared (by macOS, iOS, tvOS, watchOS) *_darwin.mm source. - get rid of somewhat weird 'isValid' in the private class, it is is not taken care of in the public API anyway and today its whole concept/usage looks (quite) buggy to me. I only have to check that the default controller is not nil and has the state 'ON'. Task-number: QTBUG-75348 Change-Id: I5383e4f8df02ac12f069c2f59e252cb8a200800b Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/bluetooth/bluetooth.pro')
-rw-r--r--src/bluetooth/bluetooth.pro6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro
index 2bcdee12..71c8e6ed 100644
--- a/src/bluetooth/bluetooth.pro
+++ b/src/bluetooth/bluetooth.pro
@@ -162,7 +162,7 @@ qtConfig(bluez) {
include(osx/osxbt.pri)
OBJECTIVE_SOURCES += \
qbluetoothlocaldevice_osx.mm \
- qbluetoothdevicediscoveryagent_osx.mm \
+ qbluetoothdevicediscoveryagent_darwin.mm \
qbluetoothserviceinfo_osx.mm \
qbluetoothservicediscoveryagent_osx.mm \
qbluetoothsocket_osx.mm \
@@ -177,7 +177,6 @@ qtConfig(bluez) {
qbluetoothtransferreply_osx_p.h \
qlowenergycontroller_osx_p.h
- SOURCES -= qbluetoothdevicediscoveryagent.cpp
SOURCES -= qbluetoothserviceinfo.cpp
SOURCES -= qbluetoothservicediscoveryagent.cpp
SOURCES -= qbluetoothsocket.cpp
@@ -192,7 +191,7 @@ qtConfig(bluez) {
LIBS_PRIVATE += -framework Foundation -framework CoreBluetooth
OBJECTIVE_SOURCES += \
- qbluetoothdevicediscoveryagent_ios.mm \
+ qbluetoothdevicediscoveryagent_darwin.mm \
qlowenergycontroller_osx.mm \
qlowenergyservice_osx.mm
@@ -208,7 +207,6 @@ qtConfig(bluez) {
qbluetoothsocket_dummy.cpp \
qbluetoothserver_p.cpp
- SOURCES -= qbluetoothdevicediscoveryagent.cpp
SOURCES -= qlowenergyservice.cpp
SOURCES -= qlowenergycontroller.cpp
SOURCES -= qlowenergycontrollerbase.cpp