Merge "IMS: Add new APIs for call barring operations"

This commit is contained in:
Jordan Liu
2017-12-01 00:25:43 +00:00
committed by Gerrit Code Review
3 changed files with 41 additions and 0 deletions

View File

@@ -52,6 +52,15 @@ public class ImsUtImplBase extends IImsUt.Stub {
return -1;
}
/**
* Retrieves the configuration of the call barring for specified service class.
*/
@Override
public int queryCallBarringForServiceClass(int cbType, int serviceClass)
throws RemoteException {
return -1;
}
/**
* Retrieves the configuration of the call forward.
*/
@@ -116,6 +125,15 @@ public class ImsUtImplBase extends IImsUt.Stub {
return -1;
}
/**
* Updates the configuration of the call barring for specified service class.
*/
@Override
public int updateCallBarringForServiceClass(int cbType, int action, String[] barrList,
int serviceClass) throws RemoteException {
return -1;
}
/**
* Updates the configuration of the call forward.
*/

View File

@@ -108,6 +108,12 @@ public interface ImsUtInterface {
*/
public void queryCallBarring(int cbType, Message result);
/**
* Retrieves the configuration of the call barring for specified service class.
* The return value of ((AsyncResult)result.obj) is an array of {@link ImsSsInfo}.
*/
public void queryCallBarring(int cbType, Message result, int serviceClass);
/**
* Retrieves the configuration of the call forward.
* The return value of ((AsyncResult)result.obj) is an array of {@link ImsCallForwardInfo}.
@@ -146,6 +152,12 @@ public interface ImsUtInterface {
public void updateCallBarring(int cbType, int action,
Message result, String[] barrList);
/**
* Modifies the configuration of the call barring for specified service class.
*/
public void updateCallBarring(int cbType, int action, Message result,
String[] barrList, int serviceClass);
/**
* Modifies the configuration of the call forward.
*/

View File

@@ -111,4 +111,15 @@ interface IImsUt {
* Sets the listener.
*/
void setListener(in IImsUtListener listener);
/**
* Retrieves the configuration of the call barring for specified service class.
*/
int queryCallBarringForServiceClass(int cbType, int serviceClass);
/**
* Updates the configuration of the call barring for specified service class.
*/
int updateCallBarringForServiceClass(int cbType, int action, in String[] barrList,
int serviceClass);
}