| Chung-yih Wang | 363c2ab | 2010-08-05 10:21:20 +0800 | [diff] [blame] | 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, |
| Chia-chi Yeh | 95b15c3 | 2010-09-02 22:15:26 +0800 | [diff] [blame] | 29 | String sessionDescription) { |
| Chung-yih Wang | 363c2ab | 2010-08-05 10:21:20 +0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | public void onRingingBack(ISipSession session) { |
| 33 | } |
| 34 | |
| Chia-chi Yeh | 95b15c3 | 2010-09-02 22:15:26 +0800 | [diff] [blame] | 35 | public void onCallEstablished(ISipSession session, |
| 36 | String sessionDescription) { |
| Chung-yih Wang | 363c2ab | 2010-08-05 10:21:20 +0800 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | public void onCallEnded(ISipSession session) { |
| 40 | } |
| 41 | |
| 42 | public void onCallBusy(ISipSession session) { |
| 43 | } |
| 44 | |
| Hung-ying Tyan | 903e103 | 2010-09-09 20:07:14 +0800 | [diff] [blame] | 45 | public void onCallChangeFailed(ISipSession session, String errorCode, |
| Chung-yih Wang | 363c2ab | 2010-08-05 10:21:20 +0800 | [diff] [blame] | 46 | String message) { |
| 47 | } |
| 48 | |
| Hung-ying Tyan | 903e103 | 2010-09-09 20:07:14 +0800 | [diff] [blame] | 49 | public void onError(ISipSession session, String errorCode, String message) { |
| Chung-yih Wang | 363c2ab | 2010-08-05 10:21:20 +0800 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | public void onRegistering(ISipSession session) { |
| 53 | } |
| 54 | |
| 55 | public void onRegistrationDone(ISipSession session, int duration) { |
| 56 | } |
| 57 | |
| Hung-ying Tyan | 903e103 | 2010-09-09 20:07:14 +0800 | [diff] [blame] | 58 | public void onRegistrationFailed(ISipSession session, String errorCode, |
| Chung-yih Wang | 363c2ab | 2010-08-05 10:21:20 +0800 | [diff] [blame] | 59 | String message) { |
| 60 | } |
| 61 | |
| 62 | public void onRegistrationTimeout(ISipSession session) { |
| 63 | } |
| 64 | } |