|
MoSync 3.2.1
|
A class that connects to Environment and handles Bluetooth discovery operations. More...
#include <MAUtil/BluetoothDiscovery.h>
Public Member Functions | |
| BluetoothDiscoverer () | |
| int | startDeviceDiscovery (BluetoothDeviceDiscoveryListener *listener, bool names) |
| int | startServiceDiscovery (const MABtAddr &address, const MAUUID &uuid, BluetoothServiceDiscoveryListener *listener) |
| int | cancel () |
A class that connects to Environment and handles Bluetooth discovery operations.
| int MAUtil::BluetoothDiscoverer::startDeviceDiscovery | ( | BluetoothDeviceDiscoveryListener * | listener, |
| bool | names | ||
| ) |
Starts a device discovery operation.
Will cause a panic if there is no Environment, or if listener is NULL, or if the previous operation has not yet completed.
| listener | A pointer to the object that will receive the events generated by the operation. |
| names | If true, the operation will fetch the names of the remote devices. This will take extra time. If false, names will not be fetched, speeding up the operation. |
| int MAUtil::BluetoothDiscoverer::startServiceDiscovery | ( | const MABtAddr & | address, |
| const MAUUID & | uuid, | ||
| BluetoothServiceDiscoveryListener * | listener | ||
| ) |
Starts a service discovery operation.
Will cause a panic if there is no Environment, or if listener is NULL, or if the previous operation has not yet completed.
| address | The address of the device to query. |
| uuid | The service class UUID to search for. |
| listener | A pointer to the object that will receive the events generated by the operation. |