org.placelab.spotter
Class BluetoothScan
java.lang.Object
org.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
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BluetoothScan
public BluetoothScan()
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()