summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller_winrt_new_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_winrt_new_p.h')
-rw-r--r--src/bluetooth/qlowenergycontroller_winrt_new_p.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/bluetooth/qlowenergycontroller_winrt_new_p.h b/src/bluetooth/qlowenergycontroller_winrt_new_p.h
index 8cc5f9ce..c31408be 100644
--- a/src/bluetooth/qlowenergycontroller_winrt_new_p.h
+++ b/src/bluetooth/qlowenergycontroller_winrt_new_p.h
@@ -64,13 +64,6 @@ namespace ABI {
namespace Windows {
namespace Devices {
namespace Bluetooth {
- namespace GenericAttributeProfile {
- class GattDeviceServicesResult;
- struct IGattCharacteristic;
- struct IGattDeviceService;
- struct IGattValueChangedEventArgs;
- }
-
struct IBluetoothLEDevice;
}
}
@@ -82,6 +75,7 @@ namespace ABI {
}
#include <wrl.h>
+#include <windows.devices.bluetooth.genericattributeprofile.h>
#include <functional>
@@ -97,6 +91,7 @@ QLowEnergyControllerPrivate *createWinRTLowEnergyController();
class QLowEnergyControllerPrivateWinRTNew final : public QLowEnergyControllerPrivate
{
+ Q_OBJECT
public:
QLowEnergyControllerPrivateWinRTNew();
~QLowEnergyControllerPrivateWinRTNew() override;
@@ -135,8 +130,11 @@ public:
void addToGenericAttributeList(const QLowEnergyServiceData &service,
QLowEnergyHandle startHandle) override;
-private slots:
+signals:
void characteristicChanged(quint16 charHandle, const QByteArray &data);
+
+private slots:
+ void handleCharacteristicChanged(quint16 charHandle, const QByteArray &data);
void handleServiceHandlerError(const QString &error);
private: