1 /* 2 * Copyright (c) 2013 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ims.internal; 18 19 import android.os.Bundle; 20 21 import com.android.ims.internal.IImsUtListener; 22 23 /** 24 * Provides the Ut interface interworking to get/set the supplementary service configuration. 25 * 26 * {@hide} 27 */ 28 interface IImsUt { 29 /** 30 * Closes the object. This object is not usable after being closed. 31 */ 32 void close(); 33 34 /** 35 * Retrieves the configuration of the call barring. 36 */ 37 int queryCallBarring(int cbType); 38 39 /** 40 * Retrieves the configuration of the call forward. 41 */ 42 int queryCallForward(int condition, String number); 43 44 /** 45 * Retrieves the configuration of the call waiting. 46 */ 47 int queryCallWaiting(); 48 49 /** 50 * Retrieves the default CLIR setting. 51 */ 52 int queryCLIR(); 53 54 /** 55 * Retrieves the CLIP call setting. 56 */ 57 int queryCLIP(); 58 59 /** 60 * Retrieves the COLR call setting. 61 */ 62 int queryCOLR(); 63 64 /** 65 * Retrieves the COLP call setting. 66 */ 67 int queryCOLP(); 68 69 /** 70 * Updates or retrieves the supplementary service configuration. 71 */ 72 int transact(in Bundle ssInfo); 73 74 /** 75 * Updates the configuration of the call barring. 76 */ 77 int updateCallBarring(int cbType, boolean enable, in String[] barrList); 78 79 /** 80 * Updates the configuration of the call forward. 81 */ 82 int updateCallForward(int action, int condition, String number, int timeSeconds); 83 84 /** 85 * Updates the configuration of the call waiting. 86 */ 87 int updateCallWaiting(boolean enable); 88 89 /** 90 * Updates the configuration of the CLIR supplementary service. 91 */ 92 int updateCLIR(int clirMode); 93 94 /** 95 * Updates the configuration of the CLIP supplementary service. 96 */ 97 int updateCLIP(boolean enable); 98 99 /** 100 * Updates the configuration of the COLR supplementary service. 101 */ 102 int updateCOLR(int presentation); 103 104 /** 105 * Updates the configuration of the COLP supplementary service. 106 */ 107 int updateCOLP(boolean enable); 108 109 /** 110 * Sets the listener. 111 */ 112 void setListener(in IImsUtListener listener); 113 } 114