diff options
author | Javier <dev.git@javispedro.com> | 2016-06-05 00:51:39 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2016-06-05 00:51:39 +0200 |
commit | 1905841f4008a58932368a7099e370e5758544c4 (patch) | |
tree | 241b95d68b288b2c54ef0df61096ec5b70e8acf5 /gatoperipheral.h | |
parent | 365f98a9f973f5ead0886073ebcaa9bf7c5f0f47 (diff) | |
download | libgato-1905841f4008a58932368a7099e370e5758544c4.tar.gz libgato-1905841f4008a58932368a7099e370e5758544c4.zip |
initial attempts to work with paired devices
Diffstat (limited to 'gatoperipheral.h')
-rw-r--r-- | gatoperipheral.h | 5 |
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(); |