mt
Class ClienteBT.ClienteBTListener

java.lang.Object
  extended by mt.ClienteBT.ClienteBTListener
All Implemented Interfaces:
javax.bluetooth.DiscoveryListener
Enclosing class:
ClienteBT

 class ClienteBT.ClienteBTListener
extends java.lang.Object
implements javax.bluetooth.DiscoveryListener

Responde ao eventos gerados pela busca por aparelhos (e, para cada aparelho, pela busca do serviço "servidor de miniTruco").

Author:
Chester

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
ClienteBT.ClienteBTListener()
           
 
Method Summary
 void deviceDiscovered(javax.bluetooth.RemoteDevice arg0, javax.bluetooth.DeviceClass arg1)
          Achou um celular (potencialmente servidor), adiciona à lista
 void inquiryCompleted(int arg0)
          Notifica conclusão da busca de dispositivos
 void servicesDiscovered(int idBusca, javax.bluetooth.ServiceRecord[] servicos)
          Achou um serviço (potencialmente um jogo miniTruco aberto), tenta conectar
 void serviceSearchCompleted(int arg0, int arg1)
          Notifica conclusão da busca de serviço
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClienteBT.ClienteBTListener

ClienteBT.ClienteBTListener()
Method Detail

deviceDiscovered

public void deviceDiscovered(javax.bluetooth.RemoteDevice arg0,
                             javax.bluetooth.DeviceClass arg1)
Achou um celular (potencialmente servidor), adiciona à lista

Specified by:
deviceDiscovered in interface javax.bluetooth.DiscoveryListener

servicesDiscovered

public void servicesDiscovered(int idBusca,
                               javax.bluetooth.ServiceRecord[] servicos)
Achou um serviço (potencialmente um jogo miniTruco aberto), tenta conectar

Specified by:
servicesDiscovered in interface javax.bluetooth.DiscoveryListener

inquiryCompleted

public void inquiryCompleted(int arg0)
Notifica conclusão da busca de dispositivos

Specified by:
inquiryCompleted in interface javax.bluetooth.DiscoveryListener

serviceSearchCompleted

public void serviceSearchCompleted(int arg0,
                                   int arg1)
Notifica conclusão da busca de serviço

Specified by:
serviceSearchCompleted in interface javax.bluetooth.DiscoveryListener