org.placelab.spotter
Class BluetoothScan

java.lang.Object
  extended byorg.placelab.spotter.BluetoothScan
All Implemented Interfaces:
javax.bluetooth.DiscoveryListener

public abstract class BluetoothScan
extends java.lang.Object
implements javax.bluetooth.DiscoveryListener

An abstract class to scan for bluetooth using the JSR-82 bluetooth apis


Field Summary
 
Fields inherited from interface javax.bluetooth.DiscoveryListener
INQUIRY_COMPLETED, INQUIRY_ERROR, INQUIRY_TERMINATED, SERVICE_SEARCH_COMPLETED, SERVICE_SEARCH_DEVICE_NOT_REACHABLE, SERVICE_SEARCH_ERROR, SERVICE_SEARCH_NO_RECORDS, SERVICE_SEARCH_TERMINATED
 
Constructor Summary
BluetoothScan()
           
 
Method Summary
 boolean cancel()
           
 void deviceDiscovered(javax.bluetooth.RemoteDevice btDevice, javax.bluetooth.DeviceClass cod)
           
 boolean getFilterPhones()
           
abstract  void gotReading(BluetoothReading br)
           
 void inquiryCompleted(int discType)
           
abstract  void scanDone()
           
 void servicesDiscovered(int transID, javax.bluetooth.ServiceRecord[] servRecord)
           
 void serviceSearchCompleted(int transID, int respCode)
           
 void setFilterPhones(boolean value)
           
 boolean start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothScan

public BluetoothScan()
Method Detail

gotReading

public abstract void gotReading(BluetoothReading br)

scanDone

public abstract void scanDone()

setFilterPhones

public void setFilterPhones(boolean value)

getFilterPhones

public boolean getFilterPhones()

deviceDiscovered

public void deviceDiscovered(javax.bluetooth.RemoteDevice btDevice,
                             javax.bluetooth.DeviceClass cod)
Specified by:
deviceDiscovered in interface javax.bluetooth.DiscoveryListener

servicesDiscovered

public void servicesDiscovered(int transID,
                               javax.bluetooth.ServiceRecord[] servRecord)
Specified by:
servicesDiscovered in interface javax.bluetooth.DiscoveryListener

serviceSearchCompleted

public void serviceSearchCompleted(int transID,
                                   int respCode)
Specified by:
serviceSearchCompleted in interface javax.bluetooth.DiscoveryListener

inquiryCompleted

public void inquiryCompleted(int discType)
Specified by:
inquiryCompleted in interface javax.bluetooth.DiscoveryListener

start

public boolean start()

cancel

public boolean cancel()