29 |
29 |
30 // Constants |
30 // Constants |
31 _LIT8( KCPSConfigurationIf, "IContentPublishing" ); |
31 _LIT8( KCPSConfigurationIf, "IContentPublishing" ); |
32 _LIT8( KCPS, "Service.ContentPublishing" ); |
32 _LIT8( KCPS, "Service.ContentPublishing" ); |
33 _LIT8( KExecuteAction, "ExecuteAction" ); |
33 _LIT8( KExecuteAction, "ExecuteAction" ); |
34 |
34 _LIT8( KExecuteMultipleActions, "ExecuteMultipleActions" ); |
|
35 _LIT8( KFilters, "filters" ); |
35 // ======== LOCAL FUNCTIONS ======== |
36 // ======== LOCAL FUNCTIONS ======== |
36 |
37 |
37 // ======== MEMBER FUNCTIONS ======== |
38 // ======== MEMBER FUNCTIONS ======== |
38 // --------------------------------------------------------------------------- |
39 // --------------------------------------------------------------------------- |
39 // CAiCpsCommandBuffer::CAiCpsCommandBuffer |
40 // CAiCpsCommandBuffer::CAiCpsCommandBuffer |
233 GetCPSInterfaceL(); |
234 GetCPSInterfaceL(); |
234 } |
235 } |
235 |
236 |
236 if(iCpsInterface) |
237 if(iCpsInterface) |
237 { |
238 { |
|
239 __PRINTS( "CAiCpsCommandBuffer::DoFlush : Execute" ); |
238 TInt pluginCount = iPlugins.Count(); |
240 TInt pluginCount = iPlugins.Count(); |
|
241 CLiwDefaultList* pluginCmdList = CLiwDefaultList::NewLC(); |
|
242 |
239 for (TInt i=0; i < pluginCount; i++ ) |
243 for (TInt i=0; i < pluginCount; i++ ) |
240 { |
244 { |
241 CLiwGenericParamList* inParamList = iPlugins[i]->InParamListLC(); |
245 CLiwDefaultMap* inParamMap = iPlugins[i]->InParamMapLC(); |
242 CLiwGenericParamList* outParamList = CLiwGenericParamList::NewLC(); |
246 pluginCmdList->AppendL( inParamMap ); |
243 __PRINTS( "CAiCpsCommandBuffer::DoFlush : Execute" ); |
247 CleanupStack::PopAndDestroy( inParamMap ); |
244 iCpsInterface->ExecuteCmdL( KExecuteAction, *inParamList, *outParamList); |
|
245 |
|
246 CleanupStack::PopAndDestroy( outParamList ); |
|
247 CleanupStack::PopAndDestroy( inParamList ); |
|
248 } |
248 } |
|
249 CLiwGenericParamList* inParamList = CLiwGenericParamList::NewLC(); |
|
250 CLiwGenericParamList* outParamList = CLiwGenericParamList::NewLC(); |
|
251 |
|
252 TLiwGenericParam item( KFilters, TLiwVariant ( pluginCmdList)); |
|
253 inParamList->AppendL( item ); |
|
254 |
|
255 iCpsInterface->ExecuteCmdL( KExecuteMultipleActions, *inParamList, *outParamList); |
|
256 |
|
257 CleanupStack::PopAndDestroy( outParamList ); |
|
258 CleanupStack::PopAndDestroy( inParamList ); |
|
259 CleanupStack::PopAndDestroy( pluginCmdList ); |
249 } |
260 } |
250 else |
261 else |
251 { |
262 { |
252 User::Leave( KErrNotSupported ); |
263 User::Leave( KErrNotSupported ); |
253 } |
264 } |