triploa
Class BTConnector

java.lang.Object
  extended by triploa.BTConnector
All Implemented Interfaces:
java.lang.Runnable, javax.bluetooth.DiscoveryListener

public class BTConnector
extends java.lang.Object
implements java.lang.Runnable, javax.bluetooth.DiscoveryListener


Field Summary
static java.lang.String url
           
 
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
BTConnector(MainMIDlet m)
           
 
Method Summary
 void connect(int i)
           
 void deviceDiscovered(javax.bluetooth.RemoteDevice btDevice, javax.bluetooth.DeviceClass cod)
           
 boolean doneSearchingDevices()
           
 boolean doneSearchingServices()
           
 java.lang.String[] getDeviceNames()
           
 java.util.Vector getDevices()
           
 int getSize()
           
 java.lang.String getUrl()
           
 void inquiryCompleted(int discType)
           
 void run()
           
 void servicesDiscovered(int transID, javax.bluetooth.ServiceRecord[] servRecord)
           
 void serviceSearchCompleted(int transID, int respCode)
           
 void startSearch()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public static java.lang.String url
Constructor Detail

BTConnector

public BTConnector(MainMIDlet m)
Method Detail

startSearch

public void startSearch()

getDevices

public java.util.Vector getDevices()

getDeviceNames

public java.lang.String[] getDeviceNames()

getSize

public int getSize()

doneSearchingDevices

public boolean doneSearchingDevices()

doneSearchingServices

public boolean doneSearchingServices()

getUrl

public java.lang.String getUrl()

connect

public void connect(int i)

run

public void run()
Specified by:
run in interface java.lang.Runnable

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