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