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 MRTPFILEWRITEOBSERVER_H |
|
21 #define MRTPFILEWRITEOBSERVER_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 write observer. |
|
42 * |
|
43 * @lib RtpClipHandler.lib |
|
44 * @since Series 60 3.0 |
|
45 */ |
|
46 class MRtpFileWriteObserver |
|
47 { |
|
48 |
|
49 public: // Data types |
|
50 |
|
51 /** |
|
52 * Defines RTP recording params |
|
53 */ |
|
54 class SRtpRecParams |
|
55 { |
|
56 |
|
57 public: // Data |
|
58 |
|
59 // Clip full path. |
|
60 TPath iClipPath; |
|
61 |
|
62 // SDP data. |
|
63 TPtrC8 iSdpData; |
|
64 |
|
65 // Service name |
|
66 TPtrC iService; |
|
67 |
|
68 // Program name. |
|
69 TPtrC iProgram; |
|
70 |
|
71 // Post accuisition rule. |
|
72 TInt iPostRule; |
|
73 |
|
74 // Parental rate. |
|
75 TInt iParental; |
|
76 |
|
77 // Recording start time in terminal time. |
|
78 TTime iStartTime; |
|
79 |
|
80 // Estimated recording end time in terminal time. |
|
81 TTime iEndTime; |
|
82 |
|
83 }; |
|
84 |
|
85 /** |
|
86 * Defines save action. |
|
87 */ |
|
88 enum TRtpSaveAction |
|
89 { |
|
90 ESaveIdle = KErrNotFound, |
|
91 ESaveNormal = KErrNone, |
|
92 ESaveTimeShift, |
|
93 ESavePause, |
|
94 ESaveEnd |
|
95 }; |
|
96 |
|
97 /** |
|
98 * Defines RTP packet type. |
|
99 */ |
|
100 enum TRtpType |
|
101 { |
|
102 ERtpNone = KErrNotFound, |
|
103 ERtpAudio = 10, |
|
104 ERtcpAudio, |
|
105 ERtpVideo, |
|
106 ERtcpVideo, |
|
107 ERtpClipPause, |
|
108 ERtpClipEnd, |
|
109 ERtpSubTitle, |
|
110 ERtcpSubTitle |
|
111 }; |
|
112 |
|
113 public: // New methods |
|
114 |
|
115 /** |
|
116 * Group saved indication. |
|
117 * @since Series 60 3.0 |
|
118 * @return none. |
|
119 */ |
|
120 virtual void GroupSaved() = 0; |
|
121 |
|
122 /** |
|
123 * Clip handler status of recording. |
|
124 * @since Series 60 3.0 |
|
125 * @param aStatus a status of file writing. |
|
126 * @return none. |
|
127 */ |
|
128 virtual void WriteStatus( const TInt aStatus ) = 0; |
|
129 |
|
130 }; |
|
131 |
|
132 #endif // MRTPFILEWRITEOBSERVER_H |
|
133 |
|
134 // End of file |
|