diff options
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.h')
-rw-r--r-- | src/bluetooth/qlowenergycontroller.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycontroller.h b/src/bluetooth/qlowenergycontroller.h index 6c4be59e..ec9ddd71 100644 --- a/src/bluetooth/qlowenergycontroller.h +++ b/src/bluetooth/qlowenergycontroller.h @@ -36,6 +36,7 @@ #include <QtCore/QObject> #include <QtBluetooth/QBluetoothAddress> +#include <QtBluetooth/QBluetoothDeviceInfo> #include <QtBluetooth/QBluetoothUuid> #include <QtBluetooth/QLowEnergyService> @@ -51,7 +52,8 @@ public: UnknownError, UnknownRemoteDeviceError, NetworkError, - InvalidBluetoothAdapterError + InvalidBluetoothAdapterError, + ConnectionError }; enum ControllerState { @@ -70,6 +72,8 @@ public: explicit QLowEnergyController(const QBluetoothAddress &remoteDevice, QObject *parent = 0); + explicit QLowEnergyController(const QBluetoothDeviceInfo &remoteDevice, + QObject *parent = 0); explicit QLowEnergyController(const QBluetoothAddress &remoteDevice, const QBluetoothAddress &localDevice, QObject *parent = 0); @@ -110,4 +114,7 @@ private: QT_END_NAMESPACE +Q_DECLARE_METATYPE(QLowEnergyController::ControllerState) +Q_DECLARE_METATYPE(QLowEnergyController::Error) + #endif // QLOWENERGYCONTROLLER_H |