From 1905841f4008a58932368a7099e370e5758544c4 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 5 Jun 2016 00:51:39 +0200 Subject: initial attempts to work with paired devices --- gatoperipheral.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gatoperipheral.h') diff --git a/gatoperipheral.h b/gatoperipheral.h index 6b7ab5b..67c03a5 100644 --- a/gatoperipheral.h +++ b/gatoperipheral.h @@ -27,7 +27,8 @@ public: ~GatoPeripheral(); enum PeripheralConnectOption { - PeripheralConnectOptionRequireEncryption = 1 << 0 + PeripheralConnectOptionRequireEncryption = 1 << 0, + PeripheralConnectOptionRequirePairing = 2 << 0 }; Q_DECLARE_FLAGS(PeripheralConnectOptions, PeripheralConnectOption) @@ -54,7 +55,7 @@ public: bool advertisesService(const GatoUUID &uuid) const; public slots: - void connectPeripheral(PeripheralConnectOptions options = 0); + bool connectPeripheral(PeripheralConnectOptions options = 0); void disconnectPeripheral(); void discoverServices(); -- cgit v1.2.3