net.yura.mobile.io
Class BTDiscovery

java.lang.Object
  extended by net.yura.mobile.io.BTDiscovery
All Implemented Interfaces:
javax.bluetooth.DiscoveryListener

public abstract class BTDiscovery
extends Object
implements javax.bluetooth.DiscoveryListener

Author:
MarkH

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_ERRO, SERVICE_SEARCH_NO_RECORDS, SERVICE_SEARCH_TERMINATED
 
Constructor Summary
BTDiscovery()
           
 
Method Summary
 void deviceDiscovered(javax.bluetooth.RemoteDevice device, javax.bluetooth.DeviceClass deviceClass)
           
abstract  void handleInquiryCompleted()
           
abstract  void handleMyId(String name, String address)
           
abstract  void handleRemoteId(String name, String address)
           
 void inquiryCompleted(int discoveryType)
           
protected static boolean isSupported()
           
 void servicesDiscovered(int transId, javax.bluetooth.ServiceRecord[] serviceRecords)
           
 void serviceSearchCompleted(int transId, int responseCode)
           
 boolean start(int accessCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTDiscovery

public BTDiscovery()
Method Detail

deviceDiscovered

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

handleInquiryCompleted

public abstract void handleInquiryCompleted()

handleMyId

public abstract void handleMyId(String name,
                                String address)

handleRemoteId

public abstract void handleRemoteId(String name,
                                    String address)

inquiryCompleted

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

isSupported

protected static boolean isSupported()

servicesDiscovered

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

serviceSearchCompleted

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

start

public boolean start(int accessCode)