org.openuat.util
Interface BluetoothPeerManager.PeerEventsListener

All Known Implementing Classes:
BluetoothDemo, BluetoothOpportunisticConnector.BluetoothPeerEventsHandler
Enclosing class:
BluetoothPeerManager

public static interface BluetoothPeerManager.PeerEventsListener

Users of BluetoothPeerManager should most probably implement this interface and register themselves with addListener. They will then receive events about discovered devices and services.

See Also:
BluetoothPeerManager.addListener(org.openuat.util.BluetoothPeerManager.PeerEventsListener)

Method Summary
 void inquiryCompleted(java.util.Vector newDevices)
          This method is called when the inquiry has been completed (either started as a one-shot process or periodically by the background inquiry.
 void serviceListFound(javax.bluetooth.RemoteDevice remoteDevice, java.util.Vector services)
          This method is called when the search for the services of a specific remote device has completed.
 

Method Detail

inquiryCompleted

void inquiryCompleted(java.util.Vector newDevices)
This method is called when the inquiry has been completed (either started as a one-shot process or periodically by the background inquiry. Implementations may then e.g. use

Parameters:
newDevices - This vector contains the list of new devices that have been discovered since the last inquiry completed. If no new devices have been found during this inquiry, the vector is empty. Elements of the vector are of type RemoteDevice.
See Also:
to get a list of devices discovered so far.

serviceListFound

void serviceListFound(javax.bluetooth.RemoteDevice remoteDevice,
                      java.util.Vector services)
This method is called when the search for the services of a specific remote device has completed.

Parameters:
remoteDevice - The remote device for which new services have been found.
services - The list of services of the remote device. Elements of the vector are of type ServiceRecord.


2005-2006, Rene Mayrhofer.