7#include "Ice/PluginFactory.h"
25 using DeviceMap = std::map<std::string, PropertyMap>;
38 const std::string& address,
39 std::function<
void(
const std::string& addr,
const PropertyMap& props)> cb) = 0;
virtual DeviceMap getDevices() const =0
Retrieves a snapshot of all known remote devices.
virtual void startDiscovery(const std::string &address, std::function< void(const std::string &addr, const PropertyMap &props)> cb)=0
Starts Bluetooth device discovery on the adapter with the specified address.
virtual void stopDiscovery(const std::string &address)=0
Stops Bluetooth device discovery on the adapter with the specified address.
Represents the IceBT plug-in object.
Represents a communicator plug-in.
std::map< std::string, std::string > PropertyMap
A name-value map.
std::shared_ptr< Plugin > PluginPtr
A shared pointer to a Plugin.
std::map< std::string, PropertyMap > DeviceMap
A collection of properties for each device.
Ice::PluginFactory btPluginFactory()
Returns the factory for the Bluetooth transport plug-in, IceBT.
The Bluetooth transport plug-in.
Represents a plug-in factory.