MAUtil::BluetoothDiscoverer Class Reference

#include <MAUtil/BluetoothDiscovery.h>

Inheritance diagram for MAUtil::BluetoothDiscoverer:

MAUtil::BluetoothListener List of all members.

Detailed Description

A class that connects to Environment and handles Bluetooth discovery operations.


Public Member Functions

 BluetoothDiscoverer ()
int startDeviceDiscovery (BluetoothDeviceDiscoveryListener *listener, bool names)
int startServiceDiscovery (const MABtAddr &address, const MAUUID &uuid, BluetoothServiceDiscoveryListener *listener)


Constructor & Destructor Documentation

MAUtil::BluetoothDiscoverer::BluetoothDiscoverer  ) 
 


Member Function Documentation

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.

Parameters:
listener A pointer to the object that will recieve 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.
Returns:
Zero, if the operation started successfully. Less than zero, if the operation failed. In that case, the operation is considered complete and another may be attempted.

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.

Parameters:
address The address of the device to query.
uuid The service class UUID to search for.
listener A pointer to the object that will recieve the events generated by the operation.
Returns:
Zero, if the operation started successfully. Less than zero, if the operation failed. In that case, the operation is considered complete and another may be attempted.


Generated on Sat Feb 13 00:15:39 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO