1 /* |
|
2 * Copyright (c) 2007 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 the License "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: Interface for RTP file actions.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MRTPFILEREADOBSERVER_H |
|
21 #define MRTPFILEREADOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // None |
|
28 |
|
29 // MACROS |
|
30 // None |
|
31 |
|
32 // DATA TYPES |
|
33 // None |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 // None |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * RTP file data read observer. |
|
42 * |
|
43 * @lib RtpClipHandler.lib |
|
44 * @since Series 60 3.0 |
|
45 */ |
|
46 class MRtpFileReadObserver |
|
47 { |
|
48 |
|
49 public: // Data types |
|
50 |
|
51 /** |
|
52 * Defines status indication to client. |
|
53 */ |
|
54 enum TRtpReadStatus |
|
55 { |
|
56 ERtpTimeShifTEnd = 500 |
|
57 }; |
|
58 |
|
59 public: // New methods |
|
60 |
|
61 /** |
|
62 * Called when RTP packets group readed from a file. |
|
63 * @since Series 60 3.0 |
|
64 * @param aConversion a converter for packets bytes. |
|
65 * @param aGroup a RTP data readed from a file. |
|
66 * @param aGroupTime a group time in milli seconds. |
|
67 * @param aLastGroup a indication of last group in clip. |
|
68 * @return none. |
|
69 */ |
|
70 virtual void GroupReadedL( const TDesC8& aGroup, |
|
71 const TUint aGroupTime, |
|
72 const TBool aLastGroup ) = 0; |
|
73 |
|
74 /** |
|
75 * Clip handler status of playback. |
|
76 * @since Series 60 3.0 |
|
77 * @param aStatus a status of file reading. |
|
78 * @return none. |
|
79 */ |
|
80 virtual void ReadStatus( TInt aStatus ) = 0; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // MRTPFILEREADOBSERVER_H |
|
85 |
|
86 // End of file |
|