|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Defines the avdtp recovery transport session |
|
15 // The recovery session is-a transport session as defined in the AVDTP specification |
|
16 // It allows the conveyance of recovery information for a stream. |
|
17 // This recovery information is typically encasulated in RTP-FEC packets. |
|
18 // |
|
19 // |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalComponent |
|
24 */ |
|
25 |
|
26 #ifndef AVDTPRECOVERYSESSION_H |
|
27 #define AVDTPRECOVERYSESSION_H |
|
28 |
|
29 #include "avdtpTransportSession.h" |
|
30 |
|
31 class CTransportChannel; |
|
32 class CAvdtpSAP; |
|
33 class CAvdtpProtocol; |
|
34 class RAvdtpMessage; |
|
35 |
|
36 NONSHARABLE_CLASS(CRecoverySession) : public CUserPlaneTransportSession |
|
37 { |
|
38 public: |
|
39 static CRecoverySession* NewLC(CAvdtpProtocol& aProtocol, CAvdtpSAP& aSAP, CAVStream& aStream); |
|
40 static CRecoverySession* NewL(CAvdtpProtocol& aProtocol, CAvdtpSAP& aSAP, CAVStream& aStream); |
|
41 |
|
42 virtual TInt Send(RMBufChain& aData, TUint aOptions, TSockAddr* aAddr); |
|
43 |
|
44 virtual TInt DoActiveOpen(); |
|
45 virtual void CanSend(); |
|
46 |
|
47 private: |
|
48 CRecoverySession(CAvdtpProtocol& aProtocol, CAvdtpSAP& aSAP, CAVStream& aStream); |
|
49 void ConstructL(); |
|
50 |
|
51 |
|
52 private: |
|
53 }; |
|
54 |
|
55 #endif //AVDTPRECOVERYSESSION_H |