equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
48 // ----------------------------------------------------------------------------- |
48 // ----------------------------------------------------------------------------- |
49 // |
49 // |
50 CBtsacState* CBtsacState::ErrorOnEntryL(TInt /*aReason*/) |
50 CBtsacState* CBtsacState::ErrorOnEntryL(TInt /*aReason*/) |
51 { |
51 { |
52 TRACE_FUNC |
52 TRACE_FUNC |
53 return CBtsacListening::NewL(iParent, EGavdpResetReasonNone, KErrNone); |
53 return CBtsacListening::NewL(iParent); |
54 } |
54 } |
55 |
55 |
56 // ----------------------------------------------------------------------------- |
56 // ----------------------------------------------------------------------------- |
57 // CBtsacState::Parent |
57 // CBtsacState::Parent |
58 // ----------------------------------------------------------------------------- |
58 // ----------------------------------------------------------------------------- |
219 // |
219 // |
220 void CBtsacState::GAVDP_AbortStreamConfirm() |
220 void CBtsacState::GAVDP_AbortStreamConfirm() |
221 { |
221 { |
222 TRACE_INFO((_L("CBtsacState::GAVDP_AbortStreamConfirm(), state %d"), GetStateIndex())) |
222 TRACE_INFO((_L("CBtsacState::GAVDP_AbortStreamConfirm(), state %d"), GetStateIndex())) |
223 Parent().CompletePendingRequests(KCompleteAllReqs, KErrAbort); |
223 Parent().CompletePendingRequests(KCompleteAllReqs, KErrAbort); |
224 TRAPD(err, Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EGavdpResetReasonGeneral, KErrDisconnected))); |
224 TRAPD(err, Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EResetGavdp, KErrDisconnected))); |
225 if (err) |
225 if (err) |
226 { |
226 { |
227 TRACE_INFO((_L("CBtsacState::GAVDP_AbortStreamConfirm() Couldn't change state."))) |
227 TRACE_INFO((_L("CBtsacState::GAVDP_AbortStreamConfirm() Couldn't change state."))) |
228 } |
228 } |
229 } |
229 } |
331 void CBtsacState::GAVDP_AbortIndication(TSEID aSEID) |
331 void CBtsacState::GAVDP_AbortIndication(TSEID aSEID) |
332 { |
332 { |
333 TRACE_INFO((_L("CBtsacState::GAVDP_AbortIndication(), state %d, SEID:%d"), GetStateIndex(), aSEID.SEID())) |
333 TRACE_INFO((_L("CBtsacState::GAVDP_AbortIndication(), state %d, SEID:%d"), GetStateIndex(), aSEID.SEID())) |
334 (void)aSEID; |
334 (void)aSEID; |
335 Parent().CompletePendingRequests(KCompleteAllReqs, KErrDisconnected); |
335 Parent().CompletePendingRequests(KCompleteAllReqs, KErrDisconnected); |
336 TRAPD(err, Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EGavdpResetReasonGeneral, KErrDisconnected))) |
336 TRAPD(err, Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EResetGavdp, KErrDisconnected))) |
337 if(err) |
337 if(err) |
338 { |
338 { |
339 TRACE_INFO((_L("CBtsacState::GAVDP_AbortIndication(), error! Couldn't change state"))) |
339 TRACE_INFO((_L("CBtsacState::GAVDP_AbortIndication(), error! Couldn't change state"))) |
340 } |
340 } |
341 } |
341 } |