Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
5 #ifndef ICE_BT_PLUGIN_H
6 #define ICE_BT_PLUGIN_H
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
27 typedef std::map<std::string, PropertyMap>
DeviceMap;
29 #ifndef ICE_CPP11_MAPPING
43 virtual void discovered(
const std::string& addr,
const PropertyMap& props) = 0;
64 #ifdef ICE_CPP11_MAPPING
66 std::function<
void(
const std::string& addr,
const PropertyMap& props)> cb) = 0;
68 virtual void startDiscovery(
const std::string& address,
const DiscoveryCallbackPtr& cb) = 0;
#define ICEBT_API
Definition: Plugin.h:16
A communicator plug-in.
Definition: Plugin.h:78
virtual void startDiscovery(const std::string &address, std::function< void(const std::string &addr, const PropertyMap &props)> cb)=0
Start Bluetooth device discovery on the adapter with the specified address.
std::map< std::string, std::string > PropertyMap
A name-value map.
Definition: Plugin.h:24
virtual void stopDiscovery(const std::string &address)=0
Stops Bluetooth device discovery on the adapter with the specified address.
virtual DeviceMap getDevices() const =0
Retrieve a snapshot of all known remote devices.
std::map< std::string, PropertyMap > DeviceMap
A collection of properties for each device.
Definition: Plugin.h:27
ICE_DEFINE_PTR(PluginPtr, Plugin)
Represents the IceBT plug-in object.
Definition: Plugin.h:53
::std::shared_ptr< Plugin > PluginPtr
Definition: Plugin.h:708