org.wiigee.control
Class WiimoteDeviceDiscovery

java.lang.Object
  extended by org.wiigee.control.WiimoteDeviceDiscovery
All Implemented Interfaces:
javax.bluetooth.DiscoveryListener

public class WiimoteDeviceDiscovery
extends java.lang.Object
implements javax.bluetooth.DiscoveryListener


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
WiimoteDeviceDiscovery(java.lang.Object lock)
           
 
Method Summary
 void deviceDiscovered(javax.bluetooth.RemoteDevice newdevice, javax.bluetooth.DeviceClass devclass)
           
 java.util.Vector<Wiimote> getDiscoveredWiimotes()
           
 void inquiryCompleted(int discType)
           
 boolean isInquirying()
           
 void servicesDiscovered(int arg0, javax.bluetooth.ServiceRecord[] arg1)
           
 void serviceSearchCompleted(int arg0, int arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WiimoteDeviceDiscovery

public WiimoteDeviceDiscovery(java.lang.Object lock)
Method Detail

deviceDiscovered

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

inquiryCompleted

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

serviceSearchCompleted

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

servicesDiscovered

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

isInquirying

public boolean isInquirying()

getDiscoveredWiimotes

public java.util.Vector<Wiimote> getDiscoveredWiimotes()
                                                throws java.io.IOException
Throws:
java.io.IOException