17ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk/*
27ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * Copyright (C) 2011 The Android Open Source Project
37ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk *
47ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * Licensed under the Apache License, Version 2.0 (the "License");
57ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * you may not use this file except in compliance with the License.
67ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * You may obtain a copy of the License at
77ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk *
87ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk *      http://www.apache.org/licenses/LICENSE-2.0
97ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk *
107ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * Unless required by applicable law or agreed to in writing, software
117ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * distributed under the License is distributed on an "AS IS" BASIS,
127ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * See the License for the specific language governing permissions and
147ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * limitations under the License.
157ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk */
167ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk
177ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monkpackage com.android.settingslib.bluetooth;
187ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk
197ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk
207ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk/**
217ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * BluetoothCallback provides a callback interface for the settings
227ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk * UI to receive events from {@link BluetoothEventManager}.
237ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk */
247ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monkpublic interface BluetoothCallback {
257ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk    void onBluetoothStateChanged(int bluetoothState);
267ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk    void onScanningStateChanged(boolean started);
277ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk    void onDeviceAdded(CachedBluetoothDevice cachedDevice);
287ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk    void onDeviceDeleted(CachedBluetoothDevice cachedDevice);
297ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk    void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState);
30be3c5dbee66758517a8198f98ed2e20c80af326bJason Monk    void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state);
317ce96b9e610de2782ec5f2af806e7bc0f90c8578Jason Monk}
32