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". |
182 void CBtsacConnected::CancelActionL(TInt aError) |
182 void CBtsacConnected::CancelActionL(TInt aError) |
183 { |
183 { |
184 TRACE_FUNC |
184 TRACE_FUNC |
185 StopTimer(); |
185 StopTimer(); |
186 Parent().CompletePendingRequests((KConnectReq | KOpenAudioReq), aError); |
186 Parent().CompletePendingRequests((KConnectReq | KOpenAudioReq), aError); |
187 Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EGavdpResetReasonGeneral, aError)); |
187 Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EResetGavdp, aError)); |
188 } |
188 } |
189 |
189 |
190 // ----------------------------------------------------------------------------- |
190 // ----------------------------------------------------------------------------- |
191 // CBtsacConnected::OpenAudioLinkL |
191 // CBtsacConnected::OpenAudioLinkL |
192 // ----------------------------------------------------------------------------- |
192 // ----------------------------------------------------------------------------- |
550 { |
550 { |
551 TRACE_ASSERT(Parent().iStreamingSockets.Count() == 0, EBTPanicSocketExists) |
551 TRACE_ASSERT(Parent().iStreamingSockets.Count() == 0, EBTPanicSocketExists) |
552 TRACE_INFO((_L("[SOCKET] created."))) |
552 TRACE_INFO((_L("[SOCKET] created."))) |
553 Parent().iStreamingSockets.Append(aNewSocket); |
553 Parent().iStreamingSockets.Append(aNewSocket); |
554 Parent().CompletePendingRequests(KCompleteAllReqs, KErrCancel); |
554 Parent().CompletePendingRequests(KCompleteAllReqs, KErrCancel); |
555 TRAP_IGNORE(Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EGavdpResetReasonGeneral, KErrNone))); |
555 TRAP_IGNORE(Parent().ChangeStateL(CBtsacListening::NewL(Parent(), EResetGavdp, KErrNone))); |
556 } |
556 } |
557 } |
557 } |
558 |
558 |
559 // ----------------------------------------------------------------------------- |
559 // ----------------------------------------------------------------------------- |
560 // CBtsacConnected::GAVDP_AbortIndication |
560 // CBtsacConnected::GAVDP_AbortIndication |