blob: 6020f2c204ee80957e07108be4f05b18b305f0f6 [file] [log] [blame]
Chung-yih Wang363c2ab2010-08-05 10:21:20 +08001/*
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
19/**
20 * Adapter class for {@link ISipSessionListener}. Default implementation of all
21 * callback methods is no-op.
22 * @hide
23 */
24public class SipSessionAdapter extends ISipSessionListener.Stub {
25 public void onCalling(ISipSession session) {
26 }
27
28 public void onRinging(ISipSession session, SipProfile caller,
Chia-chi Yeh95b15c32010-09-02 22:15:26 +080029 String sessionDescription) {
Chung-yih Wang363c2ab2010-08-05 10:21:20 +080030 }
31
32 public void onRingingBack(ISipSession session) {
33 }
34
Chia-chi Yeh95b15c32010-09-02 22:15:26 +080035 public void onCallEstablished(ISipSession session,
36 String sessionDescription) {
Chung-yih Wang363c2ab2010-08-05 10:21:20 +080037 }
38
39 public void onCallEnded(ISipSession session) {
40 }
41
42 public void onCallBusy(ISipSession session) {
43 }
44
Hung-ying Tyan903e1032010-09-09 20:07:14 +080045 public void onCallChangeFailed(ISipSession session, String errorCode,
Chung-yih Wang363c2ab2010-08-05 10:21:20 +080046 String message) {
47 }
48
Hung-ying Tyan903e1032010-09-09 20:07:14 +080049 public void onError(ISipSession session, String errorCode, String message) {
Chung-yih Wang363c2ab2010-08-05 10:21:20 +080050 }
51
52 public void onRegistering(ISipSession session) {
53 }
54
55 public void onRegistrationDone(ISipSession session, int duration) {
56 }
57
Hung-ying Tyan903e1032010-09-09 20:07:14 +080058 public void onRegistrationFailed(ISipSession session, String errorCode,
Chung-yih Wang363c2ab2010-08-05 10:21:20 +080059 String message) {
60 }
61
62 public void onRegistrationTimeout(ISipSession session) {
63 }
64}