1af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock/*
2af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * Copyright (C) 2014 The Android Open Source Project
3af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *
4af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * Licensed under the Apache License, Version 2.0 (the "License");
5af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * you may not use this file except in compliance with the License.
6af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * You may obtain a copy of the License at
7af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *
8af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *      http://www.apache.org/licenses/LICENSE-2.0
9af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *
10af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * Unless required by applicable law or agreed to in writing, software
11af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * distributed under the License is distributed on an "AS IS" BASIS,
12af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * See the License for the specific language governing permissions and
14af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * limitations under the License.
15af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock */
16af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock
17af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlockpackage com.android.systemui.statusbar.policy;
18af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock
1951e4dc0a153bd0da197728ce6fe34df662b1cea2Jason Monkpublic interface HotspotController {
20af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    void addCallback(Callback callback);
21af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    void removeCallback(Callback callback);
22af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    boolean isHotspotEnabled();
23af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    boolean isHotspotSupported();
2451e4dc0a153bd0da197728ce6fe34df662b1cea2Jason Monk    void setHotspotEnabled(boolean enabled);
2520ef4024edb5c7ed08a660cea731d47bcf90add5Jason Monk    boolean isProvisioningNeeded();
26af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock
27af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    public interface Callback {
2851e4dc0a153bd0da197728ce6fe34df662b1cea2Jason Monk        void onHotspotChanged(boolean enabled);
29af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    }
30af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock}
31