|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 /** |
|
18 @file |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 #ifndef OMXILCONFIGMANAGERIMPL_H |
|
23 #define OMXILCONFIGMANAGERIMPL_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <openmax/il/khronos/v1_x/OMX_Core.h> |
|
27 #include <openmax/il/khronos/v1_x/OMX_Component.h> |
|
28 #include <openmax/il/khronos/v1_x/OMX_Types.h> |
|
29 |
|
30 #include "omxilindexmanager.h" |
|
31 |
|
32 // Forward declarations |
|
33 class MOmxILPortManagerIf; |
|
34 |
|
35 class COmxILConfigManagerImpl : public COmxILIndexManager |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 static COmxILConfigManagerImpl* NewL( |
|
41 const TDesC8& aComponentName, |
|
42 const OMX_VERSIONTYPE& aComponentVersion, |
|
43 const RPointerArray<TDesC8>& aComponentRoleList); |
|
44 |
|
45 ~COmxILConfigManagerImpl(); |
|
46 |
|
47 virtual OMX_ERRORTYPE GetComponentVersion( |
|
48 OMX_STRING aComponentName, |
|
49 OMX_VERSIONTYPE* apComponentVersion, |
|
50 OMX_VERSIONTYPE* apSpecVersion, |
|
51 OMX_UUIDTYPE* apComponentUUID) const; |
|
52 |
|
53 OMX_ERRORTYPE GetParameter( |
|
54 OMX_INDEXTYPE aParamIndex, |
|
55 TAny* apComponentParameterStructure) const; |
|
56 |
|
57 OMX_ERRORTYPE SetParameter( |
|
58 OMX_INDEXTYPE aParamIndex, |
|
59 const TAny* apComponentParameterStructure, |
|
60 OMX_BOOL aInitTime = OMX_TRUE); |
|
61 |
|
62 OMX_ERRORTYPE GetConfig( |
|
63 OMX_INDEXTYPE aConfigIndex, |
|
64 TAny* apComponentConfigStructure) const; |
|
65 |
|
66 OMX_ERRORTYPE SetConfig( |
|
67 OMX_INDEXTYPE aConfigIndex, |
|
68 const TAny* apComponentConfigStructure); |
|
69 |
|
70 OMX_ERRORTYPE ComponentRoleEnum( |
|
71 OMX_U8* aRole, |
|
72 OMX_U32 aIndex) const; |
|
73 |
|
74 void SetPortManager(MOmxILPortManagerIf* aPortManager); |
|
75 |
|
76 private: |
|
77 |
|
78 COmxILConfigManagerImpl(); |
|
79 |
|
80 void ConstructL(const TDesC8& aComponentName, |
|
81 const OMX_VERSIONTYPE& aComponentVersion, |
|
82 const RPointerArray<TDesC8>& aComponentRoleList); |
|
83 |
|
84 static TBool CompareRoles(const HBufC8& aRole1, const HBufC8& aRole2); |
|
85 |
|
86 private: |
|
87 |
|
88 // Reference to the component's port manager |
|
89 MOmxILPortManagerIf* ipPortManager; |
|
90 |
|
91 // Reference to the component's port manager |
|
92 RBuf8 iComponentName; |
|
93 |
|
94 // The list of OpenMAX IL roles supported by the component |
|
95 RPointerArray<HBufC8> iComponentRoleList; |
|
96 |
|
97 // The current OpenMAX IL role |
|
98 TUint iCurrentRoleIndex; |
|
99 |
|
100 // The current version of this component (this is different to the spec |
|
101 // version) |
|
102 OMX_VERSIONTYPE iComponentVersion; |
|
103 |
|
104 // OpenMAX IL resource concealment structure (only set/get, resource |
|
105 // concealment logic not implemented) |
|
106 OMX_RESOURCECONCEALMENTTYPE iParamDisableResourceConcealment; |
|
107 |
|
108 // OpenMAX IL component suspension policy structure (only set/get, |
|
109 // component suspension logic not implemented) |
|
110 OMX_PARAM_SUSPENSIONPOLICYTYPE iParamSuspensionPolicy; |
|
111 |
|
112 // OpenMAX IL component priority structure (only set/get, component |
|
113 // priority logic not implemented) |
|
114 OMX_PRIORITYMGMTTYPE iConfigPriorityMgmt; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // OMXILCONFIGMANAGERIMPL_H |