javax.bluetooth
Class DiscoveryAgent

java.lang.Object
  extended by javax.bluetooth.DiscoveryAgent

public class DiscoveryAgent
extends Object


Field Summary
static int CACHED
           
static int GIAC
           
static int LIAC
           
static int NOT_DISCOVERABLE
           
static int PREKNOWN
           
 
Constructor Summary
DiscoveryAgent()
           
 
Method Summary
 boolean cancelInquiry(DiscoveryListener listener)
           
 boolean cancelServiceSearch(int transID)
           
 RemoteDevice[] retrieveDevices(int option)
           
 int searchServices(int[] attrSet, UUID[] uuidSet, RemoteDevice btDev, DiscoveryListener discListener)
           
 String selectService(UUID uuid, int security, boolean master)
           
 boolean startInquiry(int accessCode, DiscoveryListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_DISCOVERABLE

public static final int NOT_DISCOVERABLE
See Also:
Constant Field Values

GIAC

public static final int GIAC
See Also:
Constant Field Values

LIAC

public static final int LIAC
See Also:
Constant Field Values

CACHED

public static final int CACHED
See Also:
Constant Field Values

PREKNOWN

public static final int PREKNOWN
See Also:
Constant Field Values
Constructor Detail

DiscoveryAgent

public DiscoveryAgent()
Method Detail

retrieveDevices

public RemoteDevice[] retrieveDevices(int option)

startInquiry

public boolean startInquiry(int accessCode,
                            DiscoveryListener listener)
                     throws BluetoothStateException
Throws:
BluetoothStateException

cancelInquiry

public boolean cancelInquiry(DiscoveryListener listener)

searchServices

public int searchServices(int[] attrSet,
                          UUID[] uuidSet,
                          RemoteDevice btDev,
                          DiscoveryListener discListener)
                   throws BluetoothStateException
Throws:
BluetoothStateException

cancelServiceSearch

public boolean cancelServiceSearch(int transID)

selectService

public String selectService(UUID uuid,
                            int security,
                            boolean master)
                     throws BluetoothStateException
Throws:
BluetoothStateException


Copyright © 2006-2007 Jayway AB. All Rights Reserved.