01: /*
02: *
03: *
04: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
05: * Reserved. Use is subject to license terms.
06: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License version
10: * 2 only, as published by the Free Software Foundation.
11: *
12: * This program is distributed in the hope that it will be useful, but
13: * WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License version 2 for more details (a copy is
16: * included at /legal/license.txt).
17: *
18: * You should have received a copy of the GNU General Public License
19: * version 2 along with this work; if not, write to the Free Software
20: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21: * 02110-1301 USA
22: *
23: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
24: * Clara, CA 95054 or visit www.sun.com if you need additional
25: * information or have any questions.
26: */
27:
28: /*
29: * (c) Copyright 2001, 2002 Motorola, Inc. ALL RIGHTS RESERVED.
30: */
31: package javax.bluetooth;
32:
33: /**
34: * This interface is defined by the JSR-82 specification
35: * <em>Java™ APIs for Bluetooth™ Wireless Technology,
36: * Version 1.1.</em>
37: */
38: // JAVADOC COMMENT ELIDED
39: public interface DiscoveryListener {
40:
41: // JAVADOC COMMENT ELIDED
42: public static final int INQUIRY_COMPLETED = 0x00;
43:
44: // JAVADOC COMMENT ELIDED
45: public static final int INQUIRY_TERMINATED = 0x05;
46:
47: // JAVADOC COMMENT ELIDED
48: public static final int INQUIRY_ERROR = 0x07;
49:
50: // JAVADOC COMMENT ELIDED
51: public static final int SERVICE_SEARCH_COMPLETED = 0x01;
52:
53: // JAVADOC COMMENT ELIDED
54: public static final int SERVICE_SEARCH_TERMINATED = 0x02;
55:
56: // JAVADOC COMMENT ELIDED
57: public static final int SERVICE_SEARCH_ERROR = 0x03;
58:
59: // JAVADOC COMMENT ELIDED
60: public static final int SERVICE_SEARCH_NO_RECORDS = 0x04;
61:
62: // JAVADOC COMMENT ELIDED
63: public static final int SERVICE_SEARCH_DEVICE_NOT_REACHABLE = 0x06;
64:
65: // JAVADOC COMMENT ELIDED
66: public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod);
67:
68: // JAVADOC COMMENT ELIDED
69: public void servicesDiscovered(int transID,
70: ServiceRecord[] servRecord);
71:
72: // JAVADOC COMMENT ELIDED
73: public void serviceSearchCompleted(int transID, int respCode);
74:
75: // JAVADOC COMMENT ELIDED
76: public void inquiryCompleted(int discType);
77: } // end of class 'DiscoveryListener' definition
|