|
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 inline |
|
23 COmxILCallbackManager::CCallbackCommand::CCallbackCommand( |
|
24 TInt aPriority) |
|
25 : |
|
26 iPriority(aPriority) |
|
27 { |
|
28 } |
|
29 |
|
30 inline TInt |
|
31 COmxILCallbackManager::CCallbackCommand::Priority() |
|
32 { |
|
33 return iPriority; |
|
34 } |
|
35 |
|
36 inline |
|
37 COmxILCallbackManager::CCompHandleRegistrationCommand::CCompHandleRegistrationCommand( |
|
38 OMX_HANDLETYPE aComponentHandle) |
|
39 : |
|
40 CCallbackCommand(CCallbackCommand::EPriorityVeryHigh), |
|
41 ipHandle(static_cast<OMX_COMPONENTTYPE*>(aComponentHandle)) |
|
42 { |
|
43 } |
|
44 |
|
45 inline |
|
46 COmxILCallbackManager::CClientCallbacksRegistrationCommand::CClientCallbacksRegistrationCommand( |
|
47 const OMX_CALLBACKTYPE*& apCallbacks, |
|
48 const OMX_PTR& apAppData) |
|
49 : |
|
50 CCallbackCommand(CCallbackCommand::EPriorityVeryHigh), |
|
51 ipCallbacks(apCallbacks), |
|
52 ipAppData(apAppData) |
|
53 { |
|
54 } |
|
55 |
|
56 inline |
|
57 COmxILCallbackManager::CTunnelCallbackRegistrationCommand::CTunnelCallbackRegistrationCommand( |
|
58 OMX_U32 aLocalPortIndex, |
|
59 OMX_DIRTYPE aLocalPortDirection, |
|
60 OMX_HANDLETYPE aTunnelledComponentHandle, |
|
61 OMX_U32 aTunnelledPortIndex) |
|
62 : |
|
63 CCallbackCommand(CCallbackCommand::EPriorityVeryHigh), |
|
64 iTunnelInfo(aLocalPortIndex, |
|
65 aLocalPortDirection, |
|
66 aTunnelledComponentHandle, |
|
67 aTunnelledPortIndex) |
|
68 { |
|
69 } |
|
70 |
|
71 inline |
|
72 COmxILCallbackManager::CBufferMarkPropagationRegistrationCommand:: |
|
73 CBufferMarkPropagationRegistrationCommand( |
|
74 OMX_U32 aPortIndex, |
|
75 OMX_U32 aPropagationPortIndex) |
|
76 : |
|
77 CCallbackCommand(CCallbackCommand::EPriorityVeryHigh), |
|
78 iMarkPropagationInfo(aPortIndex, |
|
79 aPropagationPortIndex) |
|
80 { |
|
81 } |
|
82 |
|
83 inline |
|
84 COmxILCallbackManager::CBufferRemovalCommand::CBufferRemovalCommand( |
|
85 OMX_BUFFERHEADERTYPE* apBufferHeader, |
|
86 OMX_DIRTYPE aDirection) |
|
87 : |
|
88 CCallbackCommand(CCallbackCommand::EPriorityVeryHigh), |
|
89 ipBufferHeader(apBufferHeader), |
|
90 iDirection(aDirection) |
|
91 { |
|
92 } |
|
93 |
|
94 inline |
|
95 COmxILCallbackManager::CEventCallbackCommand::CEventCallbackCommand( |
|
96 OMX_EVENTTYPE aEvent, |
|
97 TUint32 aData1, |
|
98 TUint32 aData2, |
|
99 OMX_STRING aExtraInfo) |
|
100 : |
|
101 CCallbackCommand(CCallbackCommand::EPriorityNormal), |
|
102 iEvent(aEvent), |
|
103 iData1(aData1), |
|
104 iData2(aData2), |
|
105 iExtraInfo(aExtraInfo) |
|
106 { |
|
107 } |
|
108 |
|
109 inline |
|
110 COmxILCallbackManager::CBufferDoneCallbackCommand:: |
|
111 CBufferDoneCallbackCommand(OMX_BUFFERHEADERTYPE* apBufferHeader, |
|
112 OMX_U32 aLocalPortIndex, |
|
113 OMX_DIRTYPE aLocalPortDirection, |
|
114 TInt aPriority) |
|
115 : |
|
116 CCallbackCommand(aPriority), |
|
117 ipBufferHeader(apBufferHeader), |
|
118 iLocalPortIndex(aLocalPortIndex), |
|
119 iLocalPortDirection(aLocalPortDirection) |
|
120 { |
|
121 } |
|
122 |
|
123 inline |
|
124 COmxILCallbackManager::CPortSettingsChangeCommand:: |
|
125 CPortSettingsChangeCommand(OMX_U32 aLocalPortIndex, |
|
126 TUint aPortSettingsIndex, |
|
127 HBufC8*& apPortSettings) |
|
128 : |
|
129 CCallbackCommand(CCallbackCommand::EPriorityNormal), |
|
130 iLocalPortIndex(aLocalPortIndex), |
|
131 iPortSettingsIndex(aPortSettingsIndex), |
|
132 ipPortSettings(apPortSettings) |
|
133 { |
|
134 } |
|
135 |
|
136 #ifdef _OMXIL_COMMON_IL516C_ON |
|
137 inline |
|
138 COmxILCallbackManager::CEjectBuffersRequestCommand:: |
|
139 CEjectBuffersRequestCommand(OMX_U32 aLocalOmxPortIndex) |
|
140 : |
|
141 CCallbackCommand(CCallbackCommand::EPriorityNormal), |
|
142 iLocalOmxPortIndex(aLocalOmxPortIndex) |
|
143 { |
|
144 } |
|
145 #endif |