equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-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". |
68 void CBtmSyncSock::AcceptL(TBool aAllowEsco) |
68 void CBtmSyncSock::AcceptL(TBool aAllowEsco) |
69 { |
69 { |
70 TRACE_FUNC_ENTRY |
70 TRACE_FUNC_ENTRY |
71 iScoAcceptor = TScoAcceptor(this); |
71 iScoAcceptor = TScoAcceptor(this); |
72 iSco->SetNotifier(iScoAcceptor); |
72 iSco->SetNotifier(iScoAcceptor); |
73 iSco->AcceptConnection(TBTSyncPackets(KScoPacketTypeSpec)); |
73 User::LeaveIfError(iSco->AcceptConnection(TBTSyncPackets(KScoPacketTypeSpec))); |
74 if (aAllowEsco) |
74 if (aAllowEsco) |
75 { |
75 { |
76 iESco_Acceptor = TScoAcceptor(this); |
76 iESco_Acceptor = TScoAcceptor(this); |
77 iEScoLink = CBluetoothSynchronousLink::NewL(iESco_Acceptor, iServer); |
77 iEScoLink = CBluetoothSynchronousLink::NewL(iESco_Acceptor, iServer); |
78 iEScoLink->AcceptConnection(TBTSyncPackets(KEscoPacketTypeSpec)); |
78 iEScoLink->AcceptConnection(TBTSyncPackets(KEscoPacketTypeSpec)); |