IImsRegistrationListener.aidl revision b54d218d8b1c765865d0efb4a40e631f8bfa02de
1f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville/*
2f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * Copyright (c) 2013 The Android Open Source Project
3f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville *
4f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * Licensed under the Apache License, Version 2.0 (the "License");
5f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * you may not use this file except in compliance with the License.
6f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * You may obtain a copy of the License at
7f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville *
8f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville *      http://www.apache.org/licenses/LICENSE-2.0
9f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville *
10f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * Unless required by applicable law or agreed to in writing, software
11f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * distributed under the License is distributed on an "AS IS" BASIS,
12f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * See the License for the specific language governing permissions and
14f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * limitations under the License.
15f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville */
16f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville
17f8458ff9d97f8961d67c41ee107129ecba873f36Wink Savillepackage com.android.ims.internal;
18f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville
19b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumarimport com.android.ims.ImsReasonInfo;
20f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville/**
21f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * A listener type for receiving notifications about the changes to
22f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * the IMS connection(registration).
23f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville *
24f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville * {@hide}
25f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville */
26f8458ff9d97f8961d67c41ee107129ecba873f36Wink Savilleinterface IImsRegistrationListener {
27f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    /**
28f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * Notifies the application when the device is connected to the IMS network.
29f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     */
30f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    void registrationConnected();
31f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville
32f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    /**
33b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumar     * Notifies the application when the device is trying to connect the IMS network.
34b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumar     */
35b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumar    void registrationProgressing();
36b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumar
37b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumar    /**
38f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * Notifies the application when the device is disconnected from the IMS network.
39f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     */
40b54d218d8b1c765865d0efb4a40e631f8bfa02deRekha Kumar    void registrationDisconnected(in ImsReasonInfo imsReasonInfo);
41f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville
42f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    /**
43f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * Notifies the application when its suspended IMS connection is resumed,
44f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * meaning the connection now allows throughput.
45f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     */
46f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    void registrationResumed();
47f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville
48f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    /**
49f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * Notifies the application when its current IMS connection is suspended,
50f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * meaning there is no data throughput.
51f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     */
52f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    void registrationSuspended();
53f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville
54f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    /**
55f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * Notifies the application when its current IMS connection is updated
56f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * since the service setting is changed or the service is added/removed.
57f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     *
58f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * @param serviceClass a service class specified in {@link ImsServiceClass}
59f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     * @param event an event type when this callback is called
60f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     *    If {@code event} is 0, meaning the specified service is removed from the IMS connection.
61f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     *    Else ({@code event} is 1), meaning the specified service is added to the IMS connection.
62f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville     */
63f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville    void registrationServiceCapabilityChanged(int serviceClass, int event);
64ab458a18583e5dc9984210c3b4cc01dabcb1b39fram
65ab458a18583e5dc9984210c3b4cc01dabcb1b39fram    /**
66ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     * Notifies the application when features on a particular service enabled or
67ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     * disabled successfully based on user preferences.
68ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     *
69ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     * @param serviceClass a service class specified in {@link ImsServiceClass}
70ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     * @param enabledFeatures features enabled as defined in com.android.ims.ImsConfig#FeatureConstants.
71ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     * @param disabledFeatures features disabled as defined in com.android.ims.ImsConfig#FeatureConstants.
72ab458a18583e5dc9984210c3b4cc01dabcb1b39fram     */
73ab458a18583e5dc9984210c3b4cc01dabcb1b39fram    void registrationFeatureCapabilityChanged(int serviceClass,
74ab458a18583e5dc9984210c3b4cc01dabcb1b39fram            out int[] enabledFeatures, out int[] disabledFeatures);
75f8458ff9d97f8961d67c41ee107129ecba873f36Wink Saville}
76