aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/BTDeviceRegistry.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-08-04 06:01:22 +0200
committerSven Gothel <[email protected]>2021-08-04 06:01:22 +0200
commit75df7a20a2c84de38a049974165434a85420b7ba (patch)
treea0a41e9a598d8fa95f696306a422f027fd2b46a7 /api/direct_bt/BTDeviceRegistry.hpp
parente4d18c7c17c1e6356747e5ad17c85ed9a47cc2da (diff)
BTDeviceRegistry: Replace print*() to get*String() and clarify method names (C++ and Java)
Diffstat (limited to 'api/direct_bt/BTDeviceRegistry.hpp')
-rw-r--r--api/direct_bt/BTDeviceRegistry.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/api/direct_bt/BTDeviceRegistry.hpp b/api/direct_bt/BTDeviceRegistry.hpp
index 3879eb2c..58f975a7 100644
--- a/api/direct_bt/BTDeviceRegistry.hpp
+++ b/api/direct_bt/BTDeviceRegistry.hpp
@@ -59,7 +59,7 @@ namespace direct_bt {
bool isWaitingForDevice(const BDAddressAndType &mac, const std::string &name);
bool isWaitingForAnyDevice();
size_t getWaitForDevicesCount();
- void printWaitForDevices(FILE *out, const std::string &msg);
+ std::string getWaitForDevicesString();
/**
* Returns the reference of the current list of DeviceQuery, not a copy.
*/
@@ -111,11 +111,12 @@ namespace direct_bt {
inline bool operator!=(const DeviceID& lhs, const DeviceID& rhs) noexcept
{ return !(lhs == rhs); }
- void addToDevicesProcessed(const BDAddressAndType &a, const std::string& n);
+ void addToProcessedDevices(const BDAddressAndType &a, const std::string& n);
bool isDeviceProcessed(const BDAddressAndType & a);
- size_t getDeviceProcessedCount();
- bool allDevicesProcessed();
- void printDevicesProcessed(FILE *out, const std::string &msg);
+ size_t getProcessedDeviceCount();
+ bool areAllDevicesProcessed();
+ std::string getProcessedDevicesString();
+
/**
* Returns a copy of the current collection of processed DeviceID.
*/
@@ -125,10 +126,10 @@ namespace direct_bt {
*/
void clearProcessedDevices();
- void addToDevicesProcessing(const BDAddressAndType &a, const std::string& n);
- bool removeFromDevicesProcessing(const BDAddressAndType &a);
+ void addToProcessingDevices(const BDAddressAndType &a, const std::string& n);
+ bool removeFromProcessingDevices(const BDAddressAndType &a);
bool isDeviceProcessing(const BDAddressAndType & a);
- size_t getDeviceProcessingCount();
+ size_t getProcessingDeviceCount();
/**
* Returns a copy of the current collection of processing DeviceID.
*/