11# if defined(ICE_STATIC_LIBS)
13# elif defined(ICEBT_API_EXPORTS)
14# define ICEBT_API ICE_DECLSPEC_EXPORT
16# define ICEBT_API ICE_DECLSPEC_IMPORT
27typedef std::map<std::string, PropertyMap>
DeviceMap;
29#ifndef ICE_CPP11_MAPPING
64#ifdef ICE_CPP11_MAPPING
66 std::function<
void(
const std::string& addr,
const PropertyMap& props)> cb) = 0;
#define ICEBT_API
Definition Plugin.h:16
#define ICE_DEFINE_PTR(TPtr, T)
Definition Config.h:377
An application can receive discovery notifications by implementing the DiscoveryCallback interface.
Definition Plugin.h:35
virtual void discovered(const std::string &addr, const PropertyMap &props)=0
Called for each discovered device.
Represents the IceBT plug-in object.
Definition Plugin.h:53
virtual DeviceMap getDevices() const =0
Retrieve a snapshot of all known remote devices.
virtual void startDiscovery(const std::string &address, const DiscoveryCallbackPtr &cb)=0
Start 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.
A communicator plug-in.
Definition Plugin.h:198
std::map< std::string, std::string > PropertyMap
A name-value map.
Definition Plugin.h:24
IceUtil::Handle< DiscoveryCallback > DiscoveryCallbackPtr
Definition Plugin.h:45
std::map< std::string, PropertyMap > DeviceMap
A collection of properties for each device.
Definition Plugin.h:27