diff options
author | Misterioso <[email protected]> | 2017-09-27 10:30:22 +0200 |
---|---|---|
committer | petreeftime <[email protected]> | 2017-10-03 08:27:19 +0300 |
commit | 898f6ac604d6266292f74ce95d28ae8b7a7a3a2a (patch) | |
tree | 424e3f99efdad09d4464ea83b2cc2aef5a4a0b10 /src | |
parent | fe5fd110db1659853ffa2df32bcef38cd15e1acd (diff) |
Added Java method BluetoothManager::getDiscovering()
Added a method to check if a discovery process is running directly from the BluetoothManager (completion to startDiscovery and stopDiscovery).
Signed-off-by: Jorge Esteves <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/BluetoothManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/BluetoothManager.cpp b/src/BluetoothManager.cpp index b4cdbd08..1a05776e 100644 --- a/src/BluetoothManager.cpp +++ b/src/BluetoothManager.cpp @@ -391,3 +391,11 @@ bool BluetoothManager::stop_discovery() else return false; } + +bool BluetoothManager::get_discovering() +{ + if (default_adapter != NULL) + return default_adapter->get_discovering(); + else + return false; +} |