1 /* |
|
2 * Copyright (c) 2006 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 #ifndef MCEFILESINK_H |
|
20 #define MCEFILESINK_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <MceMediaSink.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // DATA TYPES |
|
29 const TMceSinkType KMceFileSink = 4; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Class representing file sink in Mce. |
|
36 * |
|
37 * CMceFileSink can be used to record a stream to the file. The file may consist of |
|
38 * both audio and video data. If both media elements are available and should be |
|
39 * recorded to the same file, the same file sink should be attached to audio stream |
|
40 * and video stream. Recording only one of the media elements is possible as well. |
|
41 * |
|
42 * Enable (continue) and Disable (pause) operations to it are considered |
|
43 * to be local, so they are not signalled to remote terminal. |
|
44 * |
|
45 * @lib mceclient.lib |
|
46 */ |
|
47 class CMceFileSink : public CMceMediaSink |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 * @param aFileName name of the file including full path info |
|
54 */ |
|
55 IMPORT_C static CMceFileSink* NewL( const TFileName& aFileName ); |
|
56 |
|
57 /** |
|
58 * Two-phased constructor. |
|
59 * @param aFileName name of the file including full path info |
|
60 */ |
|
61 IMPORT_C static CMceFileSink* NewLC( const TFileName& aFileName ); |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 IMPORT_C ~CMceFileSink(); |
|
67 |
|
68 |
|
69 public: // From CMceMediaSink |
|
70 |
|
71 /** |
|
72 * Enables the sink explicitly. |
|
73 */ |
|
74 IMPORT_C void EnableL(); |
|
75 |
|
76 /** |
|
77 * Disables the sink explicitly. |
|
78 */ |
|
79 IMPORT_C void DisableL(); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * C++ default constructor. |
|
85 */ |
|
86 CMceFileSink(); |
|
87 |
|
88 /** |
|
89 * Second-phase constructor. |
|
90 */ |
|
91 void ConstructL( const TFileName& aFileName ); |
|
92 |
|
93 public: // Stub data |
|
94 |
|
95 TFileName iFileName; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif |
|