1 /* 2 * Copyright (C) 2010 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 android.net.sip; 18 19 import android.app.PendingIntent; 20 import android.net.sip.ISipSession; 21 import android.net.sip.ISipSessionListener; 22 import android.net.sip.SipProfile; 23 24 /** 25 * {@hide} 26 */ 27 interface ISipService { open(in SipProfile localProfile, String opPackageName)28 void open(in SipProfile localProfile, String opPackageName); open3(in SipProfile localProfile, in PendingIntent incomingCallPendingIntent, in ISipSessionListener listener, String opPackageName)29 void open3(in SipProfile localProfile, 30 in PendingIntent incomingCallPendingIntent, 31 in ISipSessionListener listener, String opPackageName); close(in String localProfileUri, String opPackageName)32 void close(in String localProfileUri, String opPackageName); isOpened(String localProfileUri, String opPackageName)33 boolean isOpened(String localProfileUri, String opPackageName); isRegistered(String localProfileUri, String opPackageName)34 boolean isRegistered(String localProfileUri, String opPackageName); setRegistrationListener(String localProfileUri, ISipSessionListener listener, String opPackageName)35 void setRegistrationListener(String localProfileUri, 36 ISipSessionListener listener, String opPackageName); 37 createSession(in SipProfile localProfile, in ISipSessionListener listener, String opPackageName)38 ISipSession createSession(in SipProfile localProfile, 39 in ISipSessionListener listener, String opPackageName); getPendingSession(String callId, String opPackageName)40 ISipSession getPendingSession(String callId, String opPackageName); 41 getListOfProfiles(String opPackageName)42 SipProfile[] getListOfProfiles(String opPackageName); 43 } 44