thinktank.j2me
Class BluetoothServiceDiscover

java.lang.Object
  extended by thinktank.j2me.BluetoothServiceDiscover

public class BluetoothServiceDiscover
extends java.lang.Object

Wrapper that turns the asynchronous Bluetooth Service Discovery process into a synchronous one. Makes programming easier but potentially makes the end user process less responsive as this will lock up the device for about 10 seconds. Best do this in a background thread.

See Also:
BluetoothDeviceDiscover, http://developers.sun.com/mobility/apis/articles/bluetoothobex/

Constructor Summary
BluetoothServiceDiscover(javax.bluetooth.RemoteDevice device, int uuid)
          Convenience method for searching a single service with a single attribute.
BluetoothServiceDiscover(javax.bluetooth.RemoteDevice device, int[] uuidSet)
          TODO: update so that uuids not taken on construction, but on discover
 
Method Summary
 java.util.Vector discover()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothServiceDiscover

public BluetoothServiceDiscover(javax.bluetooth.RemoteDevice device,
                                int uuid)
Convenience method for searching a single service with a single attribute. TODO: update so that uuids not taken on construction, but on discover

Parameters:
device -
uuid -

BluetoothServiceDiscover

public BluetoothServiceDiscover(javax.bluetooth.RemoteDevice device,
                                int[] uuidSet)
TODO: update so that uuids not taken on construction, but on discover

Parameters:
device -
uuidSet -
Method Detail

discover

public java.util.Vector discover()
Returns:
the ServiceRecords for this device