|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbr.org.fito.j8051.bluetooth.BluetoothEngine
public class BluetoothEngine
Suports class for the Bluetooth system
This class have some functions for devices and services search and
suport for creation of the BluetoothConnection Object.
Classe de suporte ao sistema Bluetooth.
Esta classe contém diversas funcionalidades para a busca de dispositivos e
serviços bluetooth e suporte para a criação do objeto BluetoothConnection.
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 | |
---|---|
BluetoothEngine(ResponseListener respList)
Creates a new instance os BluetoothEngine. |
Method Summary | |
---|---|
void |
cancelarBuscaDispositivos()
Cancel the device search. |
void |
cancelarBuscaServicos()
Cancel the service search. |
void |
deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice,
javax.bluetooth.DeviceClass deviceClass)
|
BluetoothConnection |
getBluetoothConnection(javax.bluetooth.RemoteDevice remoteDevice)
Given a RemoteDevice object, creates a bluetooth connection. |
void |
inquiryCompleted(int discType)
|
java.util.Vector |
procurarDispositivos(boolean novaBusca)
Search for bluetooth devices, returning a list of RemoteDevices of all devices found. |
void |
servicesDiscovered(int i,
javax.bluetooth.ServiceRecord[] serviceRecord)
|
void |
serviceSearchCompleted(int transID,
int respCode)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluetoothEngine(ResponseListener respList) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.util.Vector procurarDispositivos(boolean novaBusca) throws java.lang.Exception
java.lang.Exception
public BluetoothConnection getBluetoothConnection(javax.bluetooth.RemoteDevice remoteDevice) throws java.lang.Exception
java.lang.Exception
public void cancelarBuscaDispositivos() throws java.lang.Exception
java.lang.Exception
public void cancelarBuscaServicos() throws java.lang.Exception
java.lang.Exception
public void deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice, javax.bluetooth.DeviceClass deviceClass)
deviceDiscovered
in interface javax.bluetooth.DiscoveryListener
public void servicesDiscovered(int i, javax.bluetooth.ServiceRecord[] serviceRecord)
servicesDiscovered
in interface javax.bluetooth.DiscoveryListener
public void serviceSearchCompleted(int transID, int respCode)
serviceSearchCompleted
in interface javax.bluetooth.DiscoveryListener
public void inquiryCompleted(int discType)
inquiryCompleted
in interface javax.bluetooth.DiscoveryListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |