summaryrefslogtreecommitdiff
path: root/gatoperipheral.h
diff options
context:
space:
mode:
Diffstat (limited to 'gatoperipheral.h')
-rw-r--r--gatoperipheral.h5
1 files changed, 3 insertions, 2 deletions
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();