|
1 /* |
|
2 * Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __RTPPACKETEXT_H |
|
22 #define __RTPPACKETEXT_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32def.h> |
|
26 #include <rtpheader.h> |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Pure virtual interface for Extended RTP Packet formats. |
|
33 * |
|
34 * @lib RtpService.dll |
|
35 */ |
|
36 class MRtpPacketExt |
|
37 { |
|
38 public: |
|
39 virtual void ConstructL( TUint aPacketSize, TRtpId aSessionId ) = 0; |
|
40 virtual void Close() = 0; |
|
41 virtual void RtpPacketReset() = 0; |
|
42 virtual void RtpPacketResetPtr() = 0; |
|
43 |
|
44 virtual TInt RtpPacketBuild( const TRtpSendHeader& aHeader, const TDesC8& aPayload ) = 0; |
|
45 virtual TInt RtpPacketProcess( TUint8* aBuf, TInt* aLength ) = 0; |
|
46 |
|
47 virtual void RegisterRtpObserver( MRtpObserver& aObserver ) = 0; |
|
48 virtual void UnregisterRtpObserver() = 0; |
|
49 virtual void SetSize( TUint32 aSize ) = 0; |
|
50 |
|
51 virtual TUint32 Size() const = 0; |
|
52 virtual TUint8* Data() const = 0; |
|
53 virtual HBufC8* GetHBuf() const = 0; |
|
54 virtual const TPtrC8 Des() const = 0; |
|
55 |
|
56 |
|
57 }; |
|
58 |
|
59 #endif // __RTPPACKETEXT__ |
|
60 |
|
61 // End of File |