diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2019-04-25 10:43:59 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2019-04-25 10:43:59 +0200 |
commit | 80c84c4df0cb8dc5389542dde34317102f7b25b8 (patch) | |
tree | f9dc9f1eb300f84d4283f1dd58d542da71aef155 | |
parent | 1d4cb8a6782b74a379098da58f383aaaf61989bd (diff) |
qlowenergycontroller_winrt_new_p.h: Use forward declarations instead of includes when possible
Change-Id: Ic995631dfc15e34c7f2902bfa850c97671c52367
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | src/bluetooth/qlowenergycontroller_winrt_new.cpp | 1 | ||||
-rw-r--r-- | src/bluetooth/qlowenergycontroller_winrt_new_p.h | 26 |
2 files changed, 23 insertions, 4 deletions
diff --git a/src/bluetooth/qlowenergycontroller_winrt_new.cpp b/src/bluetooth/qlowenergycontroller_winrt_new.cpp index 7bff47be..bb9894ff 100644 --- a/src/bluetooth/qlowenergycontroller_winrt_new.cpp +++ b/src/bluetooth/qlowenergycontroller_winrt_new.cpp @@ -58,6 +58,7 @@ #include <robuffer.h> #include <windows.devices.enumeration.h> #include <windows.devices.bluetooth.h> +#include <windows.devices.bluetooth.genericattributeprofile.h> #include <windows.foundation.collections.h> #include <windows.foundation.metadata.h> #include <windows.storage.streams.h> diff --git a/src/bluetooth/qlowenergycontroller_winrt_new_p.h b/src/bluetooth/qlowenergycontroller_winrt_new_p.h index adb7bbcb..8cc5f9ce 100644 --- a/src/bluetooth/qlowenergycontroller_winrt_new_p.h +++ b/src/bluetooth/qlowenergycontroller_winrt_new_p.h @@ -60,9 +60,28 @@ #include "qlowenergycontroller.h" #include "qlowenergycontrollerbase_p.h" +namespace ABI { + namespace Windows { + namespace Devices { + namespace Bluetooth { + namespace GenericAttributeProfile { + class GattDeviceServicesResult; + struct IGattCharacteristic; + struct IGattDeviceService; + struct IGattValueChangedEventArgs; + } + + struct IBluetoothLEDevice; + } + } + namespace Foundation { + template <typename T> struct IAsyncOperation; + enum class AsyncStatus; + } + } +} + #include <wrl.h> -#include <windows.devices.bluetooth.h> -#include <windows.foundation.collections.h> #include <functional> @@ -78,7 +97,6 @@ QLowEnergyControllerPrivate *createWinRTLowEnergyController(); class QLowEnergyControllerPrivateWinRTNew final : public QLowEnergyControllerPrivate { - Q_OBJECT public: QLowEnergyControllerPrivateWinRTNew(); ~QLowEnergyControllerPrivateWinRTNew() override; @@ -157,7 +175,7 @@ private: void obtainIncludedServices(QSharedPointer<QLowEnergyServicePrivate> servicePointer, Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService> nativeService); HRESULT onServiceDiscoveryFinished(ABI::Windows::Foundation::IAsyncOperation<ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceServicesResult *> *op, - AsyncStatus status); + ABI::Windows::Foundation::AsyncStatus status); }; QT_END_NAMESPACE |