summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluetooth.pro
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-10-29 10:15:54 +0100
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-11-10 10:01:52 +0100
commite0dc61db4af89cce14ade3582ac92e4b713c7982 (patch)
treedbdeffaf2648da1532144367953ce0d72ff86d50 /src/bluetooth/bluetooth.pro
parentf1372ef9a1c4ad5bb7c7bbd94116ec1203fc4243 (diff)
Bluetooth - device (LE) discovery for iOS
Add a QBluetoothDeviceDiscoveryAgent for iOS, implementation is based on Core Bluetooth framework. Low Energy devices scan only. - Ctor with address: set error as invalid bluetooth adapter error, Core Bluetooth framework does not provide access to the local adapter's address. - Adjust a test - we do not have access to the 'local device' information on iOS (no address, no number of devices etc.) - skip the last test in tst_deviceDiscovery. Change-Id: I49080d021c340016aebc548cc8ed758777c66397 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/bluetooth.pro')
-rw-r--r--src/bluetooth/bluetooth.pro19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro
index 2868229d..1b065a2c 100644
--- a/src/bluetooth/bluetooth.pro
+++ b/src/bluetooth/bluetooth.pro
@@ -168,6 +168,25 @@ config_bluez:qtHaveModule(dbus) {
SOURCES -= qbluetoothservicediscoveryagent.cpp
SOURCES -= qbluetoothsocket.cpp
SOURCES -= qbluetoothserver.cpp
+} else:ios {
+ message("iOS is currently an unsupported Bluetooth platform, WIP.")
+
+ DEFINES += QT_IOS_BLUETOOTH
+ LIBS += -framework Foundation -framework CoreBluetooth
+
+ OBJECTIVE_SOURCES += \
+ qbluetoothdevicediscoveryagent_ios.mm
+
+ include(osx/osxbt.pri)
+ SOURCES += \
+ qbluetoothdevicediscoveryagent_p.cpp \
+ qbluetoothlocaldevice_p.cpp \
+ qbluetoothserviceinfo_p.cpp \
+ qbluetoothservicediscoveryagent_p.cpp \
+ qbluetoothsocket_p.cpp \
+ qbluetoothserver_p.cpp \
+ qlowenergycontroller_p.cpp
+ SOURCES -= qbluetoothdevicediscoveryagent.cpp
} else {
message("Unsupported Bluetooth platform, will not build a working QtBluetooth library.")
message("Either no Qt D-Bus found or no BlueZ headers.")