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 /** 20 * Adapter class for {@link ISipSessionListener}. Default implementation of all 21 * callback methods is no-op. 22 * @hide 23 */ 24 public class SipSessionAdapter extends ISipSessionListener.Stub { 25 public void onCalling(ISipSession session) { 26 } 27 28 public void onRinging(ISipSession session, SipProfile caller, 29 String sessionDescription) { 30 } 31 32 public void onRingingBack(ISipSession session) { 33 } 34 35 public void onCallEstablished(ISipSession session, 36 String sessionDescription) { 37 } 38 39 public void onCallEnded(ISipSession session) { 40 } 41 42 public void onCallBusy(ISipSession session) { 43 } 44 45 public void onCallChangeFailed(ISipSession session, int errorCode, 46 String message) { 47 } 48 49 public void onError(ISipSession session, int errorCode, String message) { 50 } 51 52 public void onRegistering(ISipSession session) { 53 } 54 55 public void onRegistrationDone(ISipSession session, int duration) { 56 } 57 58 public void onRegistrationFailed(ISipSession session, int errorCode, 59 String message) { 60 } 61 62 public void onRegistrationTimeout(ISipSession session) { 63 } 64 } 65