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 { onCalling(ISipSession session)25 public void onCalling(ISipSession session) { 26 } 27 onRinging(ISipSession session, SipProfile caller, String sessionDescription)28 public void onRinging(ISipSession session, SipProfile caller, 29 String sessionDescription) { 30 } 31 onRingingBack(ISipSession session)32 public void onRingingBack(ISipSession session) { 33 } 34 onCallEstablished(ISipSession session, String sessionDescription)35 public void onCallEstablished(ISipSession session, 36 String sessionDescription) { 37 } 38 onCallEnded(ISipSession session)39 public void onCallEnded(ISipSession session) { 40 } 41 onCallBusy(ISipSession session)42 public void onCallBusy(ISipSession session) { 43 } 44 onCallTransferring(ISipSession session, String sessionDescription)45 public void onCallTransferring(ISipSession session, 46 String sessionDescription) { 47 } 48 onCallChangeFailed(ISipSession session, int errorCode, String message)49 public void onCallChangeFailed(ISipSession session, int errorCode, 50 String message) { 51 } 52 onError(ISipSession session, int errorCode, String message)53 public void onError(ISipSession session, int errorCode, String message) { 54 } 55 onRegistering(ISipSession session)56 public void onRegistering(ISipSession session) { 57 } 58 onRegistrationDone(ISipSession session, int duration)59 public void onRegistrationDone(ISipSession session, int duration) { 60 } 61 onRegistrationFailed(ISipSession session, int errorCode, String message)62 public void onRegistrationFailed(ISipSession session, int errorCode, 63 String message) { 64 } 65 onRegistrationTimeout(ISipSession session)66 public void onRegistrationTimeout(ISipSession session) { 67 } 68 } 69