|
1 /* |
|
2 * Copyright (c) 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 __CMCETESTUIENGINEVIDEOCODEC_H__ |
|
22 #define __CMCETESTUIENGINEVIDEOCODEC_H__ |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include "MMCETestUIEngineCmdProvider.h" |
|
27 #include <e32base.h> |
|
28 #include <MCEVideoCodec.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 |
|
33 class CMCETestUIEngine; |
|
34 class CMceVideoStream; |
|
35 class CMCETestUIEngineSession; |
|
36 class CMceVideoCodec; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * |
|
41 * CMCETestUIEngineAudioStream provides a wrapper for CMCEAudioStream. |
|
42 * Class is not the traditional wrapper in a sense that it would |
|
43 * conform to interface provided by CMCESession. Instead class |
|
44 * implements interface MMCETestUIEngineCmdProvider to provide |
|
45 * same kind of functionality in controlled way on different levels |
|
46 * of abstraction. |
|
47 * |
|
48 */ |
|
49 class CMCETestUIEngineVideoCodec : public CBase, |
|
50 public MMCETestUIEngineCmdProvider |
|
51 { |
|
52 |
|
53 public: // public enumerations |
|
54 |
|
55 |
|
56 public: // Constructors and destructors |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 IMPORT_C virtual ~CMCETestUIEngineVideoCodec(); |
|
62 |
|
63 /** |
|
64 * Two-phased constructor. Not imported. |
|
65 */ |
|
66 static CMCETestUIEngineVideoCodec* NewL( |
|
67 CMCETestUIEngine& aEngine, |
|
68 CMceVideoCodec& aCodec ); |
|
69 |
|
70 public: // From MMCETestUICommandProvider |
|
71 |
|
72 /** |
|
73 * Gets the commands applicaple to this session object. |
|
74 * |
|
75 * @return reference to array of commands |
|
76 */ |
|
77 IMPORT_C const RPointerArray<TMCETestUIEngineCmdBase>& |
|
78 GetCommandsL(); |
|
79 |
|
80 public: // New functions |
|
81 |
|
82 |
|
83 public: // New functions, internal |
|
84 |
|
85 /** |
|
86 * Gets wrapped MCEAudioStream object |
|
87 * |
|
88 * @return wrapped MCEMCEAudioStream |
|
89 */ |
|
90 IMPORT_C CMceVideoCodec& Codec(); |
|
91 |
|
92 IMPORT_C const TDesC16& State() const; |
|
93 |
|
94 IMPORT_C TMceCodecType Type(); |
|
95 |
|
96 |
|
97 private: // private constructors |
|
98 |
|
99 /** |
|
100 * C++ default constructor. Not implemented. |
|
101 */ |
|
102 CMCETestUIEngineVideoCodec(); |
|
103 |
|
104 protected: |
|
105 |
|
106 /** |
|
107 * C++ first phase constructor. |
|
108 */ |
|
109 CMCETestUIEngineVideoCodec( |
|
110 CMCETestUIEngine& aEngine, |
|
111 CMceVideoCodec& aCodec ); |
|
112 |
|
113 /** |
|
114 * Symbian second-phase constructor |
|
115 */ |
|
116 void ConstructL(); |
|
117 |
|
118 protected: // owned data |
|
119 |
|
120 // Commands applicable to an audiostream. Owned. |
|
121 RPointerArray<TMCETestUIEngineCmdBase> iCommands; |
|
122 |
|
123 protected: // not owned data |
|
124 |
|
125 CMCETestUIEngine& iEngine; |
|
126 |
|
127 // Reference to wrapped MCEAudioStream |
|
128 CMceVideoCodec& iCodec; |
|
129 |
|
130 |
|
131 |
|
132 }; |
|
133 |
|
134 #endif |