equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
161 } |
161 } |
162 |
162 |
163 void CMuxChannel::ConstructL(TTCID aRemotelyAssignedTCID) |
163 void CMuxChannel::ConstructL(TTCID aRemotelyAssignedTCID) |
164 { |
164 { |
165 LOG_FUNC |
165 LOG_FUNC |
166 // iHeartbeat = CHeartbeat::NewL() |
166 |
167 iMuxSendTimer = CPeriodic::NewL(EPriorityHigh); |
167 iMuxSendTimer = CPeriodic::NewL(EPriorityHigh); |
168 #ifdef HAVE_INBOUND_MUX_PACKET |
168 #ifdef HAVE_INBOUND_MUX_PACKET |
169 iInboundMessage = CAvdtpInboundMuxedMessage::NewL(*this); |
169 iInboundMessage = CAvdtpInboundMuxedMessage::NewL(*this); |
170 #endif |
170 #endif |
171 iOutboundMessage = CAvdtpOutboundMuxedMessage::NewL(); |
171 iOutboundMessage = CAvdtpOutboundMuxedMessage::NewL(); |
203 } |
203 } |
204 |
204 |
205 CMuxChannel::~CMuxChannel() |
205 CMuxChannel::~CMuxChannel() |
206 { |
206 { |
207 LOG_FUNC |
207 LOG_FUNC |
208 iMuxSendTimer->Cancel(); |
208 delete iMuxSendTimer; |
209 iTCID.Close(); |
209 iTCID.Close(); |
210 } |
210 } |
211 |
211 |
212 TTCID CMuxChannel::TCID() const |
212 TTCID CMuxChannel::TCID() const |
213 { |
213 { |
432 case EReporting: |
432 case EReporting: |
433 array = &iReportingSessions; |
433 array = &iReportingSessions; |
434 break; |
434 break; |
435 case ERecovery: |
435 case ERecovery: |
436 array = &iRecoverySessions; |
436 array = &iRecoverySessions; |
|
437 break; |
|
438 default: |
|
439 __ASSERT_DEBUG(ETrue, Panic(EAVDTPBadSessionDetachFromTransportChannel)); |
437 break; |
440 break; |
438 } |
441 } |
439 |
442 |
440 #ifdef _DEBUG |
443 #ifdef _DEBUG |
441 TInt found =0; |
444 TInt found =0; |