triploa
Class BTConnector
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
public static java.lang.String url
BTConnector
public BTConnector(MainMIDlet m)
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