summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/osx/osxbtcentralmanager_p.h
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-10-03 11:22:51 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-10-04 09:22:20 +0000
commit052e7ce371d4719df778ad8b378bcf1af14d294b (patch)
tree4dd88edd4fa8a107cbdf4b058fc881207cebe721 /src/bluetooth/osx/osxbtcentralmanager_p.h
parentfa76dbf2b865f547b57803a0c38c9a86d8eab5e4 (diff)
CoreBluetooth - fix broken builds (macOS, iOS, tvOS, watchOS)
- With recent SDK changes CoreBluetooth is not in IOBluetooth anymore. This makes corebluetoothwrapper_p.h even uglier, now we have to care about v != 10.9 && v < 10.12; v == 10.9; v >= 10.12. - Using osxbluetooth_p.h we can get rid of forward declarations (for Obj-C classes) and weird includes like <IOBluetooth/IOBluetoothRFCOMChannel.h> - use osxbluetooth_p.h instead (and it will correctly include IOBluetooth/IOBluetooth.h etc.). Change-Id: Ia85ef2e2cc1ac7b15a58864ed25d85a0772e5c86 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/osx/osxbtcentralmanager_p.h')
-rw-r--r--src/bluetooth/osx/osxbtcentralmanager_p.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/bluetooth/osx/osxbtcentralmanager_p.h b/src/bluetooth/osx/osxbtcentralmanager_p.h
index 68b32f32..122ee0af 100644
--- a/src/bluetooth/osx/osxbtcentralmanager_p.h
+++ b/src/bluetooth/osx/osxbtcentralmanager_p.h
@@ -49,26 +49,15 @@
#include "qlowenergyservice.h"
#include "qbluetoothuuid.h"
#include "osxbtutility_p.h"
+#include "osxbluetooth_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qglobal.h>
#include <QtCore/qqueue.h>
#include <QtCore/qhash.h>
-// Foundation.h must be included before corebluetoothwrapper_p.h -
-// a workaround for a broken 10.9 SDK.
#include <Foundation/Foundation.h>
-#include "corebluetoothwrapper_p.h"
-
-#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA)
-#include <CoreBluetooth/CBService.h>
-#include <CoreBluetooth/CBCharacteristic.h>
-#include <CoreBluetooth/CBDescriptor.h>
-#include <CoreBluetooth/CBCentralManager.h>
-#include <CoreBluetooth/CBPeripheral.h>
-#endif
-
@class QT_MANGLE_NAMESPACE(OSXBTCentralManager);
QT_BEGIN_NAMESPACE